use ziplists in SORT STORE until the thresholds are determined

This commit is contained in:
Pieter Noordhuis 2010-06-03 00:48:52 +02:00
parent e1f93d4b2c
commit 74e0f445a8

View File

@ -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++) {