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:
Nirbhay Choubey 2014-11-30 00:12:45 -05:00
parent f7708d6830
commit 5298e21c32

View file

@ -5620,10 +5620,11 @@ int mysqld_main(int argc, char **argv)
}
#endif
if (WSREP_ON && wsrep_recovery)
// Recover and exit.
if (wsrep_recovery)
{
select_thread_in_use= 0;
wsrep_recover();
if (WSREP_ON) wsrep_recover();
unireg_abort(0);
}