Commit 74e0f445 authored by Pieter Noordhuis's avatar Pieter Noordhuis
Browse files

use ziplists in SORT STORE until the thresholds are determined

parent e1f93d4b
...@@ -7407,12 +7407,7 @@ static void sortCommand(redisClient *c) { ...@@ -7407,12 +7407,7 @@ static void sortCommand(redisClient *c) {
} }
} }
} else { } else {
robj *sobj; robj *sobj = createZiplistObject();
if (outputlen > server.list_max_ziplist_entries) {
sobj = createListObject();
} else {
sobj = createZiplistObject();
}
/* STORE option specified, set the sorting result as a List object */ /* STORE option specified, set the sorting result as a List object */
for (j = start; j <= end; j++) { for (j = start; j <= end; j++) {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment