mirror of
https://github.com/XRPLF/rippled.git
synced 2025-12-06 17:27:55 +00:00
Combine history_ledger_index and online_delete (RIPD-774)
This commit is contained in:
committed by
Nik Bougalis
parent
43873b1b2c
commit
5d6ea3d75f
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user