Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
ruanhaishen
redis
Commits
903b7484
Commit
903b7484
authored
Jun 02, 2010
by
antirez
Browse files
fixed VM object swappability computation
parent
b03dce95
Changes
1
Show whitespace changes
Inline
Side-by-side
redis.c
View file @
903b7484
...
...
@@ -9246,6 +9246,7 @@ static int vmSwapOneObject(int usethreads) {
if (maxtries) i--; /* don't count this try */
continue;
}
val->vm.atime = key->vm.atime; /* atime is updated on key object */
swappability = computeObjectSwappability(val);
if (!best || swappability > best_swappability) {
best = de;
...
...
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