Mark a major FIXME.

This commit is contained in:
JoelKatz
2013-01-09 21:17:41 -08:00
parent dfbd99940a
commit 34411001e6

View File

@@ -89,7 +89,7 @@ void HashedObjectStore::bulkWrite()
fAdd("INSERT INTO CommittedObjects (Hash,ObjType,LedgerIndex,Object) VALUES ('%s','%c','%u',%s);");
Database* db = theApp->getHashNodeDB()->getDB();
{
{ // FIXME: We're holding the lock too long!
ScopedLock sl( theApp->getHashNodeDB()->getDBLock());
db->executeSQL("BEGIN TRANSACTION;");
@@ -248,6 +248,10 @@ int HashedObjectStore::import(const std::string& file)
++countYes;
}
}
if (((countYes + countNo) % 100) == 99)
{
cLog(lsINFO) << "Import in progress: yes=" << countYes << ", no=" << countNo;
}
}
}