Fix a case where we might try too quickly to re-acquire a ledger.

This commit is contained in:
JoelKatz
2013-01-09 15:55:41 -08:00
parent 7ed37066cf
commit cf284897bb

View File

@@ -443,6 +443,12 @@ void LedgerMaster::tryPublish()
mPubLedgers.push_back(ledger);
}
else
{
if (theApp->getMasterLedgerAcquire().isFailure(hash))
{
cLog(lsFATAL) << "Unable to acquire a recent validated ledger";
}
else
{
LedgerAcquire::pointer acq = theApp->getMasterLedgerAcquire().findCreate(hash);
if (!acq->isDone())
@@ -460,6 +466,7 @@ void LedgerMaster::tryPublish()
}
}
}
}
if (!mPubLedgers.empty() && !mPubThread)
{