Commit c1ea0570 authored by Nirbhay Choubey's avatar Nirbhay Choubey

refs codership/mysql-wsrep#184

Merge fix to XtraDB engine.
parent 251c53a8
...@@ -394,8 +394,9 @@ lock_wait_suspend_thread( ...@@ -394,8 +394,9 @@ lock_wait_suspend_thread(
if (lock_wait_timeout < 100000000 if (lock_wait_timeout < 100000000
&& wait_time > (double) lock_wait_timeout) { && wait_time > (double) lock_wait_timeout) {
#ifdef WITH_WSREP #ifdef WITH_WSREP
if (!wsrep_is_BF_lock_timeout(trx) if (!wsrep_on(trx->mysql_thd) ||
&& trx->error_state != DB_DEADLOCK) { (!wsrep_is_BF_lock_timeout(trx) &&
trx->error_state != DB_DEADLOCK)) {
#endif /* WITH_WSREP */ #endif /* WITH_WSREP */
trx->error_state = DB_LOCK_WAIT_TIMEOUT; trx->error_state = DB_LOCK_WAIT_TIMEOUT;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment