]> git.saurik.com Git - redis.git/commitdiff
fflush VM swap file after object swapping
authorantirez <antirez@gmail.com>
Thu, 7 Jan 2010 20:53:12 +0000 (15:53 -0500)
committerantirez <antirez@gmail.com>
Thu, 7 Jan 2010 20:53:12 +0000 (15:53 -0500)
redis.c

diff --git a/redis.c b/redis.c
index 8cf8d1746c14b0f2474ac2025f658cd398f2c654..f172f144864176c40ba84e640628ac85ec1194ab 100644 (file)
--- 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;
 }