1
0
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:
Daniele Sciascia
2022-01-28 12:23:14 +01:00
parent 88c3b2609d
commit 63346153ac

View File

@ -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
{