mirror of
https://github.com/XRPLF/rippled.git
synced 2026-08-21 14:20:56 +00:00
Resolves the nodestore latency-accumulator conflict by keeping this branch's API surface and applying the incoming nanosecond fix to it. This branch had renamed storeDurationStats() to recordStoreDuration() and given it noexcept, an explicit relaxed fetch_add, and call-frequency and thread-safety notes. The incoming change fixed the accumulators to hold nanoseconds so sub-microsecond backend calls stop rounding to zero. Both are kept: the name, signature and documentation from here, the nanosecond accumulation from there. The incoming duplicate getFetchDurationUs()/getStoreDurationUs() pair is dropped in favour of this branch's noexcept versions, which now read the nanosecond members and convert on read. recordStoreDuration()'s `if (us > 0)` guard is gone: it discarded every sub-microsecond store, which is the same rounding the incoming change removes one level up. Also updates a MetricMacros comment that explained the zero write mean in terms of that removed guard; the injected totals it asserts on are unchanged.