mirror of
https://github.com/XRPLF/clio.git
synced 2025-11-22 04:35:50 +00:00
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:
@@ -1,5 +1,11 @@
|
||||
#include <backend/SimpleCache.h>
|
||||
namespace Backend {
|
||||
uint32_t
|
||||
SimpleCache::latestLedgerSequence()
|
||||
{
|
||||
std::shared_lock lck{mtx_};
|
||||
return latestSeq_;
|
||||
}
|
||||
|
||||
void
|
||||
SimpleCache::update(
|
||||
|
||||
Reference in New Issue
Block a user