1
0
mirror of https://github.com/codership/wsrep-lib.git synced 2025-06-14 15:02:27 +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

@ -10,16 +10,14 @@
// Simple BF abort method to BF abort unordered transasctions
void wsrep_test::bf_abort_unordered(wsrep::client_context& cc)
{
wsrep::unique_lock<wsrep::mutex> lock(cc.mutex());
assert(cc.transaction().ordered() == false);
cc.bf_abort(lock, wsrep::seqno(1));
cc.bf_abort(wsrep::seqno(1));
}
void wsrep_test::bf_abort_ordered(wsrep::client_context& cc)
{
wsrep::unique_lock<wsrep::mutex> lock(cc.mutex());
assert(cc.transaction().ordered());
cc.bf_abort(lock, wsrep::seqno(0));
cc.bf_abort(wsrep::seqno(0));
}
// BF abort method to abort transactions via provider
void wsrep_test::bf_abort_provider(wsrep::mock_server_context& sc,