From 5c44a8db61d529dab0323aaba63097a582017cc7 Mon Sep 17 00:00:00 2001 From: Igor Canadi Date: Tue, 25 Mar 2014 12:53:23 -0700 Subject: [PATCH] fallocate_with_keep_size is false for LogWrites --- util/env_posix.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/util/env_posix.cc b/util/env_posix.cc index 856d49250..237038fcb 100644 --- a/util/env_posix.cc +++ b/util/env_posix.cc @@ -1363,7 +1363,7 @@ class PosixEnv : public Env { EnvOptions OptimizeForLogWrite(const EnvOptions& env_options) const { EnvOptions optimized = env_options; optimized.use_mmap_writes = false; - optimized.fallocate_with_keep_size = true; + optimized.fallocate_with_keep_size = false; return optimized; }