Don't tolerate failed ledger acquires in the publication stream.

This commit is contained in:
JoelKatz
2013-08-16 23:22:33 -07:00
parent 39caac637c
commit fe1b8d253c

View File

@@ -745,8 +745,13 @@ std::list<Ledger::pointer> LedgerMaster::findNewLedgersToPublish(boost::recursiv
WriteLog (lsWARNING, LedgerMaster) << "Failed to acquire a published ledger";
getApp().getInboundLedgers().dropLedger(hash);
acq = getApp().getInboundLedgers().findCreate(hash, seq);
if (acq->isComplete() && !acq->isFailed())
ledger = acq->getLedger();
if (acq->isComplete())
{
if (acq->isFailed())
getApp().getInboundLedgers().dropLedger(hash);
else
ledger = acq->getLedger();
}
}
}