• guybe7's avatar
    EXISTS should not alter LRU, OBJECT should not reveal expired keys on replica (#8016) · f8ae9917
    guybe7 authored
    The bug was introduced by #5021 which only attempted avoid EXIST on an
    already expired key from returning 1 on a replica.
    
    Before that commit, dbExists was used instead of
    lookupKeyRead (which had an undesired effect to "touch" the LRU/LFU)
    
    Other than that, this commit fixes OBJECT to also come empty handed on
    expired keys in replica.
    
    And DEBUG DIGEST-VALUE to behave like DEBUG OBJECT (get the data from
    the key regardless of it's expired state)
    f8ae9917
db.c 63.3 KB