• Yuchen Pei's avatar
    MDEV-29963 MDEV-31357 Spider should clear its lock lists when locking fails · 52a5b16b
    Yuchen Pei authored
    Spider populates its lock lists (a hash) in store_lock(), and normally
    clears them in the actual lock_tables(). However, if lock_tables()
    fails, there's no reset_lock() method for storage engine handlers,
    which can cause bad things to happen. For example, if one of the table
    involved is dropped and recreated, or simply TRUNCATEd, when executing
    LOCK TABLES again, the lock lists would be queried again in
    store_lock(), which could cause access to freed space associated with
    the dropped table.
    52a5b16b
spd_trx.cc 135 KB