mirror of
https://github.com/codership/wsrep-lib.git
synced 2025-07-03 16:22:35 +03:00
Fixup error handling on fragment removal
If fragment removal fails when applying rollback fragment, then rollback the fragment removal context.
This commit is contained in:
@ -251,7 +251,11 @@ static int rollback_fragment(wsrep::server_state& server_state,
|
||||
{
|
||||
ret = high_priority_service.remove_fragments(ws_meta);
|
||||
ret = ret || high_priority_service.commit(ws_handle, ws_meta);
|
||||
ret = ret || (high_priority_service.after_apply(), 0);
|
||||
if (ret)
|
||||
{
|
||||
high_priority_service.rollback(ws_handle, ws_meta);
|
||||
}
|
||||
high_priority_service.after_apply();
|
||||
}
|
||||
else
|
||||
{
|
||||
|
Reference in New Issue
Block a user