Add some features to the KeyCache code so we can use it for ledger acquire failure tracking too.

This commit is contained in:
JoelKatz
2013-01-09 15:55:18 -08:00
parent d9ab92e88e
commit 7ed37066cf
4 changed files with 53 additions and 73 deletions

View File

@@ -12,7 +12,8 @@ SETUP_LOG();
DECLARE_INSTANCE(HashedObject);
HashedObjectStore::HashedObjectStore(int cacheSize, int cacheAge) :
mCache("HashedObjectStore", cacheSize, cacheAge), mWriteGeneration(0), mWritePending(false)
mCache("HashedObjectStore", cacheSize, cacheAge), mNegativeCache("HashedObjectNegativeCache", 0, 120),
mWriteGeneration(0), mWritePending(false)
{
mWriteSet.reserve(128);
}