Commit 903b7484 authored by antirez's avatar antirez
Browse files

fixed VM object swappability computation

parent b03dce95
...@@ -9246,6 +9246,7 @@ static int vmSwapOneObject(int usethreads) { ...@@ -9246,6 +9246,7 @@ static int vmSwapOneObject(int usethreads) {
if (maxtries) i--; /* don't count this try */ if (maxtries) i--; /* don't count this try */
continue; continue;
} }
val->vm.atime = key->vm.atime; /* atime is updated on key object */
swappability = computeObjectSwappability(val); swappability = computeObjectSwappability(val);
if (!best || swappability > best_swappability) { if (!best || swappability > best_swappability) {
best = de; best = de;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment