• Wang Yuan's avatar
    Expire key firstly and then notify keyspace event (#8830) · 63acfe4b
    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).
    63acfe4b
db.c 68.9 KB