modules/core/src/testFixtures/java/org/apache/ignite/internal/TestHybridClock.java [100:115]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    public HybridTimestamp update(HybridTimestamp requestTime) {
        while (true) {
            long now = currentTime();

            // Read the latest time after accessing UTC time to reduce contention.
            long oldLatestTime = this.latestTime;

            long newLatestTime = max(requestTime.longValue() + 1, max(now, oldLatestTime + 1));

            if (LATEST_TIME.compareAndSet(this, oldLatestTime, newLatestTime)) {
                notifyUpdateListeners(newLatestTime);

                return hybridTimestamp(newLatestTime);
            }
        }
    }
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



modules/core/src/main/java/org/apache/ignite/internal/hlc/HybridClockImpl.java [111:126]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    public HybridTimestamp update(HybridTimestamp requestTime) {
        while (true) {
            long now = currentTime();

            // Read the latest time after accessing UTC time to reduce contention.
            long oldLatestTime = this.latestTime;

            long newLatestTime = max(requestTime.longValue() + 1, max(now, oldLatestTime + 1));

            if (LATEST_TIME.compareAndSet(this, oldLatestTime, newLatestTime)) {
                notifyUpdateListeners(newLatestTime);

                return hybridTimestamp(newLatestTime);
            }
        }
    }
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



