mirror of
https://github.com/fluencelabs/redis
synced 2025-06-19 04:01:22 +00:00
fixed VM object swappability computation
This commit is contained in:
1
redis.c
1
redis.c
@ -9246,6 +9246,7 @@ static int vmSwapOneObject(int usethreads) {
|
|||||||
if (maxtries) i--; /* don't count this try */
|
if (maxtries) i--; /* don't count this try */
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
val->vm.atime = key->vm.atime; /* atime is updated on key object */
|
||||||
swappability = computeObjectSwappability(val);
|
swappability = computeObjectSwappability(val);
|
||||||
if (!best || swappability > best_swappability) {
|
if (!best || swappability > best_swappability) {
|
||||||
best = de;
|
best = de;
|
||||||
|
Reference in New Issue
Block a user