Update lastLedger in the healthWait loop in the right order

This commit is contained in:
Ed Hennis
2026-07-27 22:47:33 -04:00
parent afedf445f0
commit da2f36c8a6

View File

@@ -741,8 +741,8 @@ SHAMapStoreImp::healthWait()
<< index << ". Complete ledgers: " << ledgerMaster_->getCompleteLedgers();
std::this_thread::sleep_for(waitTime);
readServerStatus(index, age, mode, numMissing, lowerBound, unlock);
lastLedger = index;
readServerStatus(index, age, mode, numMissing, lowerBound, unlock);
}
return stop_ ? HealthResult::Stopping : HealthResult::KeepGoing;