Skip to content

Commit

Permalink
MDEV-21598 Galera test galera.galera_sst_mysqldump does not take wsre…
Browse files Browse the repository at this point in the history
…p-new-cluster into account

Variable `wsrep_new_cluster` should be set to false after `wsrep_init_startup`.
Problem was that this was done before when mysqldump is used as SST method so option
wsrep-new-cluster didn't have any effect.
  • Loading branch information
mkaruza authored and Jan Lindström committed Jan 30, 2020
1 parent 41bc736 commit 74f7620
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
6 changes: 4 additions & 2 deletions sql/mysqld.cc
Expand Up @@ -5598,6 +5598,7 @@ int mysqld_main(int argc, char **argv)
if (Events::init((THD*) 0, opt_noacl || opt_bootstrap))
unireg_abort(1);

#ifdef WITH_WSREP
if (WSREP_ON)
{
if (opt_bootstrap)
Expand All @@ -5609,14 +5610,15 @@ int mysqld_main(int argc, char **argv)
wsrep_init_globals();
if (!wsrep_before_SE())
{
wsrep_init_startup (false);
wsrep_init_startup(false);
}

wsrep_new_cluster= false;
WSREP_DEBUG("Startup creating %ld applier threads running %lu",
wsrep_slave_threads - 1, wsrep_running_applier_threads);
wsrep_create_appliers(wsrep_slave_threads - 1);
}
}
#endif /* WITH_WSREP */

if (opt_bootstrap)
{
Expand Down
1 change: 0 additions & 1 deletion sql/wsrep_mysqld.cc
Expand Up @@ -752,7 +752,6 @@ void wsrep_init_globals()
wsrep_get_binlog_gtid_seqno(gtid);
wsrep_gtid_server.seqno(gtid.seqno);
}
wsrep_new_cluster= 0;
wsrep_init_schema();
if (WSREP_ON)
{
Expand Down

0 comments on commit 74f7620

Please sign in to comment.