mirror of
https://github.com/MariaDB/server.git
synced 2025-08-01 03:47:19 +03:00
MDEV-9312: storage engine not enforced during galera cluster replication
Perform a post initialization of plugin-related variables of wsrep threads after their global counterparts have been initialized.
This commit is contained in:
@ -36,6 +36,7 @@
|
||||
#include <cstdlib>
|
||||
#include "log_event.h"
|
||||
#include <slave.h>
|
||||
#include "sql_plugin.h" /* wsrep_plugins_pre_init() */
|
||||
|
||||
wsrep_t *wsrep = NULL;
|
||||
/*
|
||||
@ -792,7 +793,6 @@ void wsrep_thr_init()
|
||||
DBUG_VOID_RETURN;
|
||||
}
|
||||
|
||||
|
||||
void wsrep_init_startup (bool first)
|
||||
{
|
||||
if (wsrep_init()) unireg_abort(1);
|
||||
@ -803,6 +803,13 @@ void wsrep_init_startup (bool first)
|
||||
wsrep_debug, wsrep_convert_LOCK_to_trx,
|
||||
(wsrep_on_fun)wsrep_on);
|
||||
|
||||
/*
|
||||
Pre-initialize global_system_variables.table_plugin with a dummy engine
|
||||
(placeholder) required during the initialization of wsrep threads (THDs).
|
||||
(see: plugin_thdvar_init())
|
||||
*/
|
||||
wsrep_plugins_pre_init();
|
||||
|
||||
/* Skip replication start if dummy wsrep provider is loaded */
|
||||
if (!strcmp(wsrep_provider, WSREP_NONE)) return;
|
||||
|
||||
|
Reference in New Issue
Block a user