mirror of
https://github.com/fluencelabs/redis
synced 2025-03-19 17:10:50 +00:00
use ziplists in SORT STORE until the thresholds are determined
This commit is contained in:
parent
e1f93d4b2c
commit
74e0f445a8
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…
x
Reference in New Issue
Block a user