diff options
author | antirez <antirez@gmail.com> | 2010-11-03 11:23:59 +0100 |
---|---|---|
committer | antirez <antirez@gmail.com> | 2010-11-03 11:23:59 +0100 |
commit | 1b1f47c915c69eae40d99727267b147f7c5a44ac (patch) | |
tree | 5fadcc2217c5d8f6232c9d83eb6986c93be11e4a /src/db.c | |
parent | 297e77c6ab9f65fed7f7ee5baa26310071f6ce9e (diff) | |
download | redis-1b1f47c915c69eae40d99727267b147f7c5a44ac.tar.gz |
command lookup process turned into a much more flexible and probably faster hash table
Diffstat (limited to 'src/db.c')
-rw-r--r-- | src/db.c | 4 |
1 files changed, 1 insertions, 3 deletions
@@ -435,16 +435,14 @@ time_t getExpire(redisDb *db, robj *key) { * will be consistent even if we allow write operations against expiring * keys. */ void propagateExpire(redisDb *db, robj *key) { - struct redisCommand *cmd; robj *argv[2]; - cmd = lookupCommand("del"); argv[0] = createStringObject("DEL",3); argv[1] = key; incrRefCount(key); if (server.appendonly) - feedAppendOnlyFile(cmd,db->id,argv,2); + feedAppendOnlyFile(server.delCommand,db->id,argv,2); if (listLength(server.slaves)) replicationFeedSlaves(server.slaves,db->id,argv,2); |