• Marko Mäkelä's avatar
    Code clean-up related to MDEV-13167 · e52dd13c
    Marko Mäkelä authored
    xdes_get_descriptor_const(): New function, to get read-only access to
    the allocation descriptor.
    
    fseg_page_is_free(): Only acquire a shared latch on the tablespace,
    not an exclusive latch. Calculate the descriptor page address before
    acquiring the tablespace latch. If the page number is out of bounds,
    return without fetching any page. Access only one descriptor page.
    
    fsp_page_is_free(), fsp_page_is_free_func(): Remove.
    Use fseg_page_is_free() instead.
    
    fsp_init_file_page(): Move the debug parameter into a separate function.
    
    btr_validate_level(): Remove the unused variable "seg".
    e52dd13c
fsp0fsp.cc 102 KB