1
0
mirror of https://github.com/codership/wsrep-lib.git synced 2025-07-03 16:22:35 +03:00

Fix fragment removal on rollback

Do not cause apply error if fragment removal fails on
rollback. Instead, leave stale entries in storage, and move on.
This commit is contained in:
Daniele Sciascia
2022-01-20 16:49:06 +01:00
parent 6fd1fdf690
commit da5098b622

View File

@ -249,9 +249,9 @@ static int rollback_fragment(wsrep::server_state& server_state,
{
if (remove_fragments)
{
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);
high_priority_service.remove_fragments(ws_meta);
high_priority_service.commit(ws_handle, ws_meta);
high_priority_service.after_apply();
}
else
{