• Daniele Sciascia's avatar
    Fixup 0ccdf54b · ef7a2344
    Daniele Sciascia authored
    0ccdf54b removed stack allocated THD objects from functions
    Wsrep_schema::replay_transaction(). However, it inadvertedly
    anticipated the destruction of the THD, causing assertions and usage
    of THD after it was destroyed.
    The fix consists in extracting the original function into a separate
    function, and leave the allocation and destruction of the THD object
    in Wsrep_schema::replay_transaction(), making sure that using the heap
    allocated THD has no side effects.
    Same for Wsrep_schema::recover_sr_transactions().
    Signed-off-by: default avatarJulius Goryavsky <julius.goryavsky@mariadb.com>
    ef7a2344
wsrep_schema.cc 46.1 KB