• Yuchen Pei's avatar
    MDEV-31475 Spider: only reset wide_handler when owning it · 698dae54
    Yuchen Pei authored
    A wide_handler is shared among ha_spider of partitions of the same
    spider table, where the last partition is designated the owner of the
    wide_handler, and is responsible for its deallocation. Therefore in
    case of failure, we only reset wide_handler in error handling if the
    current ha_spider is the owner of the wide_handler, otherwise it will
    result in segv in the destructor of ha_spider, or during
    ha_spider::close().
    698dae54
ha_spider.h 28.5 KB