• Varun Gupta's avatar
    MDEV-23596: Assertion `tab->ref.use_count' failed in join_read_key_unlock_row · f69cc267
    Varun Gupta authored
    The issue here was that the query was using ORDER BY LIMIT optimzation where
    the access method was changed from EQ_REF access to an index scan (index that would
    resolve the ORDER BY clause).
    But the parameter READ_RECORD::unlock_row was not reset to rr_unlock_row, which is
    used when the access method is not EQ_REF access.
    f69cc267
order_by.test 88.1 KB