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:
@ -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;
|
||||
}
|
||||
|
Reference in New Issue
Block a user