Skip to content

Instantly share code, notes, and snippets.

@nirbhayc
Created July 30, 2016 19:22
Show Gist options
  • Save nirbhayc/7e241db4af11a8d68543e67b0150d3d0 to your computer and use it in GitHub Desktop.
Save nirbhayc/7e241db4af11a8d68543e67b0150d3d0 to your computer and use it in GitHub Desktop.
diff --git a/sql/wsrep_hton.cc b/sql/wsrep_hton.cc
index 3bce8ba..ffc9601 100644
--- a/sql/wsrep_hton.cc
+++ b/sql/wsrep_hton.cc
@@ -426,6 +426,9 @@ enum wsrep_trx_status
thd->wsrep_query_state = QUERY_COMMITTING;
mysql_mutex_unlock(&thd->LOCK_wsrep_thd);
+ DBUG_EXECUTE_IF("wsrep_sleep_on_query_committing",
+ my_sleep(5000000););
+
cache = get_trans_log(thd);
rcode = 0;
if (cache) {
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment