mirror of
https://github.com/redis/redis.git
synced 2026-06-03 22:01:02 -04:00
use ziplists in SORT STORE until the thresholds are determined
This commit is contained in:
parent
e1f93d4b2c
commit
74e0f445a8
1 changed files with 1 additions and 6 deletions
7
redis.c
7
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++) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue