mirror of
https://github.com/scylladb/scylladb.git
synced 2026-04-24 18:40:38 +00:00
commitlog: Sync check time delta was inverted
Signed-off-by: Calle Wilund <calle@cloudius-systems.com>
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user