diff --git a/redis.c b/redis.c index 2af31eb7b..d67aa7e60 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;