fixed VM object swappability computation

This commit is contained in:
antirez
2010-06-02 15:21:35 +02:00
parent b03dce9537
commit 903b7484af

View File

@ -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;