Permalink
Browse files

fixed VM object swappability computation

  • Loading branch information...
1 parent b03dce9 commit 903b7484af1532aa93c15d5d84125756b51b518a @antirez committed Jun 2, 2010
Showing with 1 addition and 0 deletions.
  1. +1 −0 redis.c
View
@@ -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;

0 comments on commit 903b748

Please sign in to comment.