• Daniele Sciascia's avatar
    MDEV-30955 Explicit locks released too early in rollback path · feeeacc4
    Daniele Sciascia authored
    Assertion `thd->mdl_context.is_lock_owner()` fires when a client is
    disconnected, while transaction and and a table is opened through
    `HANDLER` interface.
    Reason for the assertion is that when a connection closes, its ongoing
    transaction is eventually rolled back in
    `Wsrep_client_state::bf_rollback()`. This method also releases explicit
    which are expected to survive beyond the transaction lifetime.
    This patch also removes calls to `mysql_ull_cleanup()`. User level
    locks are not supported in combination with Galera, making these calls
    unnecessary.
    feeeacc4
sql_parse.cc 331 KB