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

NBO begin error handling, unit test

This commit is contained in:
Teemu Ollakka
2019-08-07 08:42:00 +03:00
parent e9bd950ee6
commit 0b12869715
3 changed files with 33 additions and 3 deletions

View File

@ -483,7 +483,13 @@ int wsrep::client_state::begin_nbo_phase_one(const wsrep::key_array& keys,
ret= 0;
break;
default:
override_error(e_deadlock_error);
current_error_status_ = status;
if (!toi_meta_.seqno().is_undefined())
{
provider().leave_toi(id_);
}
toi_meta_ = wsrep::ws_meta();
ret= 1;
break;
}