diff options
Diffstat (limited to 'sql/sql_admin.cc')
-rw-r--r-- | sql/sql_admin.cc | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/sql/sql_admin.cc b/sql/sql_admin.cc index 65f1f2d6627..82fc1cbfff7 100644 --- a/sql/sql_admin.cc +++ b/sql/sql_admin.cc @@ -339,7 +339,7 @@ static bool open_only_one_table(THD* thd, TABLE_LIST* table, to differentiate from ALTER TABLE...CHECK PARTITION on which view is not allowed. */ - if (lex->alter_info.flags & ALTER_ADMIN_PARTITION || + if (lex->alter_info.partition_flags & ALTER_PARTITION_ADMIN || !is_view_operator_func) { table->required_type= TABLE_TYPE_NORMAL; @@ -562,7 +562,7 @@ static bool mysql_admin_table(THD* thd, TABLE_LIST* tables, */ Alter_info *alter_info= &lex->alter_info; - if (alter_info->flags & ALTER_ADMIN_PARTITION) + if (alter_info->partition_flags & ALTER_PARTITION_ADMIN) { if (!table->table->part_info) { @@ -1002,7 +1002,7 @@ send_result_message: Alter_info *alter_info= &lex->alter_info; protocol->store(STRING_WITH_LEN("note"), system_charset_info); - if (alter_info->flags & ALTER_ADMIN_PARTITION) + if (alter_info->partition_flags & ALTER_PARTITION_ADMIN) { protocol->store(STRING_WITH_LEN( "Table does not support optimize on partitions. All partitions " @@ -1046,10 +1046,10 @@ send_result_message: save_flags= alter_info->flags; /* - Reset the ALTER_ADMIN_PARTITION bit in alter_info->flags + Reset the ALTER_PARTITION_ADMIN bit in alter_info->flags to force analyze on all partitions. */ - alter_info->flags &= ~(ALTER_ADMIN_PARTITION); + alter_info->partition_flags &= ~(ALTER_PARTITION_ADMIN); result_code= table->table->file->ha_analyze(thd, check_opt); if (result_code == HA_ADMIN_ALREADY_DONE) result_code= HA_ADMIN_OK; |