• Marko Mäkelä's avatar
    MDEV-11369: Implement accurate checks for the metadata record · ae4f464f
    Marko Mäkelä authored
    Because changes of the FIL_PAGE_TYPE or PAGE_INSTANT in the root
    page are not undo-logged, it is possible that the fields suggest
    that instant ADD COLUMN is in effect, even though no metadata
    record exists. If the fields are set, proceed to fetch the
    metadata record. If the metadata record does not exist, return
    success if !index->is_instant().
    
    Also, check that the "infimum" and "supremum" records carry the
    strings in the root page. In a later format that supports instant
    DROP COLUMN, we will have to store more information in the root
    page, so that index->n_core_null_bytes can be determined accurately.
    ae4f464f
btr0cur.cc 242 KB