Skip to content

Commit 903b748

Browse files
committed
fixed VM object swappability computation
1 parent b03dce9 commit 903b748

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

redis.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9246,6 +9246,7 @@ static int vmSwapOneObject(int usethreads) {
92469246
if (maxtries) i--; /* don't count this try */
92479247
continue;
92489248
}
9249+
val->vm.atime = key->vm.atime; /* atime is updated on key object */
92499250
swappability = computeObjectSwappability(val);
92509251
if (!best || swappability > best_swappability) {
92519252
best = de;

0 commit comments

Comments
 (0)