mirror of
https://github.com/XRPLF/rippled.git
synced 2025-11-27 14:35:52 +00:00
Mark a major FIXME.
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user