|
879 | 879 | LedgerMaster::failedSave(std::uint32_t seq, uint256 const& hash)
|
880 | 880 | {
|
881 | 881 | clearLedger(seq);
|
882 |
| - app_.getInboundLedgers().acquire(hash, seq, InboundLedger::Reason::GENERIC); |
| 882 | + app_.getInboundLedgers().acquire( |
| 883 | + hash, seq, InboundLedger::Reason::GENERIC, "failedSave"); |
883 | 884 | }
|
884 | 885 |
|
885 | 886 | // Check if the specified ledger can become the new last fully-validated
|
@@ -927,7 +928,7 @@ LedgerMaster::checkAccept(uint256 const& hash, std::uint32_t seq)
|
927 | 928 | // FIXME: We may not want to fetch a ledger with just one
|
928 | 929 | // trusted validation
|
929 | 930 | ledger = app_.getInboundLedgers().acquire(
|
930 |
| - hash, seq, InboundLedger::Reason::GENERIC); |
| 931 | + hash, seq, InboundLedger::Reason::GENERIC, "checkAccept"); |
931 | 932 | }
|
932 | 933 |
|
933 | 934 | if (ledger)
|
@@ -1302,7 +1303,10 @@ LedgerMaster::findNewLedgersToPublish(
|
1302 | 1303 | // Can we try to acquire the ledger we need?
|
1303 | 1304 | if (!ledger && (++acqCount < ledger_fetch_size_))
|
1304 | 1305 | ledger = app_.getInboundLedgers().acquire(
|
1305 |
| - *hash, seq, InboundLedger::Reason::GENERIC); |
| 1306 | + *hash, |
| 1307 | + seq, |
| 1308 | + InboundLedger::Reason::GENERIC, |
| 1309 | + "findNewLedgersToPublish"); |
1306 | 1310 | }
|
1307 | 1311 |
|
1308 | 1312 | // Did we acquire the next ledger we need to publish?
|
@@ -1493,15 +1497,17 @@ LedgerMaster::updatePaths()
|
1493 | 1497 | app_.getInboundLedgers().acquire(
|
1494 | 1498 | lastLedger->info().parentHash,
|
1495 | 1499 | lastLedger->info().seq - 1,
|
1496 |
| - InboundLedger::Reason::GENERIC); |
| 1500 | + InboundLedger::Reason::GENERIC, |
| 1501 | + "updatePaths open"); |
1497 | 1502 | }
|
1498 | 1503 | else
|
1499 | 1504 | {
|
1500 | 1505 | // this ledger is the problem
|
1501 | 1506 | app_.getInboundLedgers().acquire(
|
1502 | 1507 | lastLedger->info().hash,
|
1503 | 1508 | lastLedger->info().seq,
|
1504 |
| - InboundLedger::Reason::GENERIC); |
| 1509 | + InboundLedger::Reason::GENERIC, |
| 1510 | + "updatePaths closed"); |
1505 | 1511 | }
|
1506 | 1512 | }
|
1507 | 1513 | }
|
@@ -1702,7 +1708,7 @@ LedgerMaster::walkHashBySeq(
|
1702 | 1708 | if (!ledger)
|
1703 | 1709 | {
|
1704 | 1710 | if (auto const l = app_.getInboundLedgers().acquire(
|
1705 |
| - *refHash, refIndex, reason)) |
| 1711 | + *refHash, refIndex, reason, "walkHashBySeq")) |
1706 | 1712 | {
|
1707 | 1713 | ledgerHash = hashOfSeq(*l, index, m_journal);
|
1708 | 1714 | XRPL_ASSERT(
|
@@ -1828,8 +1834,8 @@ LedgerMaster::fetchForHistory(
|
1828 | 1834 | {
|
1829 | 1835 | if (!app_.getInboundLedgers().isFailure(*hash))
|
1830 | 1836 | {
|
1831 |
| - ledger = |
1832 |
| - app_.getInboundLedgers().acquire(*hash, missing, reason); |
| 1837 | + ledger = app_.getInboundLedgers().acquire( |
| 1838 | + *hash, missing, reason, "fetchForHistory"); |
1833 | 1839 | if (!ledger && missing != fetch_seq_ &&
|
1834 | 1840 | missing > app_.getNodeStore().earliestLedgerSeq())
|
1835 | 1841 | {
|
@@ -1896,7 +1902,8 @@ LedgerMaster::fetchForHistory(
|
1896 | 1902 | h->isNonZero(),
|
1897 | 1903 | "ripple::LedgerMaster::fetchForHistory : "
|
1898 | 1904 | "prefetched ledger");
|
1899 |
| - app_.getInboundLedgers().acquire(*h, seq, reason); |
| 1905 | + app_.getInboundLedgers().acquire( |
| 1906 | + *h, seq, reason, "fetchForHistory no ledger"); |
1900 | 1907 | }
|
1901 | 1908 | }
|
1902 | 1909 | }
|
|
0 commit comments