File tree Expand file tree Collapse file tree 2 files changed +8
-2
lines changed Expand file tree Collapse file tree 2 files changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -5316,8 +5316,10 @@ static int init_server_components()
5316
5316
initialized. This initialization was not possible before, as plugins
5317
5317
(and thus some global system variables) are initialized after wsrep
5318
5318
startup threads are created.
5319
+ Note: This only needs to be done for rsync, xtrabackup based SST methods.
5319
5320
*/
5320
- wsrep_plugins_post_init ();
5321
+ if (wsrep_before_SE ())
5322
+ wsrep_plugins_post_init ();
5321
5323
5322
5324
if (WSREP_ON && !opt_bin_log)
5323
5325
{
Original file line number Diff line number Diff line change @@ -786,8 +786,12 @@ void wsrep_init_startup (bool first)
786
786
Pre-initialize global_system_variables.table_plugin with a dummy engine
787
787
(placeholder) required during the initialization of wsrep threads (THDs).
788
788
(see: plugin_thdvar_init())
789
+ Note: This only needs to be done for rsync & xtrabackup based SST methods.
790
+ In case of mysqldump SST method, the wsrep threads are created after the
791
+ server plugins & global system variables are initialized.
789
792
*/
790
- wsrep_plugins_pre_init ();
793
+ if (wsrep_before_SE ())
794
+ wsrep_plugins_pre_init ();
791
795
792
796
/* Skip replication start if dummy wsrep provider is loaded */
793
797
if (!strcmp (wsrep_provider, WSREP_NONE)) return ;
You can’t perform that action at this time.
0 commit comments