mirror of
https://github.com/XRPLF/rippled.git
synced 2025-12-06 17:27:55 +00:00
Initialize canDelete_ properly in the constructor.
This commit is contained in:
committed by
Nik Bougalis
parent
9430f3665b
commit
43873b1b2c
@@ -205,7 +205,7 @@ SHAMapStoreImp::SHAMapStoreImp (Setup const& setup,
|
||||
, journal_ (journal)
|
||||
, nodeStoreJournal_ (nodeStoreJournal)
|
||||
, transactionMaster_ (transactionMaster)
|
||||
, canDelete_ (0)
|
||||
, canDelete_ (std::numeric_limits <LedgerIndex>::max())
|
||||
{
|
||||
if (setup_.deleteInterval)
|
||||
{
|
||||
@@ -326,7 +326,6 @@ SHAMapStoreImp::run()
|
||||
lastRotated = validatedSeq;
|
||||
state_db_.setLastRotated (lastRotated);
|
||||
}
|
||||
canDelete_ = std::numeric_limits <LedgerIndex>::max();
|
||||
if (setup_.advisoryDelete)
|
||||
canDelete_ = state_db_.getCanDelete();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user