diff options
Diffstat (limited to 'sql/wsrep_thd.cc')
-rw-r--r-- | sql/wsrep_thd.cc | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/sql/wsrep_thd.cc b/sql/wsrep_thd.cc index 15fd87eda5d..a5d292700a7 100644 --- a/sql/wsrep_thd.cc +++ b/sql/wsrep_thd.cc @@ -349,6 +349,15 @@ bool wsrep_bf_abort(const THD* bf_thd, THD* victim_thd) if (WSREP(victim_thd) && !victim_thd->wsrep_trx().active()) { WSREP_DEBUG("wsrep_bf_abort, BF abort for non active transaction"); + switch (victim_thd->wsrep_trx().state()) + { + case wsrep::transaction::s_aborting: /* fall through */ + case wsrep::transaction::s_aborted: + WSREP_DEBUG("victim thd is already aborted or in aborting state."); + return false; + default: + break; + } wsrep_start_transaction(victim_thd, victim_thd->wsrep_next_trx_id()); } |