|
rippled
|


Classes | |
| class | SavedStateDB |
Public Member Functions | |
| SHAMapStoreImp (Application &app, NodeStore::Scheduler &scheduler, beast::Journal journal) | |
| std::uint32_t | clampFetchDepth (std::uint32_t fetch_depth) const override |
| std::unique_ptr< NodeStore::Database > | makeNodeStore (std::int32_t readThreads) override |
| LedgerIndex | setCanDelete (LedgerIndex seq) override |
| Highest ledger that may be deleted. More... | |
| bool | advisoryDelete () const override |
| Whether advisory delete is enabled. More... | |
| LedgerIndex | getLastRotated () override |
| Maximum ledger that has been deleted, or will be deleted if currently in the act of online deletion. More... | |
| LedgerIndex | getCanDelete () override |
| Highest ledger that may be deleted. More... | |
| void | onLedgerClosed (std::shared_ptr< Ledger const > const &ledger) override |
| Called by LedgerMaster every time a ledger validates. More... | |
| void | rendezvous () const override |
| int | fdRequired () const override |
| Returns the number of file descriptors that are needed. More... | |
| std::optional< LedgerIndex > | minimumOnline () const override |
| The minimum ledger to try and maintain in our database. More... | |
| void | start () override |
| void | stop () override |
Private Types | |
| enum | Health : std::uint8_t { ok = 0, stopping, unhealthy } |
Private Member Functions | |
| bool | copyNode (std::uint64_t &nodeCount, SHAMapTreeNode const &node) |
| void | run () |
| void | dbPaths () |
| std::unique_ptr< NodeStore::Backend > | makeBackendRotating (std::string path=std::string()) |
| template<class CacheInstance > | |
| bool | freshenCache (CacheInstance &cache) |
| void | clearSql (LedgerIndex lastRotated, const std::string TableName, std::function< std::optional< LedgerIndex >()> const &getMinSeq, std::function< void(LedgerIndex)> const &deleteBeforeSeq) |
| delete from sqlite table in batches to not lock the db excessively. More... | |
| void | clearCaches (LedgerIndex validatedSeq) |
| void | freshenCaches () |
| void | clearPrior (LedgerIndex lastRotated) |
| Health | health () |
Static Private Attributes | |
| static const std::uint32_t | minimumDeletionInterval_ = 256 |
| static const std::uint32_t | minimumDeletionIntervalSA_ = 8 |
| static constexpr auto | nodeStoreName_ = "NodeStore" |
Definition at line 38 of file SHAMapStoreImp.h.
|
private |
| Enumerator | |
|---|---|
| ok | |
| stopping | |
| unhealthy | |
Definition at line 41 of file SHAMapStoreImp.h.
| ripple::SHAMapStoreImp::SHAMapStoreImp | ( | Application & | app, |
| NodeStore::Scheduler & | scheduler, | ||
| beast::Journal | journal | ||
| ) |
Definition at line 82 of file SHAMapStoreImp.cpp.
|
overridevirtual |
Implements ripple::SHAMapStore.
Definition at line 130 of file SHAMapStoreImp.h.
|
overridevirtual |
Implements ripple::SHAMapStore.
Definition at line 167 of file SHAMapStoreImp.cpp.
|
overridevirtual |
Highest ledger that may be deleted.
Implements ripple::SHAMapStore.
Definition at line 140 of file SHAMapStoreImp.h.
|
overridevirtual |
Whether advisory delete is enabled.
Implements ripple::SHAMapStore.
Definition at line 148 of file SHAMapStoreImp.h.
|
overridevirtual |
Maximum ledger that has been deleted, or will be deleted if currently in the act of online deletion.
Implements ripple::SHAMapStore.
Definition at line 156 of file SHAMapStoreImp.h.
|
overridevirtual |
Highest ledger that may be deleted.
Implements ripple::SHAMapStore.
Definition at line 164 of file SHAMapStoreImp.h.
|
overridevirtual |
Called by LedgerMaster every time a ledger validates.
Implements ripple::SHAMapStore.
Definition at line 215 of file SHAMapStoreImp.cpp.
|
overridevirtual |
Implements ripple::SHAMapStore.
Definition at line 226 of file SHAMapStoreImp.cpp.
|
overridevirtual |
Returns the number of file descriptors that are needed.
Implements ripple::SHAMapStore.
Definition at line 236 of file SHAMapStoreImp.cpp.
|
overridevirtual |
The minimum ledger to try and maintain in our database.
This defines the lower bound for attempting to acquire historical ledgers over the peer to peer network.
If online_delete is enabled, then each time online_delete executes and just prior to clearing SQL databases of historical ledgers, move the value forward to one past the greatest ledger being deleted. This minimizes fetching of ledgers that are in the process of being deleted. Without online_delete or before online_delete is executed, this value is always the minimum value persisted in the ledger database, if any.
Implements ripple::SHAMapStore.
Definition at line 726 of file SHAMapStoreImp.cpp.
|
private |
Definition at line 242 of file SHAMapStoreImp.cpp.
|
private |
Definition at line 256 of file SHAMapStoreImp.cpp.
|
private |
Definition at line 419 of file SHAMapStoreImp.cpp.
|
private |
Definition at line 507 of file SHAMapStoreImp.cpp.
|
private |
Definition at line 194 of file SHAMapStoreImp.h.
|
private |
delete from sqlite table in batches to not lock the db excessively.
Pause briefly to extend access time to other users. Call with mutex object unlocked.
Definition at line 536 of file SHAMapStoreImp.cpp.
|
private |
Definition at line 587 of file SHAMapStoreImp.cpp.
|
private |
Definition at line 594 of file SHAMapStoreImp.cpp.
|
private |
Definition at line 603 of file SHAMapStoreImp.cpp.
|
private |
Definition at line 668 of file SHAMapStoreImp.cpp.
|
overridevirtual |
Implements ripple::SHAMapStore.
Definition at line 238 of file SHAMapStoreImp.h.
|
overridevirtual |
Implements ripple::SHAMapStore.
Definition at line 712 of file SHAMapStoreImp.cpp.
|
private |
Definition at line 72 of file SHAMapStoreImp.h.
|
private |
Definition at line 75 of file SHAMapStoreImp.h.
|
private |
Definition at line 77 of file SHAMapStoreImp.h.
|
private |
Definition at line 79 of file SHAMapStoreImp.h.
|
staticprivate |
Definition at line 81 of file SHAMapStoreImp.h.
|
staticprivate |
Definition at line 83 of file SHAMapStoreImp.h.
|
private |
Definition at line 85 of file SHAMapStoreImp.h.
|
private |
Definition at line 87 of file SHAMapStoreImp.h.
|
private |
Definition at line 88 of file SHAMapStoreImp.h.
|
private |
Definition at line 89 of file SHAMapStoreImp.h.
|
private |
Definition at line 90 of file SHAMapStoreImp.h.
|
private |
Definition at line 91 of file SHAMapStoreImp.h.
|
private |
Definition at line 92 of file SHAMapStoreImp.h.
|
private |
Definition at line 93 of file SHAMapStoreImp.h.
|
mutableprivate |
Definition at line 94 of file SHAMapStoreImp.h.
|
mutableprivate |
Definition at line 95 of file SHAMapStoreImp.h.
|
mutableprivate |
Definition at line 96 of file SHAMapStoreImp.h.
|
private |
Definition at line 97 of file SHAMapStoreImp.h.
|
private |
Definition at line 98 of file SHAMapStoreImp.h.
|
private |
Definition at line 99 of file SHAMapStoreImp.h.
|
private |
Definition at line 100 of file SHAMapStoreImp.h.
|
private |
Definition at line 102 of file SHAMapStoreImp.h.
|
private |
Definition at line 103 of file SHAMapStoreImp.h.
|
private |
Definition at line 104 of file SHAMapStoreImp.h.
|
private |
Definition at line 105 of file SHAMapStoreImp.h.
|
private |
Definition at line 106 of file SHAMapStoreImp.h.
|
private |
If set, and the node is out of sync during an online_delete health check, sleep the thread for this time and check again so the node can recover.
See also: "recovery_wait_seconds" in rippled-example.cfg
Definition at line 112 of file SHAMapStoreImp.h.
|
private |
Definition at line 116 of file SHAMapStoreImp.h.
|
private |
Definition at line 117 of file SHAMapStoreImp.h.
|
private |
Definition at line 118 of file SHAMapStoreImp.h.
|
private |
Definition at line 119 of file SHAMapStoreImp.h.
|
staticconstexprprivate |
Definition at line 121 of file SHAMapStoreImp.h.
1.8.17