Commits

Anonymous committed d4dd655

Don't set expire to keys with ttl=0, remove them immediately.

Comments (0)

Files changed (1)

         addReply(c,shared.czero);
         return;
     }
-    if (seconds < 0) {
+    if (seconds <= 0) {
         if (deleteKey(c->db,key)) server.dirty++;
         addReply(c, shared.cone);
         return;