Add LevelDB support for hash nodes. We really need to cut over, the reduction in

I/O and CPU use is dramatic.
This commit is contained in:
JoelKatz
2013-04-25 17:32:12 -07:00
parent 45fc2f0667
commit 35ad8d4c6f
5 changed files with 130 additions and 6 deletions

View File

@@ -2111,9 +2111,13 @@ Json::Value RPCHandler::doGetCounts(Json::Value jvRequest, int& cost, ScopedLock
dbKB = theApp->getLedgerDB()->getDB()->getKBUsedDB();
if (dbKB > 0)
ret["dbKBLedger"] = dbKB;
#ifndef USE_LEVELDB
dbKB = theApp->getHashNodeDB()->getDB()->getKBUsedDB();
if (dbKB > 0)
ret["dbKBHashNode"] = dbKB;
#endif
dbKB = theApp->getTxnDB()->getDB()->getKBUsedDB();
if (dbKB > 0)
ret["dbKBTransaction"] = dbKB;