X-Git-Url: https://git.saurik.com/redis.git/blobdiff_plain/7d0966a6b712078bf7d52c13669539ba619cf1fc..645e9962cbf5894cdf2b80a6672fdd4c3af17657:/src/db.c diff --git a/src/db.c b/src/db.c index f2a0c09e..aa1c14ad 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);