From: Igor Canadi Date: Wed, 6 Nov 2013 22:19:46 +0000 (-0800) Subject: Log flush every 0 seconds X-Git-Tag: 2.6.fb~5 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=95a8213f75a6d15966ccb1a3bb6586a2a5845ce2;p=rocksdb.git Log flush every 0 seconds Summary: We have to be able to catch last few log outputs before a crash Test Plan: no Reviewers: dhruba Reviewed By: dhruba CC: leveldb Differential Revision: https://reviews.facebook.net/D13917 --- diff --git a/util/posix_logger.h b/util/posix_logger.h index b7ad5ac14..482ec3786 100644 --- a/util/posix_logger.h +++ b/util/posix_logger.h @@ -33,7 +33,7 @@ class PosixLogger : public Logger { uint64_t (*gettid_)(); // Return the thread id for the current thread std::atomic_size_t log_size_; int fd_; - const static uint64_t flush_every_seconds_ = 5; + const static uint64_t flush_every_seconds_ = 0; uint64_t last_flush_micros_; Env* env_; public: