• Aleksey Midenkov's avatar
    MDEV-21011 Table corruption reported for versioned partitioned table after... · a7cf0db3
    Aleksey Midenkov authored
    MDEV-21011 Table corruption reported for versioned partitioned table after DELETE: "Found a misplaced row"
    
    LIMIT history partitions cannot be checked by existing algorithm of
    check_misplaced_rows() because working history partition is
    incremented each time another one is filled. The existing algorithm
    gets record and tries to decide partition id for it by
    get_partition_id(). For LIMIT history it will just get first
    non-filled partition.
    
    To fix such partitions it is required to do REBUILD instead of REPAIR.
    a7cf0db3
ha_partition.cc 351 KB