• Wang Yuan's avatar
    Expire key firstly and then notify keyspace event (#8830) · ef64333e
    Wang Yuan authored
    Modules event subscribers may get wrong things in notifyKeyspaceEvent callback,
    such as wrong number of keys, or be able to lookup this key.
    This commit changes the order to be like the one in evict.c.
    
    Cleanup:
    Since we know the key exists (it expires now), db*Delete is sure to return 1,
    so there's no need to check it's output (misleading).
    
    (cherry picked from commit 63acfe4b)
    ef64333e
db.c 68.9 KB