ETL fixes

* Don't use cache if cache is more recent than extracted ledger
* Use hardFetchLedgerRangeNoThrow exclusively in ETL, to prevent race
  condition
This commit is contained in:
CJ Cobb
2022-03-08 00:26:21 -05:00
parent ce01414fb3
commit 1510f24f4b
5 changed files with 55 additions and 46 deletions

View File

@@ -300,6 +300,8 @@ public:
// Tell the database we have finished writing all data for a particular
// ledger
// TODO change the return value to represent different results. committed,
// write conflict, errored, successful but not committed
bool
finishWrites(std::uint32_t const ledgerSequence);