MDEV-6961: mysqld should terminate when started with --wsrep-recover
Fixed the condition to make sure mysqld process terminates when started with wsrep-recover.
This commit is contained in:
parent
f7708d6830
commit
5298e21c32
@ -5620,10 +5620,11 @@ int mysqld_main(int argc, char **argv)
|
|||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
if (WSREP_ON && wsrep_recovery)
|
// Recover and exit.
|
||||||
|
if (wsrep_recovery)
|
||||||
{
|
{
|
||||||
select_thread_in_use= 0;
|
select_thread_in_use= 0;
|
||||||
wsrep_recover();
|
if (WSREP_ON) wsrep_recover();
|
||||||
unireg_abort(0);
|
unireg_abort(0);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user