]> git.saurik.com Git - redis.git/commitdiff
use ziplists in SORT STORE until the thresholds are determined
authorPieter Noordhuis <pcnoordhuis@gmail.com>
Wed, 2 Jun 2010 22:48:52 +0000 (00:48 +0200)
committerPieter Noordhuis <pcnoordhuis@gmail.com>
Wed, 2 Jun 2010 22:48:52 +0000 (00:48 +0200)
redis.c

diff --git a/redis.c b/redis.c
index 6f48e395a9077a68cc9ae69a4f70769254a71deb..41bc9c9730eb4fb9738cde70c99bd1ec6dcd18e1 100644 (file)
--- a/redis.c
+++ b/redis.c
@@ -7407,12 +7407,7 @@ static void sortCommand(redisClient *c) {
             }
         }
     } else {
-        robj *sobj;
-        if (outputlen > server.list_max_ziplist_entries) {
-            sobj = createListObject();
-        } else {
-            sobj = createZiplistObject();
-        }
+        robj *sobj = createZiplistObject();
 
         /* STORE option specified, set the sorting result as a List object */
         for (j = start; j <= end; j++) {