From 0841cc928d4a915f7e2340023663fe30b4ea31b3 Mon Sep 17 00:00:00 2001 From: antirez Date: Thu, 7 Jan 2010 15:53:12 -0500 Subject: [PATCH] fflush VM swap file after object swapping --- redis.c | 1 + 1 file changed, 1 insertion(+) diff --git a/redis.c b/redis.c index 8cf8d1746..f172f1448 100644 --- a/redis.c +++ b/redis.c @@ -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; }