Fix some cases where ledger flags are incorrectly set.

This commit is contained in:
JoelKatz
2013-02-01 16:11:32 -08:00
parent db7e69164b
commit 9781c10736
8 changed files with 44 additions and 14 deletions

View File

@@ -133,6 +133,12 @@ bool LedgerMaster::haveLedgerRange(uint32 from, uint32 to)
return (prevMissing == RangeSet::RangeSetAbsent) || (prevMissing < from);
}
bool LedgerMaster::haveLedger(uint32 seq)
{
boost::recursive_mutex::scoped_lock sl(mLock);
return mCompleteLedgers.hasValue(seq);
}
void LedgerMaster::asyncAccept(Ledger::pointer ledger)
{
uint32 seq = ledger->getLedgerSeq();