mirror of
https://github.com/XRPLF/rippled.git
synced 2025-12-06 17:27:55 +00:00
Remove pending save logic. Replace with job count logic.
Prioritize newer ledgers over clients.
This commit is contained in:
@@ -89,9 +89,6 @@ private:
|
||||
|
||||
mutable boost::recursive_mutex mLock;
|
||||
|
||||
static int sPendingSaves;
|
||||
static boost::recursive_mutex sPendingSaveLock;
|
||||
|
||||
Ledger(const Ledger&); // no implementation
|
||||
Ledger& operator=(const Ledger&); // no implementation
|
||||
|
||||
@@ -101,8 +98,6 @@ protected:
|
||||
// returned SLE is immutable
|
||||
SLE::pointer getASNodeI(const uint256& nodeID, LedgerEntryType let);
|
||||
|
||||
static void incPendingSaves();
|
||||
static void decPendingSaves();
|
||||
void saveAcceptedLedger(Job&, bool fromConsensus);
|
||||
|
||||
void updateFees();
|
||||
@@ -126,7 +121,6 @@ public:
|
||||
static Ledger::pointer getSQL1(SqliteStatement*);
|
||||
static void getSQL2(Ledger::ref);
|
||||
static Ledger::pointer getLastFullLedger();
|
||||
static int getPendingSaves();
|
||||
static uint32 roundCloseTime(uint32 closeTime, uint32 closeResolution);
|
||||
|
||||
void updateHash();
|
||||
|
||||
Reference in New Issue
Block a user