summaryrefslogtreecommitdiff
path: root/src/db.c
diff options
context:
space:
mode:
authorantirez <antirez@gmail.com>2010-11-03 11:23:59 +0100
committerantirez <antirez@gmail.com>2010-11-03 11:23:59 +0100
commit1b1f47c915c69eae40d99727267b147f7c5a44ac (patch)
tree5fadcc2217c5d8f6232c9d83eb6986c93be11e4a /src/db.c
parent297e77c6ab9f65fed7f7ee5baa26310071f6ce9e (diff)
downloadredis-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.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/db.c b/src/db.c
index f2a0c09ee..aa1c14ad4 100644
--- a/src/db.c
+++ b/src/db.c
@@ -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);