mirror of
https://github.com/codership/wsrep-lib.git
synced 2025-07-21 12:22:06 +03:00
Fix for case where joiner shifts directly to synced state.
This commit is contained in:
@ -287,15 +287,20 @@ void wsrep::server_state::on_sync()
|
|||||||
{
|
{
|
||||||
wsrep::log_info() << "Server " << name_ << " synced with group";
|
wsrep::log_info() << "Server " << name_ << " synced with group";
|
||||||
wsrep::unique_lock<wsrep::mutex> lock(mutex_);
|
wsrep::unique_lock<wsrep::mutex> lock(mutex_);
|
||||||
|
|
||||||
if (server_service_.sst_before_init())
|
if (server_service_.sst_before_init())
|
||||||
{
|
{
|
||||||
switch (state_)
|
switch (state_)
|
||||||
{
|
{
|
||||||
case s_connected:
|
case s_connected:
|
||||||
state(lock, s_joiner);
|
state(lock, s_joiner);
|
||||||
|
// fall through
|
||||||
case s_joiner:
|
case s_joiner:
|
||||||
state(lock, s_initializing);
|
state(lock, s_initializing);
|
||||||
break;
|
break;
|
||||||
|
case s_initialized:
|
||||||
|
state(lock, s_joined);
|
||||||
|
// fall through
|
||||||
default:
|
default:
|
||||||
/* State */
|
/* State */
|
||||||
state(lock, s_synced);
|
state(lock, s_synced);
|
||||||
|
Reference in New Issue
Block a user