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:
@ -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)
|
||||
|
Reference in New Issue
Block a user