• Martin Blix Grydeland's avatar
    Do not try to expire objects that are still busy. · 116393f2
    Martin Blix Grydeland authored
    There is a short window of opportunity between HSH_Insert() and
    HSH_Unbusy(), where the locks are released and the expiry thread can
    try to expire an object that is still busy (for objects with very
    short TTL). This patch makes the expiry thread check for busy objects
    and wait if the head of the binheap is busy.
    
    No test case as the window is too small.
    
    Fixes: #1150
    116393f2
cache_expire.c 12.6 KB