]> git.saurik.com Git - redis.git/blobdiff - src/diskstore.c
handled DEL command as a special optimized case for disk store
[redis.git] / src / diskstore.c
index 35c591d755110429fb8a2ece81ee2192a47c7cc4..6e59bc679cf704678945830b0d69b91ddef98fc1 100644 (file)
@@ -262,6 +262,10 @@ int dsDel(redisDb *db, robj *key) {
 }
 
 int dsExists(redisDb *db, robj *key) {
+    char buf[1024];
+
+    dsKeyToPath(db,buf,key);
+    return access(buf,R_OK) == 0;
 }
 
 int dsFlushDb(int dbid) {