Skip to content

Commit 98aa6a4

Browse files
committed
Add LedgerManager::WAIT_FOR_STATE_REBUILD
1 parent 8774735 commit 98aa6a4

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

src/catchup/LedgerApplyManager.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,8 @@ class LedgerApplyManager
5353
enum class ProcessLedgerResult
5454
{
5555
PROCESSED_ALL_LEDGERS_SEQUENTIALLY,
56-
WAIT_TO_APPLY_BUFFERED_OR_CATCHUP
56+
WAIT_TO_APPLY_BUFFERED_OR_CATCHUP,
57+
WAIT_FOR_STATE_REBUILD
5758
};
5859
static std::unique_ptr<LedgerApplyManager> create(Application& app);
5960

src/catchup/LedgerApplyManagerImpl.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,7 @@ LedgerApplyManagerImpl::processLedger(LedgerCloseData const& ledgerData,
155155
"LedgerManager still booting: close of ledger {} buffered. "
156156
"mSyncingLedgers has {} ledgers",
157157
ledgerData.getLedgerSeq(), mSyncingLedgers.size());
158-
return ProcessLedgerResult::WAIT_TO_APPLY_BUFFERED_OR_CATCHUP;
158+
return ProcessLedgerResult::WAIT_FOR_STATE_REBUILD;
159159
}
160160

161161
// 1. CatchupWork is not running yet

0 commit comments

Comments
 (0)