• Marko Mäkelä's avatar
    Follow-up to MDEV-14952: Remove some more btr_get_search_latch() · d87531a6
    Marko Mäkelä authored
    Replace some !rw_lock_own() assertions with the stronger
    !btr_search_own_any(). Remove some redundant btr_get_search_latch()
    calls.
    
    btr_search_update_hash_ref(): Remove a duplicated assertion.
    
    btr_search_build_page_hash_index(): Remove a duplicated assertion.
    rw_lock_s_lock() asserts that the latch is not being held.
    
    btr_search_disable_ref_count(): Remove an assertion. The only caller
    is acquiring all adaptive hash index latches.
    d87531a6
btr0sea.ic 4.81 KB