Make the hashed object write code not block on an SQL write. Make bulk updates efficient.

This commit is contained in:
JoelKatz
2012-06-24 04:53:31 -07:00
parent 4a15c2a105
commit 748461ddc2
4 changed files with 80 additions and 62 deletions

View File

@@ -51,6 +51,7 @@ extern int TxnDBCount, LedgerDBCount, WalletDBCount, HashNodeDBCount, NetNodeDBC
void Application::stop()
{
mIOService.stop();
mHashedObjectStore.bulkWrite();
Log(lsINFO) << "Stopped: " << mIOService.stopped();
}