From 6bacc64f3cebd3b747cd2a9946b3d8d58a766836 Mon Sep 17 00:00:00 2001 From: levlam Date: Sun, 31 Mar 2019 22:31:43 +0300 Subject: [PATCH] Decrease delay before binlog is flushed to hard drive. GitOrigin-RevId: 544c7722af6f89f61374c9a92566f117721758f7 --- tddb/td/db/binlog/ConcurrentBinlog.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tddb/td/db/binlog/ConcurrentBinlog.cpp b/tddb/td/db/binlog/ConcurrentBinlog.cpp index 0eb96463..56c74f49 100644 --- a/tddb/td/db/binlog/ConcurrentBinlog.cpp +++ b/tddb/td/db/binlog/ConcurrentBinlog.cpp @@ -79,7 +79,7 @@ class BinlogActor : public Actor { bool flush_flag_ = false; double wakeup_at_ = 0; - static constexpr int32 FLUSH_TIMEOUT = 1; // 1s + static constexpr double FLUSH_TIMEOUT = 0.001; // 1ms void wakeup_after(double after) { auto now = Time::now_cached();