Commit 06393cd8 authored by Jan Lindström's avatar Jan Lindström Committed by Julius Goryavsky

MDEV-29602 : Galera debug build crashes when the spider plugin is enabled

Spider system tables should be created so that wsrep_on=OFF.
Signed-off-by: default avatarJulius Goryavsky <julius.goryavsky@mariadb.com>
parent 8f9bb826
...@@ -10058,6 +10058,8 @@ void *spider_table_bg_sts_action( ...@@ -10058,6 +10058,8 @@ void *spider_table_bg_sts_action(
thd->mysys_var->current_cond = &thread->cond; thd->mysys_var->current_cond = &thread->cond;
thd->mysys_var->current_mutex = &thread->mutex; thd->mysys_var->current_mutex = &thread->mutex;
} }
bool spd_wsrep_on = thd->variables.wsrep_on;
thd->variables.wsrep_on = false;
while (spider_init_queries[i].length && !thd->killed && !thread->killed && while (spider_init_queries[i].length && !thd->killed && !thread->killed &&
thread->init_command) thread->init_command)
{ {
...@@ -10071,6 +10073,7 @@ void *spider_table_bg_sts_action( ...@@ -10071,6 +10073,7 @@ void *spider_table_bg_sts_action(
} }
++i; ++i;
} }
thd->variables.wsrep_on = spd_wsrep_on;
thd->mysys_var->current_cond = &thread->cond; thd->mysys_var->current_cond = &thread->cond;
thd->mysys_var->current_mutex = &thread->mutex; thd->mysys_var->current_mutex = &thread->mutex;
thd->client_capabilities -= CLIENT_MULTI_RESULTS; thd->client_capabilities -= CLIENT_MULTI_RESULTS;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment