From 903b7484af1532aa93c15d5d84125756b51b518a Mon Sep 17 00:00:00 2001 From: antirez Date: Wed, 2 Jun 2010 15:21:35 +0200 Subject: [PATCH] fixed VM object swappability computation --- redis.c | 1 + 1 file changed, 1 insertion(+) diff --git a/redis.c b/redis.c index 2af31eb7..d67aa7e6 100644 --- a/redis.c +++ b/redis.c @@ -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;