Decrease delay before binlog is flushed to hard drive.

GitOrigin-RevId: 544c7722af6f89f61374c9a92566f117721758f7
This commit is contained in:
levlam 2019-03-31 22:31:43 +03:00
parent 295878b217
commit 6bacc64f3c

View File

@ -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();