mirror of
https://github.com/codership/wsrep-lib.git
synced 2025-07-28 20:02:00 +03:00
codership/wsrep-lib#34 Fixed init first IST processing
Init first join crashed in server: s1 unallowed state transition: joined -> joined This was due to missing state check for state in on_primary_view() before changing to joined state. Added appropriate check. Implemented unit tests for simple IST scenarios.
This commit is contained in:
@ -724,7 +724,7 @@ void wsrep::server_state::on_primary_view(
|
||||
{
|
||||
state(lock, s_joiner);
|
||||
}
|
||||
if (init_initialized_)
|
||||
if (init_initialized_ && state_ != s_joined)
|
||||
{
|
||||
// If server side has already been initialized,
|
||||
// skip directly to s_joined.
|
||||
|
Reference in New Issue
Block a user