mirror of
https://github.com/codership/wsrep-lib.git
synced 2025-07-24 10:42:31 +03:00
codership/wsrep-lib#29 non-active transaction abort
bf_abort() has been extended to abort also non active transactions With this fix, mtr test galera.galera_concurrent_ctas is supposed to pass
This commit is contained in:
@ -848,7 +848,27 @@ bool wsrep::transaction::bf_abort(
|
||||
|
||||
if (active() == false)
|
||||
{
|
||||
WSREP_TC_LOG_DEBUG(1, "Transaction not active, skipping bf abort");
|
||||
WSREP_TC_LOG_DEBUG(1, "Aborting non-active transaction");
|
||||
wsrep::seqno victim_seqno;
|
||||
enum wsrep::provider::status status(
|
||||
client_state_.provider().bf_abort(bf_seqno, id_, victim_seqno));
|
||||
switch (status)
|
||||
{
|
||||
case wsrep::provider::success:
|
||||
WSREP_TC_LOG_DEBUG(1, "Seqno " << bf_seqno
|
||||
<< " succesfully BF aborted non-active " << id_
|
||||
<< " victim_seqno " << victim_seqno);
|
||||
bf_abort_state_ = state();
|
||||
ret = true;
|
||||
break;
|
||||
default:
|
||||
WSREP_TC_LOG_DEBUG(1,
|
||||
"Seqno " << bf_seqno
|
||||
<< " failed to BF abort non-active" << id_
|
||||
<< " with status " << status
|
||||
<< " victim_seqno " << victim_seqno);
|
||||
break;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
|
Reference in New Issue
Block a user