• marko's avatar
    branches/zip: buf_LRU_invalidate_tablespace(): Do not unnecessarily · aa7fcedf
    marko authored
    acquire the block_mutex for every block in the LRU list. Only acquire
    it when holding buf_pool_mutex is not sufficient. This should speed up
    the function and considerably reduce traffic on the memory bus and
    caches.
    
    I noticed this deficiency when working on Issue #157.
    This deficiency popped up again in Issue #449 (Bug #35077),
    which this fix does not fully address.
    
    rb://78 revision 1 approved by Heikki Tuuri.
    aa7fcedf
buf0lru.c 57.8 KB