commitlog: Sync check time delta was inverted

Signed-off-by: Calle Wilund <calle@cloudius-systems.com>
This commit is contained in:
Calle Wilund
2015-05-06 14:56:37 +02:00
committed by Avi Kivity
parent d2d3547115
commit 897083e213

View File

@@ -213,7 +213,7 @@ public:
auto now = clock_type::now();
auto ms = std::chrono::duration_cast<std::chrono::milliseconds>(
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