• Varun Gupta's avatar
    MDEV-14440: Assertion `inited==RND' failed in handler::ha_rnd_end · 2061e00c
    Varun Gupta authored
    In the function QUICK_RANGE_SELECT::init_ror_merged_scan we create a seperate handler if the handler in
    head->file cannot be reused. The flag free_file tells us if we have a seperate handler or not.
    There are cases where you might create a handler and then there might be a failure(running ALTER)
    and then we have to revert the handler back to the original one. The code does that
    but it does not reset the flag 'free_file' in this case.
    Also backported f2c41807.
    2061e00c
opt_range.cc 494 KB