1
0
mirror of https://github.com/codership/wsrep-lib.git synced 2025-07-28 20:02:00 +03:00

Address review comments

* Added unit tests for transaction::xa_detach() and
  transaction::xa_replay()
* Added unit tests for wsrep::xid
* Fixed minor issues pointed out by reviewer
This commit is contained in:
Daniele Sciascia
2020-09-30 17:48:53 +02:00
parent 39e37d3a39
commit 6752a4504f
12 changed files with 239 additions and 20 deletions

View File

@ -74,6 +74,7 @@ namespace wsrep
, client_state_(client_state)
, will_replay_called_()
, replays_()
, unordered_replays_()
, aborts_()
{ }
@ -108,6 +109,7 @@ namespace wsrep
enum wsrep::provider::status replay_unordered() WSREP_OVERRIDE
{
unordered_replays_++;
return wsrep::provider::success;
}
@ -221,11 +223,13 @@ namespace wsrep
//
bool will_replay_called() const { return will_replay_called_; }
size_t replays() const { return replays_; }
size_t unordered_replays() const { return unordered_replays_; }
size_t aborts() const { return aborts_; }
private:
wsrep::mock_client_state& client_state_;
bool will_replay_called_;
size_t replays_;
size_t unordered_replays_;
size_t aborts_;
};