• Yuchen Pei's avatar
    MDEV-28105 Return error in ha_spider::write_row() if info(HA_STATUS_AUTO) fails · fd767462
    Yuchen Pei authored
    Spider calls info with HA_STATUS_AUTO to update auto increment info,
    which may attempt to connect the data node. If the connection fails,
    it may emit an error and return the same error. This error should not
    be of lower priority than any possible error from the later call to
    handler::update_auto_increment().
    
    Without this change, certain errors from update_auto_increment() such
    as HA_ERR_AUTOINC_ERANGE may get ignored, causing my_insert() to call
    my_ok(), which fails the assertion because the error was emitted in
    the info() call (Diagnostics_area::is_set() returns true).
    fd767462
ha_spider.cc 498 KB