From 43873b1b2cda8f80ef3af4eae07f66387c0317d1 Mon Sep 17 00:00:00 2001 From: Mark Travis Date: Tue, 27 Jan 2015 11:12:28 -0800 Subject: [PATCH] Initialize canDelete_ properly in the constructor. --- src/ripple/app/misc/SHAMapStoreImp.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/ripple/app/misc/SHAMapStoreImp.cpp b/src/ripple/app/misc/SHAMapStoreImp.cpp index 5825ee1b8..9c2d6f7f0 100644 --- a/src/ripple/app/misc/SHAMapStoreImp.cpp +++ b/src/ripple/app/misc/SHAMapStoreImp.cpp @@ -205,7 +205,7 @@ SHAMapStoreImp::SHAMapStoreImp (Setup const& setup, , journal_ (journal) , nodeStoreJournal_ (nodeStoreJournal) , transactionMaster_ (transactionMaster) - , canDelete_ (0) + , canDelete_ (std::numeric_limits ::max()) { if (setup_.deleteInterval) { @@ -326,7 +326,6 @@ SHAMapStoreImp::run() lastRotated = validatedSeq; state_db_.setLastRotated (lastRotated); } - canDelete_ = std::numeric_limits ::max(); if (setup_.advisoryDelete) canDelete_ = state_db_.getCanDelete();