Current Path : /compat/linux/proc/68247/root/usr/opt/mysql57/mysql-test/include/ |
FreeBSD hs32.drive.ne.jp 9.1-RELEASE FreeBSD 9.1-RELEASE #1: Wed Jan 14 12:18:08 JST 2015 root@hs32.drive.ne.jp:/sys/amd64/compile/hs32 amd64 |
Current File : //compat/linux/proc/68247/root/usr/opt/mysql57/mysql-test/include/binlog_inject_error.inc |
# # === Name # # binlog_inject_error.inc # # === Description # # Inject binlog write error when running the query, verifies that the # query is ended with the proper error (ER_ERROR_ON_WRITE). # # === Usage # # let query= 'CREATE TABLE t1 (a INT)'; # source include/binlog_inject_error.inc; # --disable_query_log SET @old_debug = @@global.debug; SET GLOBAL debug=CONCAT(IF(LENGTH(@old_debug) > 9, CONCAT(@old_debug, ':'), ''), 'd,injecting_fault_writing'); --enable_query_log --echo $query; --replace_regex /(errno: .*)/(errno: #)/ --error ER_ERROR_ON_WRITE --eval $query --disable_query_log SET GLOBAL debug=@old_debug; --enable_query_log