mirror of
https://github.com/Xahau/xahaud.git
synced 2025-12-06 17:27:52 +00:00
Get the shared pointers out of the scoped lock stuff. We don't need it.
This commit is contained in:
@@ -888,7 +888,7 @@ std::vector< std::pair<uint32, uint256> >
|
||||
|
||||
{
|
||||
Database* db = theApp->getTxnDB()->getDB();
|
||||
ScopedLock dbLock = theApp->getTxnDB()->getDBLock();
|
||||
ScopedLock sl(theApp->getTxnDB()->getDBLock());
|
||||
|
||||
SQL_FOREACH(db, sql)
|
||||
{
|
||||
@@ -909,7 +909,7 @@ std::vector<RippleAddress>
|
||||
RippleAddress acct;
|
||||
{
|
||||
Database* db = theApp->getTxnDB()->getDB();
|
||||
ScopedLock dblock = theApp->getTxnDB()->getDBLock();
|
||||
ScopedLock sl(theApp->getTxnDB()->getDBLock());
|
||||
SQL_FOREACH(db, sql)
|
||||
{
|
||||
if (acct.setAccountID(db->getStrBinary("Account")))
|
||||
|
||||
Reference in New Issue
Block a user