mirror of
https://github.com/codership/wsrep-lib.git
synced 2025-07-31 18:24:25 +03:00
Refactored storage service out of client service interface.
This commit is contained in:
@ -6,31 +6,6 @@
|
||||
#include "mock_client_state.hpp"
|
||||
#include "mock_high_priority_service.hpp"
|
||||
|
||||
int wsrep::mock_client_service::commit(
|
||||
const wsrep::ws_handle&, const wsrep::ws_meta&)
|
||||
{
|
||||
int ret(0);
|
||||
if (do_2pc())
|
||||
{
|
||||
if (client_state_.before_prepare())
|
||||
{
|
||||
ret = 1;
|
||||
}
|
||||
else if (client_state_.after_prepare())
|
||||
{
|
||||
ret = 1;
|
||||
}
|
||||
}
|
||||
if (ret == 0 &&
|
||||
(client_state_.before_commit() ||
|
||||
client_state_.ordered_commit() ||
|
||||
client_state_.after_commit()))
|
||||
{
|
||||
ret = 1;
|
||||
}
|
||||
return ret;
|
||||
}
|
||||
|
||||
int wsrep::mock_client_service::bf_rollback()
|
||||
{
|
||||
int ret(0);
|
||||
|
Reference in New Issue
Block a user