• Yuchen Pei's avatar
    MDEV-32492 Delete and remove trx_ha on spider share mismatch · 14c40509
    Yuchen Pei authored
    A SPIDER_TRX_HA associated with a SPIDER_TRX could have longer
    lifetime than its associated SPIDER_SHARE. And it is identified with
    the associated table name. When the SPIDER_SHARE no longer valid, e.g.
    when the associated spider table has been dropped and recreated, the
    SPIDER_TRX_HA should be reset too.
    
    Since spider could create a new SPIDER_SHARE with the exact same
    address of a freed SPIDER_SHARE, we try to mark all SPIDER_TRX_HAs
    associated with a SPIDER_SHARE invalid when the SPIDER_SHARE is about
    to be freed.
    14c40509
ha_spider.cc 459 KB