Skip to content

Commit b56cd7f

Browse files
authored
Merge pull request #229 from codership/mysql-wsrep-bugs_5.7-v25-GCF-1058-followup
Mysql wsrep bugs 5.7 v25 gcf 1058 followup
2 parents ad0e036 + 2db7917 commit b56cd7f

File tree

5 files changed

+8
-1
lines changed

5 files changed

+8
-1
lines changed

mysql-test/suite/galera/r/MW-86-wait1.result

+1
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ SET SESSION wsrep_sync_wait = 1;
55
SET GLOBAL debug = "+d,sync.wsrep_apply_cb";
66
CREATE TABLE t_wait1 (f1 INTEGER) ENGINE=InnoDB;
77
INSERT INTO t_wait1 VALUES (1);
8+
SET SESSION debug_sync = "now WAIT_FOR sync.wsrep_apply_cb_reached";
89
SHOW BINARY LOGS;
910
SHOW BINLOG EVENTS;
1011
SHOW COLUMNS FROM t1;

mysql-test/suite/galera/r/MW-86-wait8.result

+1
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ SET GLOBAL debug = "+d,sync.wsrep_apply_cb";
66
CREATE TABLE t_wait8 (f1 INTEGER) ENGINE=InnoDB;
77
INSERT INTO t_wait8 VALUES (1);
88
SET GLOBAL wsrep_provider_options = "repl.causal_read_timeout=PT0.1S";
9+
SET SESSION debug_sync = "now WAIT_FOR sync.wsrep_apply_cb_reached";
910
SHOW BINARY LOGS;
1011
SHOW BINLOG EVENTS;
1112
SHOW COLUMNS FROM t1;

mysql-test/suite/galera/t/MW-86-wait1.test

+2
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,8 @@ INSERT INTO t_wait1 VALUES (1);
2222

2323
--connection node_2
2424

25+
SET SESSION debug_sync = "now WAIT_FOR sync.wsrep_apply_cb_reached";
26+
2527
--disable_result_log
2628

2729
SHOW BINARY LOGS;

mysql-test/suite/galera/t/MW-86-wait8.test

+2
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,8 @@ INSERT INTO t_wait8 VALUES (1);
2323
--let $wsrep_provider_options_orig = `SELECT @@wsrep_provider_options`
2424
SET GLOBAL wsrep_provider_options = "repl.causal_read_timeout=PT0.1S";
2525

26+
SET SESSION debug_sync = "now WAIT_FOR sync.wsrep_apply_cb_reached";
27+
2628
--disable_result_log
2729

2830
--error ER_LOCK_WAIT_TIMEOUT

sql/wsrep_applier.cc

+2-1
Original file line numberDiff line numberDiff line change
@@ -237,7 +237,8 @@ wsrep_cb_status_t wsrep_apply_cb(void* const ctx,
237237
{
238238
const char act[]=
239239
"now "
240-
"wait_for signal.wsrep_apply_cb";
240+
"SIGNAL sync.wsrep_apply_cb_reached "
241+
"WAIT_FOR signal.wsrep_apply_cb";
241242
DBUG_ASSERT(!debug_sync_set_action(thd,
242243
STRING_WITH_LEN(act)));
243244
};);

0 commit comments

Comments
 (0)