From ec66320b0c67fc11144c7f747c889531f56be49f Mon Sep 17 00:00:00 2001 From: Monty Date: Fri, 8 Mar 2019 10:17:56 +0200 Subject: [PATCH] Replace setting QPLAN_ADMIN directly with prepare_logs_for_admin_command() --- 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 f67fdb1ddd9..5a520c0df02 100644 --- a/sql/sql_parse.cc +++ b/sql/sql_parse.cc @@ -6383,7 +6383,7 @@ end_with_restore_list: DBUG_ASSERT(first_table == all_tables && first_table != 0); /* fall through */ case SQLCOM_ALTER_SEQUENCE: - thd->query_plan_flags|= QPLAN_ADMIN; + thd->prepare_logs_for_admin_command(); /* fall through */ case SQLCOM_SIGNAL: case SQLCOM_RESIGNAL: