mirror of
https://github.com/XRPLF/rippled.git
synced 2025-11-27 06:25:51 +00:00
When an object is found in the epehermal DB, put it in the cache.
This commit is contained in:
@@ -192,7 +192,10 @@ HashedObject::pointer HashedObjectStore::retrieveLevelDB(const uint256& hash)
|
||||
{
|
||||
obj = LLRetrieve(hash, theApp->getEphemeralLDB());
|
||||
if (obj)
|
||||
{
|
||||
mCache.canonicalize(hash, obj);
|
||||
return obj;
|
||||
}
|
||||
}
|
||||
|
||||
{
|
||||
@@ -365,7 +368,10 @@ HashedObject::pointer HashedObjectStore::retrieveSQLite(const uint256& hash)
|
||||
{
|
||||
obj = LLRetrieve(hash, theApp->getEphemeralLDB());
|
||||
if (obj)
|
||||
{
|
||||
mCache.canonicalize(hash, obj);
|
||||
return obj;
|
||||
}
|
||||
}
|
||||
|
||||
if (!theApp || !theApp->getHashNodeDB())
|
||||
|
||||
Reference in New Issue
Block a user