]> git-server-git.apps.pok.os.sepia.ceph.com Git - rocksdb.git/commitdiff
Log flush every 0 seconds
authorIgor Canadi <icanadi@fb.com>
Wed, 6 Nov 2013 22:19:46 +0000 (14:19 -0800)
committerIgor Canadi <icanadi@fb.com>
Wed, 6 Nov 2013 22:19:46 +0000 (14:19 -0800)
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

util/posix_logger.h

index b7ad5ac1428168cb6304732ee76b951ea69ad1f0..482ec3786bccbe7b3ae6f99127a8faae6e1036cb 100644 (file)
@@ -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: