diff options
author | Nirbhay Choubey <nirbhay@mariadb.com> | 2016-02-23 20:33:21 -0500 |
---|---|---|
committer | Nirbhay Choubey <nirbhay@mariadb.com> | 2016-02-23 20:33:21 -0500 |
commit | 276d65b324f4f0021bc457b4d5723153d4e12608 (patch) | |
tree | 51243d67ad4fdf8b36d566a079d1cf7e4160adad /sql/wsrep_applier.cc | |
parent | b9c42d7a47f7282f5d0063a467d506cb55a69899 (diff) | |
download | mariadb-git-276d65b324f4f0021bc457b4d5723153d4e12608.tar.gz |
Fix for test failures.
Diffstat (limited to 'sql/wsrep_applier.cc')
-rw-r--r-- | sql/wsrep_applier.cc | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/sql/wsrep_applier.cc b/sql/wsrep_applier.cc index 520e63f3077..90c84f1c2cc 100644 --- a/sql/wsrep_applier.cc +++ b/sql/wsrep_applier.cc @@ -19,6 +19,7 @@ #include "wsrep_xid.h" #include "log_event.h" // class THD, EVENT_LEN_OFFSET, etc. +#include "debug_sync.h" /* read the first event from (*buf). The size of the (*buf) is (*buf_len). @@ -222,6 +223,16 @@ wsrep_cb_status_t wsrep_apply_cb(void* const ctx, { THD* const thd((THD*)ctx); + // Allow tests to block the applier thread using the DBUG facilities. + DBUG_EXECUTE_IF("sync.wsrep_apply_cb", + { + const char act[]= + "now " + "wait_for signal.wsrep_apply_cb"; + DBUG_ASSERT(!debug_sync_set_action(thd, + STRING_WITH_LEN(act))); + };); + thd->wsrep_trx_meta = *meta; #ifdef WSREP_PROC_INFO |