summaryrefslogtreecommitdiff
path: root/sql/sql_prepare.cc
diff options
context:
space:
mode:
authorAlexey Botchkov <holyfoot@askmonty.org>2021-05-14 15:59:09 +0400
committerAlexey Botchkov <holyfoot@askmonty.org>2021-05-17 12:09:48 +0400
commitc22d567e1ad78e5683c1a4ab5bb29a9fb3bc75ce (patch)
treeeb71fda7e69c29cee5eabb89f34fc869bc0d510d /sql/sql_prepare.cc
parent4d53a7585c532c2cfcea184259e3153f95b35683 (diff)
downloadmariadb-git-c22d567e1ad78e5683c1a4ab5bb29a9fb3bc75ce.tar.gz
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.
Diffstat (limited to 'sql/sql_prepare.cc')
-rw-r--r--sql/sql_prepare.cc1
1 files changed, 1 insertions, 0 deletions
diff --git a/sql/sql_prepare.cc b/sql/sql_prepare.cc
index 56ff533cfd0..21958e24d91 100644
--- a/sql/sql_prepare.cc
+++ b/sql/sql_prepare.cc
@@ -6082,6 +6082,7 @@ extern "C" int execute_sql_command(const char *command,
new_thd->store_globals();
new_thd->security_ctx->skip_grants();
new_thd->query_cache_is_applicable= 0;
+ new_thd->variables.wsrep_on= 0;
bzero((char*) &new_thd->net, sizeof(new_thd->net));
thd= new_thd;
}