mirror of
https://github.com/MariaDB/server.git
synced 2025-01-16 20:12:31 +01:00
1efdd5a572
(and to follow the naming conventons). keep old debug variable, but mark it as deprecated.
22 lines
467 B
PHP
22 lines
467 B
PHP
#
|
|
# === 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;
|
|
#
|
|
|
|
SET GLOBAL debug_dbug='d,injecting_fault_writing';
|
|
--echo $query;
|
|
--replace_regex /(errno: .*)/(errno: #)/
|
|
--error ER_ERROR_ON_WRITE
|
|
--eval $query
|
|
SET GLOBAL debug_dbug='';
|