This commit is contained in:
Denis Angell
2026-05-11 00:22:13 +02:00
parent 84ce5482e6
commit 6a079eddee
5 changed files with 1 additions and 52 deletions

View File

@@ -3,14 +3,12 @@
#include <xrpl/basics/BasicConfig.h>
#include <xrpl/basics/Log.h>
#include <xrpl/basics/TaggedCache.ipp>
#include <xrpl/beast/hash/uhash.h>
#include <xrpl/nodestore/Backend.h>
#include <xrpl/nodestore/NodeObject.h>
#include <xrpl/nodestore/Scheduler.h>
#include <xrpl/protocol/SystemParameters.h>
#include <condition_variable>
#include <unordered_set>
namespace xrpl::NodeStore {
@@ -224,12 +222,6 @@ protected:
void
importInternal(Backend& dstBackend, Database& srcDB);
void
negCacheErase(uint256 const& hash);
void
negCacheClear();
void
updateFetchMetrics(uint64_t fetches, uint64_t hits, uint64_t duration)
{
@@ -259,10 +251,6 @@ private:
std::atomic<int> readThreads_ = 0;
std::atomic<int> runningThreads_ = 0;
mutable std::mutex negCacheMutex_;
std::unordered_set<uint256, beast::Uhash<>> negCache_;
static constexpr std::size_t kNegCacheMax = 100'000;
virtual std::shared_ptr<NodeObject>
fetchNodeObject(
uint256 const& hash,

View File

@@ -2,7 +2,6 @@
#include <xrpl/nodestore/DatabaseRotating.h>
#include <atomic>
#include <mutex>
namespace xrpl::NodeStore {
@@ -60,7 +59,6 @@ private:
std::shared_ptr<Backend> writableBackend_;
std::shared_ptr<Backend> archiveBackend_;
mutable std::mutex mutex_;
std::atomic<bool> archiveHasData_{true};
std::shared_ptr<NodeObject>
fetchNodeObject(uint256 const& hash, std::uint32_t, FetchReport& fetchReport, bool duplicate)