• Jan Lindström's avatar
    MDEV-11182: InnoDB: Assertion failure in file buf0buf.cc line 4730... · 554c60ab
    Jan Lindström authored
    MDEV-11182: InnoDB: Assertion failure in file buf0buf.cc line 4730 (encryption.create_or_replace fails in buildbot and outside)
    
    Analysis: Problem is that page is encrypted but encryption information
    on page 0 has already being changed.
    
    Fix: If page header contains key_version != 0 and even if based on
    current encryption information tablespace is not encrypted we
    need to check is page corrupted. If it is not, then we know that
    page is not encrypted. If page is corrupted, we need to try to
    decrypt it and then compare the stored and calculated checksums
    to see is page corrupted or not.
    554c60ab
buf0buf.cc 175 KB