• Jacob Mathew's avatar
    MDEV-7914: spider/bg.ha, spider/bg.ha_part crash server sporadically in buildbot · eabfadce
    Jacob Mathew authored
    The crash occurs when a thread that is closing its connection attempts to
    access Spider transaction information when another thread has freed that memory
    while processing Spider plugin deinit.  This occurs because Spider does not
    adjust the plugin's reference count when it sets a transaction information
    pointer for the plugin.
    
    The fix I implemented changes the way Spider sets the transaction information
    pointer to use thd_set_ha_data() so that Spider's plugin reference counter is
    adjusted as well.
    
    Author:
      Jacob Mathew.
    
    Reviewer:
      Kentoku Shiba.
    eabfadce
spd_trx.cc 137 KB