mirror of
https://github.com/MariaDB/server.git
synced 2025-12-24 11:21:21 +03:00
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:
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user