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

Tests and fixes for replaying.

This commit is contained in:
Teemu Ollakka
2018-06-14 15:00:40 +03:00
parent ca6286d8b2
commit 0b6e49474f
11 changed files with 123 additions and 21 deletions

View File

@ -388,7 +388,8 @@ private:
}
void will_replay(wsrep::transaction_context&) override { }
int replay(wsrep::transaction_context& txc) override
enum wsrep::provider::status
replay(wsrep::transaction_context& txc) override
{
// wsrep::log() << "replay: " << txc.id().get();
wsrep::client_applier_mode applier_mode(*this);
@ -490,6 +491,11 @@ private:
if (err == 0) se_trx_.commit();
err = err || ordered_commit();
err = err || after_commit();
if (err)
{
rollback();
}
return err;
});