Commit 5298e21c authored by Nirbhay Choubey's avatar Nirbhay Choubey

MDEV-6961: mysqld should terminate when started with --wsrep-recover

Fixed the condition to make sure mysqld process terminates when
started with wsrep-recover.
parent f7708d68
...@@ -5620,10 +5620,11 @@ int mysqld_main(int argc, char **argv) ...@@ -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);
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment