From 897083e21394863b92ce773f63de52b97ec3c2f4 Mon Sep 17 00:00:00 2001 From: Calle Wilund Date: Wed, 6 May 2015 14:56:37 +0200 Subject: [PATCH] commitlog: Sync check time delta was inverted Signed-off-by: Calle Wilund --- db/commitlog/commitlog.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/db/commitlog/commitlog.cc b/db/commitlog/commitlog.cc index a41cdd7328..9de93e3e6a 100644 --- a/db/commitlog/commitlog.cc +++ b/db/commitlog/commitlog.cc @@ -213,7 +213,7 @@ public: auto now = clock_type::now(); auto ms = std::chrono::duration_cast( now - _sync_time).count(); - return _segment_manager->cfg.commitlog_sync_period_in_ms > uint64_t(ms); + return _segment_manager->cfg.commitlog_sync_period_in_ms < uint64_t(ms); } /** * Finalize this segment and get a new one