Small cleanups.

This commit is contained in:
JoelKatz
2013-01-30 20:56:11 -08:00
parent 2ff3583b7d
commit b662167683
2 changed files with 3 additions and 12 deletions

View File

@@ -166,15 +166,9 @@ void HashedObjectStore::bulkWrite()
HashedObject::pointer HashedObjectStore::retrieve(const uint256& hash)
{
HashedObject::pointer obj;
{
obj = mCache.fetch(hash);
if (obj)
{
// cLog(lsTRACE) << "HOS: " << hash << " fetch: incache";
return obj;
}
}
HashedObject::pointer obj = mCache.fetch(hash);
if (obj)
return obj;
if (mNegativeCache.isPresent(hash))
return obj;