• Marko Mäkelä's avatar
    MDEV-15058: Remove buf_pool_get_dirty_pages_count() · fbe662a5
    Marko Mäkelä authored
    Starting with commit 1a6f708e
    the function buf_pool_get_dirty_pages_count() is only used
    in a debug check. It was dead code for non-debug builds.
    
    buf_flush_dirty_pages(): Perform the debug check inline,
    and replace the assertion
    	ut_ad(first || buf_pool_get_dirty_pages_count(id) == 0);
    with another one that is executed while holding the mutexes:
    	ut_ad(id != bpage->id.space());
    fbe662a5
buf0flu.cc 91.7 KB