mirror of
https://github.com/fluencelabs/redis
synced 2025-03-20 01:20: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 {
|
} 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++) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user