summaryrefslogtreecommitdiff
path: root/sql/wsrep_mysqld.cc
diff options
context:
space:
mode:
authorNirbhay Choubey <nirbhay@mariadb.com>2016-09-29 14:58:32 -0400
committerNirbhay Choubey <nirbhay@mariadb.com>2016-11-07 11:53:57 -0500
commit9d89c182bc1f50ffcf4136320786a27b0027da20 (patch)
tree884069491d4282285abe24a242136862f9b3d59e /sql/wsrep_mysqld.cc
parent7241258c1f6812d66adfb729e28734c90d0925ef (diff)
downloadmariadb-git-9d89c182bc1f50ffcf4136320786a27b0027da20.tar.gz
MDEV-9312: storage engine not enforced during galera cluster replication
Postfix: The pre-initialization of wsrep threads is not needed for mysqldump sst method.
Diffstat (limited to 'sql/wsrep_mysqld.cc')
-rw-r--r--sql/wsrep_mysqld.cc6
1 files changed, 5 insertions, 1 deletions
diff --git a/sql/wsrep_mysqld.cc b/sql/wsrep_mysqld.cc
index 7e6f9bbce6d..01fb6d5e2c5 100644
--- a/sql/wsrep_mysqld.cc
+++ b/sql/wsrep_mysqld.cc
@@ -807,8 +807,12 @@ void wsrep_init_startup (bool first)
Pre-initialize global_system_variables.table_plugin with a dummy engine
(placeholder) required during the initialization of wsrep threads (THDs).
(see: plugin_thdvar_init())
+ Note: This only needs to be done for rsync & xtrabackup based SST methods.
+ In case of mysqldump SST method, the wsrep threads are created after the
+ server plugins & global system variables are initialized.
*/
- wsrep_plugins_pre_init();
+ if (wsrep_before_SE())
+ wsrep_plugins_pre_init();
/* Skip replication start if dummy wsrep provider is loaded */
if (!strcmp(wsrep_provider, WSREP_NONE)) return;