Commit c22d567e authored by Alexey Botchkov's avatar Alexey Botchkov

MDEV-25690 Plugins can't execute sql statements with the Galera enabled.

For the plugin thread during the server start the wsrep_on should be 0.
parent 4d53a758
...@@ -6082,6 +6082,7 @@ extern "C" int execute_sql_command(const char *command, ...@@ -6082,6 +6082,7 @@ extern "C" int execute_sql_command(const char *command,
new_thd->store_globals(); new_thd->store_globals();
new_thd->security_ctx->skip_grants(); new_thd->security_ctx->skip_grants();
new_thd->query_cache_is_applicable= 0; new_thd->query_cache_is_applicable= 0;
new_thd->variables.wsrep_on= 0;
bzero((char*) &new_thd->net, sizeof(new_thd->net)); bzero((char*) &new_thd->net, sizeof(new_thd->net));
thd= new_thd; thd= new_thd;
} }
......
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