1
0
mirror of https://github.com/codership/wsrep-lib.git synced 2025-07-05 03:41:13 +03:00

Fixed dbsim BF aborts

This commit is contained in:
Teemu Ollakka
2018-06-17 09:52:56 +03:00
parent ad0617c660
commit 97ee96987e
6 changed files with 8 additions and 15 deletions

View File

@ -53,15 +53,13 @@ void db::storage_engine::bf_abort_some(const wsrep::transaction_context& txc)
for (auto victim : transactions_)
{
wsrep::client_context& cc(victim->client_context());
wsrep::unique_lock<wsrep::mutex> lock(cc.mutex());
if (cc.mode() == wsrep::client_context::m_replicating)
{
lock.unlock();
if (victim->bf_abort(txc.seqno()))
{
++bf_aborts_;
break;
}
break;
}
}
}