mirror of
https://github.com/fluencelabs/redis
synced 2025-03-21 01:50:50 +00:00
fflush VM swap file after object swapping
This commit is contained in:
parent
87eaf97f14
commit
0841cc928d
1
redis.c
1
redis.c
@ -6943,6 +6943,7 @@ static int vmSwapObject(robj *key, robj *val) {
|
|||||||
(unsigned long long) page, (unsigned long long) pages);
|
(unsigned long long) page, (unsigned long long) pages);
|
||||||
server.vm_stats_swapped_objects++;
|
server.vm_stats_swapped_objects++;
|
||||||
server.vm_stats_swapouts++;
|
server.vm_stats_swapouts++;
|
||||||
|
fflush(server.vm_fp);
|
||||||
return REDIS_OK;
|
return REDIS_OK;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user