mirror of
https://github.com/MariaDB/server.git
synced 2026-05-16 03:47:17 +02:00
Conditionally define TRX_WSREP_ABORT
This commit is contained in:
parent
ca40330d1d
commit
7033af9e81
4 changed files with 22 additions and 10 deletions
|
|
@ -4917,8 +4917,10 @@ static void innobase_kill_query(handlerton*, THD* thd, enum thd_kill_levels)
|
|||
ut_ad(trx->mysql_thd == thd);
|
||||
|
||||
switch (trx->abort_type) {
|
||||
#ifdef WITH_WSREP
|
||||
case TRX_WSREP_ABORT:
|
||||
break;
|
||||
#endif
|
||||
case TRX_SERVER_ABORT:
|
||||
if (!wsrep_thd_is_BF(trx->mysql_thd, FALSE)) {
|
||||
lock_mutex_enter();
|
||||
|
|
@ -4930,8 +4932,10 @@ static void innobase_kill_query(handlerton*, THD* thd, enum thd_kill_levels)
|
|||
/* Cancel a pending lock request if there are any */
|
||||
lock_trx_handle_wait(trx);
|
||||
switch (trx->abort_type) {
|
||||
#ifdef WITH_WSREP
|
||||
case TRX_WSREP_ABORT:
|
||||
break;
|
||||
#endif
|
||||
case TRX_SERVER_ABORT:
|
||||
if (!wsrep_thd_is_BF(trx->mysql_thd, FALSE)) {
|
||||
lock_mutex_exit();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue