mirror of
https://github.com/fluencelabs/redis
synced 2025-06-18 19:51: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 */
|
||||
continue;
|
||||
}
|
||||
val->vm.atime = key->vm.atime; /* atime is updated on key object */
|
||||
swappability = computeObjectSwappability(val);
|
||||
if (!best || swappability > best_swappability) {
|
||||
best = de;
|
||||
|
Reference in New Issue
Block a user