• Marko Mäkelä's avatar
    Bug#12584374 LOCK_VALIDATE TRIPS ASSERTION !BLOCK->PAGE.FILE_PAGE_WAS_FREED · a7c6b1f0
    Marko Mäkelä authored
    lock_clust_rec_some_has_impl(), row_get_rec_trx_id(),
    lock_rec_queue_validate(), lock_table_other_has_incompatible(),
    lock_table_has_to_wait_in_queue(), lock_table_queue_validate():
    Add const qualifiers.
    
    row_get_trx_id_offset(): Add const qualifiers. Keep the parameter rec
    only in UNIV_DEBUG builds. Inline the function.
    
    lock_rec_validate_page(): Take the buffer block as a parameter, to
    avoid a buf_page_get_gen() call in most cases.
    
    lock_rec_validate_page_low(): A version of lock_rec_validate_page()
    that assumes that the lock system mutexes are already being held.
    
    lock_rec_get_next_on_page_const(): A const variant of
    lock_rec_get_next_on_page().
    
    lock_validate(): Do not release the lock system mutex while
    buffer-fixing the block for the lock_rec_validate_page() call.
    Releasing the mutex apparently caused the assertion failure.
    
    rb:665 approved by Sunny Bains
    a7c6b1f0
row0row.ic 4.2 KB