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

@ -619,7 +619,13 @@ void wsrep::server_state::on_sync()
}
else
{
state(lock, s_synced);
// 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);
}
}
init_synced_ = true;
}