diff --git a/src/libxrpl/nodestore/DatabaseRotatingImp.cpp b/src/libxrpl/nodestore/DatabaseRotatingImp.cpp index 718ff40454..715fce5b3b 100644 --- a/src/libxrpl/nodestore/DatabaseRotatingImp.cpp +++ b/src/libxrpl/nodestore/DatabaseRotatingImp.cpp @@ -208,7 +208,7 @@ DatabaseRotatingImp::fetchNodeObject( { JLOG(j_.warn()) << "Rotating: copy node for ledger " << ledgerSeq << " from archive to writable backend: " << hash; - ++copyForwardCount_; + copyForwardCount_.fetch_add(1, std::memory_order_relaxed); } writable->store(nodeObject); }