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

Call before/after prepare from before_commit() when 1PC

before_prepare() call prepares removal SR fragments from stable
storage and the logic should be duplicated in before_commit()
otherwise.
This commit is contained in:
Teemu Ollakka
2018-06-13 13:04:33 +03:00
parent a7adcb01ba
commit f07885e204
4 changed files with 17 additions and 17 deletions

View File

@ -19,11 +19,11 @@ int wsrep::fake_client_context::commit()
int ret(0);
if (do_2pc())
{
if (transaction_.before_prepare())
if (before_prepare())
{
ret = 1;
}
else if (transaction_.after_prepare())
else if (after_prepare())
{
ret = 1;
}