Commit 0841cc92 authored by antirez's avatar antirez
Browse files

fflush VM swap file after object swapping

parent 87eaf97f
...@@ -6943,6 +6943,7 @@ static int vmSwapObject(robj *key, robj *val) { ...@@ -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;
} }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment