• Marko Mäkelä's avatar
    MDEV-31080 fil_validate() failures during deferred tablespace recovery · 0cda0e4e
    Marko Mäkelä authored
    fil_space_t::create(), fil_space_t::add(): Expect the caller to
    acquire and release fil_system.mutex. In this way, creating a tablespace
    and adding the first (usually only) data file will be atomic.
    
    recv_sys_t::recover_deferred(): Correctly protect some changes by
    holding fil_system.mutex.
    
    Tested by: Matthias Leich
    0cda0e4e
fsp0sysspace.cc 22.6 KB