1
0
mirror of https://github.com/codership/wsrep-lib.git synced 2025-06-16 02:01:44 +03:00

Fixes required to 1PC streaming replay to pass.

This commit is contained in:
Teemu Ollakka
2018-06-13 14:33:58 +03:00
parent 6677e3cfd8
commit 4ccd1490d4
3 changed files with 28 additions and 6 deletions

View File

@ -164,9 +164,23 @@ int wsrep::server_context::on_apply(
assert(ret ||
txc.state() == wsrep::transaction_context::s_committed);
}
else if (commits_transaction(ws_meta.flags()))
{
if (not_replaying)
{
// SR commit not implemented yet
assert(0);
}
else
{
ret = client_context.start_replaying() ||
client_context.apply(wsrep::const_buffer()) ||
client_context.commit();
}
}
else
{
// SR not implemented yet
// SR fragment applying not implemented yet
assert(0);
}
if (not_replaying)