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

Deal with desyncs in on_sync() call.

This commit is contained in:
Teemu Ollakka
2018-06-27 16:15:09 +03:00
parent fd9cf87141
commit 203dd2875a

View File

@ -618,9 +618,15 @@ void wsrep::server_state::on_sync()
}; };
} }
else else
{
// Calls to on_sync() in synced state are possible if
// server desyncs itself from the group. Provider does not
// inform about this through callbacks.
if (state_ != s_synced)
{ {
state(lock, s_synced); state(lock, s_synced);
} }
}
init_synced_ = true; init_synced_ = true;
} }