]> git.saurik.com Git - redis.git/blobdiff - src/db.c
If the computer running the Redis test is slow, we revert to --clients 1 to avoid...
[redis.git] / src / db.c
index fff63f4846f86c88b0cc00db449931f71de97e7a..6447838caa7e19f98378eeeed940c64de222001d 100644 (file)
--- a/src/db.c
+++ b/src/db.c
@@ -261,7 +261,7 @@ void keysCommand(redisClient *c) {
     unsigned long numkeys = 0;
     void *replylen = addDeferredMultiBulkLength(c);
 
-    di = dictGetIterator(c->db->dict);
+    di = dictGetSafeIterator(c->db->dict);
     allkeys = (pattern[0] == '*' && pattern[1] == '\0');
     while((de = dictNext(di)) != NULL) {
         sds key = dictGetKey(de);