• Yuchen Pei's avatar
    MDEV-34589 spider: unconditionally restore da status in rollback · a9a06454
    Yuchen Pei authored
    The documentation of ha_rollback_trans() suggests that
    handlerton::rollback() should never return error:
    
          if ((err= ht->rollback(ht, thd, all)))
          {
            // cannot happen
    
    Further, any error returned from ha_rollback_trans() is discarded in
    trans_rollback_stmt(), and the code path in mysql_admin_table() after
    calling trans_rollback_stmt() calls my_eof() which asserts clear
    dastatus. So we clear the dastatus in spider_rollback() on error.
    a9a06454
spd_trx.cc 121 KB