From 1be39f86ccced289f7a1755467f801a1b5974ede Mon Sep 17 00:00:00 2001 From: Aleksey Midenkov Date: Tue, 2 Nov 2021 04:52:03 +0300 Subject: MDEV-25552 system versioned partitioned by LIMIT tables break CHECK TABLE Replaced HA_ADMIN_NOT_IMPLEMENTED error code by HA_ADMIN_OK. Now CHECK TABLE does not fail by unsupported check_misplaced_rows(). Admin message is not needed as well. Test case is the same as for MDEV-21011 (a7cf0db3d86), the result have been changed. --- sql/ha_partition.cc | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) (limited to 'sql/ha_partition.cc') diff --git a/sql/ha_partition.cc b/sql/ha_partition.cc index fc1f0ebcb4e..bd73642cd0d 100644 --- a/sql/ha_partition.cc +++ b/sql/ha_partition.cc @@ -10797,11 +10797,8 @@ int ha_partition::check_misplaced_rows(uint read_part_id, bool do_repair) read_part_id != m_part_info->vers_info->now_part->id && !m_part_info->vers_info->interval.is_set()) { - print_admin_msg(ha_thd(), MYSQL_ERRMSG_SIZE, "note", - table_share->db.str, table->alias, - opt_op_name[CHECK_PARTS], - "Not supported for non-INTERVAL history partitions"); - DBUG_RETURN(HA_ADMIN_NOT_IMPLEMENTED); + /* Skip this check as it is not supported for non-INTERVAL history partitions. */ + DBUG_RETURN(HA_ADMIN_OK); } if (do_repair) -- cgit v1.2.1