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

codership/wsrep-lib#34 Handle sync-disconnected-sync for init first

Handle init first case where state is cycled from synced to
disconnected and back synced without SST.
This commit is contained in:
Teemu Ollakka
2018-12-14 17:31:18 +02:00
parent ae0109f9b3
commit 1776537765
2 changed files with 56 additions and 5 deletions

View File

@ -691,7 +691,7 @@ void wsrep::server_state::on_primary_view(
state(lock, s_initializing);
if (init_initialized_)
{
// If storage engines have already been initialized,
// If server side has already been initialized,
// skip directly to s_joined.
state(lock, s_initialized);
state(lock, s_joined);
@ -710,6 +710,12 @@ void wsrep::server_state::on_primary_view(
{
state(lock, s_joiner);
}
if (init_initialized_)
{
// If server side has already been initialized,
// skip directly to s_joined.
state(lock, s_joined);
}
}
if (init_initialized_ == false)