mirror of
https://github.com/XRPLF/rippled.git
synced 2025-12-06 17:27:55 +00:00
Fix static_initializer: …
* Prevents double construction, invalid access * Unit test works on MSVC and non MSVC
This commit is contained in:
@@ -33,9 +33,9 @@ void OrderBookDB::invalidate ()
|
||||
|
||||
void OrderBookDB::setup (Ledger::ref ledger)
|
||||
{
|
||||
auto seq = ledger->getLedgerSeq ();
|
||||
{
|
||||
ScopedLockType sl (mLock);
|
||||
auto seq = ledger->getLedgerSeq ();
|
||||
|
||||
// Do a full update every 256 ledgers
|
||||
if (mSeq != 0)
|
||||
|
||||
Reference in New Issue
Block a user