20 #include <ripple/app/ledger/Ledger.h>
21 #include <ripple/nodestore/impl/DatabaseNodeImp.h>
22 #include <ripple/protocol/HashPrefix.h>
69 fetchSz_ += nodeObject->getData().size();
74 JLOG(
j_.
fatal()) <<
"Corrupt NodeObject #" << hash;
77 JLOG(
j_.
warn()) <<
"Unknown status=" << status;
std::shared_ptr< Backend > backend_
NodeObjectType
The types of node objects.
static std::shared_ptr< NodeObject > createObject(NodeObjectType type, Blob &&data, uint256 const &hash)
Create an object from fields.
std::shared_ptr< NodeObject > fetchNodeObject(uint256 const &hash, std::uint32_t, FetchReport &fetchReport) override
std::atomic< std::uint32_t > fetchSz_
Contains information about a fetch operation.
std::atomic< std::uint32_t > fetchHitCount_
void Rethrow()
Rethrow the exception currently being handled.
void storeStats(std::uint64_t count, std::uint64_t sz)
void store(NodeObjectType type, Blob &&data, uint256 const &hash, std::uint32_t) override
Store the object.
Status
Return codes from Backend operations.
Use hash_* containers for keys that do not need a cryptographically secure hashing algorithm.
void sweep() override
Remove expired entries from the positive and negative caches.