mirror of
https://github.com/MariaDB/server.git
synced 2025-08-05 13:16:09 +03:00
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 (a7cf0db3d8
), the result have
been changed.
This commit is contained in:
@@ -603,8 +603,7 @@ delete from t1;
|
|||||||
delete from t1;
|
delete from t1;
|
||||||
check table t1;
|
check table t1;
|
||||||
Table Op Msg_type Msg_text
|
Table Op Msg_type Msg_text
|
||||||
test.t1 check note Not supported for non-INTERVAL history partitions
|
test.t1 check status OK
|
||||||
test.t1 check note The storage engine for the table doesn't support check
|
|
||||||
drop table t1;
|
drop table t1;
|
||||||
#
|
#
|
||||||
# MDEV-21233 Assertion `m_extra_cache' failed in ha_partition::late_extra_cache
|
# MDEV-21233 Assertion `m_extra_cache' failed in ha_partition::late_extra_cache
|
||||||
|
@@ -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 &&
|
read_part_id != m_part_info->vers_info->now_part->id &&
|
||||||
!m_part_info->vers_info->interval.is_set())
|
!m_part_info->vers_info->interval.is_set())
|
||||||
{
|
{
|
||||||
print_admin_msg(ha_thd(), MYSQL_ERRMSG_SIZE, "note",
|
/* Skip this check as it is not supported for non-INTERVAL history partitions. */
|
||||||
table_share->db.str, table->alias,
|
DBUG_RETURN(HA_ADMIN_OK);
|
||||||
opt_op_name[CHECK_PARTS],
|
|
||||||
"Not supported for non-INTERVAL history partitions");
|
|
||||||
DBUG_RETURN(HA_ADMIN_NOT_IMPLEMENTED);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if (do_repair)
|
if (do_repair)
|
||||||
|
Reference in New Issue
Block a user