fflush VM swap file after object swapping

This commit is contained in:
antirez 2010-01-07 15:53:12 -05:00
parent 87eaf97f14
commit 0841cc928d

View File

@ -6943,6 +6943,7 @@ static int vmSwapObject(robj *key, robj *val) {
(unsigned long long) page, (unsigned long long) pages);
server.vm_stats_swapped_objects++;
server.vm_stats_swapouts++;
fflush(server.vm_fp);
return REDIS_OK;
}