diff options
author | tmokmss <tomookam@live.jp> | 2022-05-30 08:57:26 +0000 |
---|---|---|
committer | tmokmss <tomookam@live.jp> | 2022-05-30 08:57:26 +0000 |
commit | 7290c662c35c9e028cb6d426f492698c0e799ded (patch) | |
tree | 42f4a9b30e70efc5a733e11a6a7359a5e4acf60c | |
parent | 3e47df04270d097e929fed7d8e523463060819e6 (diff) | |
download | mariadb-git-bb-10.3-MDEV-28599.tar.gz |
use unlikely instead of likelybb-10.3-MDEV-28599
-rw-r--r-- | sql/sql_partition_admin.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sql/sql_partition_admin.cc b/sql/sql_partition_admin.cc index 40ba6bf6800..90b114b792c 100644 --- a/sql/sql_partition_admin.cc +++ b/sql/sql_partition_admin.cc @@ -540,7 +540,7 @@ bool Sql_cmd_alter_table_exchange_partition:: swap_table= swap_table_list->table; /* Don't allow to exchange with a VIEW */ - if (likely(swap_table_list->view)) + if (unlikely(swap_table_list->view)) { my_error(ER_WRONG_OBJECT, MYF(0), table_list->db.str, swap_table_list->table_name.str, "BASE TABLE"); |