Change the resolution of AbstractCommitLogService#lastSyncedAt to nanos to be aligned with later comparisons

patch by Dmitry Konstantinov; reviewed by Branimir Lambov, Stefan Miklosovic for CASSANDRA-20074
This commit is contained in:
Dmitry Konstantinov 2024-11-12 14:11:27 +00:00 committed by Stefan Miklosovic
parent b88fe80910
commit d0c984fa32
No known key found for this signature in database
GPG Key ID: 32F35CB2F546D93E
2 changed files with 2 additions and 1 deletions

View File

@ -1,4 +1,5 @@
4.0.15
* Change the resolution of AbstractCommitLogService#lastSyncedAt to nanos to be aligned with later comparisons (CASSANDRA-20074)
* Backport of CASSANDRA-17812: Rate-limit new client connection auth setup to avoid overwhelming bcrypt (CASSANDRA-20057)
* Support UDTs and vectors as clustering keys in descending order (CASSANDRA-20050)
* Fix CQL in snapshot's schema which did not contained UDTs used as reverse clustering columns (CASSANDRA-20036)

View File

@ -45,7 +45,7 @@ public abstract class AbstractCommitLogService
private volatile boolean shutdown = false;
// all Allocations written before this time will be synced
protected volatile long lastSyncedAt = System.currentTimeMillis();
protected volatile long lastSyncedAt = MonotonicClock.preciseTime.now();
// counts of total written, and pending, log messages
private final AtomicLong written = new AtomicLong(0);