1
0
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:
Teemu Ollakka
2018-12-20 11:11:27 +02:00
parent 76335a3042
commit ac5a4cde0d
2 changed files with 50 additions and 1 deletions

View File

@ -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.