Initialize canDelete_ properly in the constructor.

This commit is contained in:
Mark Travis
2015-01-27 11:12:28 -08:00
committed by Nik Bougalis
parent 9430f3665b
commit 43873b1b2c

View File

@@ -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();