mirror of
https://github.com/XRPLF/rippled.git
synced 2025-12-02 08:55:53 +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);");
|
fAdd("INSERT INTO CommittedObjects (Hash,ObjType,LedgerIndex,Object) VALUES ('%s','%c','%u',%s);");
|
||||||
|
|
||||||
Database* db = theApp->getHashNodeDB()->getDB();
|
Database* db = theApp->getHashNodeDB()->getDB();
|
||||||
{
|
{ // FIXME: We're holding the lock too long!
|
||||||
ScopedLock sl( theApp->getHashNodeDB()->getDBLock());
|
ScopedLock sl( theApp->getHashNodeDB()->getDBLock());
|
||||||
|
|
||||||
db->executeSQL("BEGIN TRANSACTION;");
|
db->executeSQL("BEGIN TRANSACTION;");
|
||||||
@@ -248,6 +248,10 @@ int HashedObjectStore::import(const std::string& file)
|
|||||||
++countYes;
|
++countYes;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
if (((countYes + countNo) % 100) == 99)
|
||||||
|
{
|
||||||
|
cLog(lsINFO) << "Import in progress: yes=" << countYes << ", no=" << countNo;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user