Skip to content

Commit c22d567

Browse files
author
Alexey Botchkov
committed
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.
1 parent 4d53a75 commit c22d567

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

sql/sql_prepare.cc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6082,6 +6082,7 @@ extern "C" int execute_sql_command(const char *command,
60826082
new_thd->store_globals();
60836083
new_thd->security_ctx->skip_grants();
60846084
new_thd->query_cache_is_applicable= 0;
6085+
new_thd->variables.wsrep_on= 0;
60856086
bzero((char*) &new_thd->net, sizeof(new_thd->net));
60866087
thd= new_thd;
60876088
}

0 commit comments

Comments
 (0)