Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ruanhaishen
redis
Commits
74e0f445
Commit
74e0f445
authored
Jun 03, 2010
by
Pieter Noordhuis
Browse files
use ziplists in SORT STORE until the thresholds are determined
parent
e1f93d4b
Changes
1
Hide whitespace changes
Inline
Side-by-side
redis.c
View file @
74e0f445
...
@@ -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++) {
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment