• Jan Lindström's avatar
    MDEV-8501: encryption.create_or_replace fails in buildbot on P8 builders · 62b5a561
    Jan Lindström authored
    Analysis: There is race between drop table and encryption threads that
    could cause encryption thread to enter mutex that has been already
    released.
    
    Fix: When destroying crypt_data first enter the mutex and set crypt data
    unavailable, then release the memory and clean up the data. This should
    make the race more unprobable. Additionally, added big_test for
    create_or_replace as it could fail testcase timeout
    if you have slow I/O (tested that testcase passes with --mem).
    62b5a561
create_or_replace.test 4.42 KB