• Binbin's avatar
    Minor optimization for expire dict in defragKey (#13027) · 87eaf119
    Binbin authored
    Since now a DB in cluster mode is divided into 16384 dicts, here
    we directly check kvstoreDictSize instead of kvstoreSize, which
    may have a higher probability that we can save the lookup.
    
    The other change is a cleanup, obviously kvstoreGetHash should be
    applied to the db->expires dicts.
    87eaf119
defrag.c 40.2 KB