• Marko Mäkelä's avatar
    MDEV-24101 innodb_random_read_ahead=ON causes hang on DDL or shutdown · 90f43d26
    Marko Mäkelä authored
    buf_read_ahead_random(): Do not leak a tablespace reference.
    The reference was already acquired in fil_space_t::get(),
    and we must only check that operations were not stopped.
    
    This error was introduced when
    commit 118e258a
    merged n_pending_ios, n_pending_ops into a single n_pending.
    
    This was not noticed earlier, because innodb_random_read_ahead
    is OFF by default and our regression tests did not vary that
    parameter at all.
    90f43d26
buf0rea.cc 25.1 KB