Combine history_ledger_index and online_delete (RIPD-774)

This commit is contained in:
Miguel Portilla
2015-01-27 16:29:29 -05:00
committed by Nik Bougalis
parent 43873b1b2c
commit 5d6ea3d75f
8 changed files with 10 additions and 35 deletions

View File

@@ -302,6 +302,9 @@ SHAMapStoreImp::run()
transactionDb_ = &getApp().getTxnDB();
ledgerDb_ = &getApp().getLedgerDB();
if (setup_.advisoryDelete)
canDelete_ = state_db_.getCanDelete ();
while (1)
{
healthy_ = true;
@@ -326,8 +329,6 @@ SHAMapStoreImp::run()
lastRotated = validatedSeq;
state_db_.setLastRotated (lastRotated);
}
if (setup_.advisoryDelete)
canDelete_ = state_db_.getCanDelete();
// will delete up to (not including) lastRotated)
if (validatedSeq >= lastRotated + setup_.deleteInterval