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:
@ -618,9 +618,15 @@ void wsrep::server_state::on_sync()
|
|||||||
};
|
};
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
{
|
||||||
|
// 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);
|
state(lock, s_synced);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
init_synced_ = true;
|
init_synced_ = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user