From b332ffc1af46691abc5a8eae1423ea053db62433 Mon Sep 17 00:00:00 2001 From: Monty Date: Mon, 12 Apr 2021 19:42:55 +0300 Subject: [PATCH] Fixed assert in WSREP if one started with --wsrep_provider=.. --- sql/sql_parse.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sql/sql_parse.cc b/sql/sql_parse.cc index c37b555ae52..91b8ec138a0 100644 --- a/sql/sql_parse.cc +++ b/sql/sql_parse.cc @@ -3814,7 +3814,7 @@ mysql_execute_command(THD *thd) #ifdef WITH_WSREP /* Check wsrep_mode rules before command execution. */ - if (WSREP(thd) && + if (WSREP_NNULL(thd) && wsrep_thd_is_local(thd) && !wsrep_check_mode_before_cmd_execute(thd)) goto error;