use 64 bit counters (#136)

* use 64 bit counters
This commit is contained in:
Nathan Nichols
2022-03-30 13:01:56 -05:00
committed by GitHub
parent e526083456
commit 9b1de77110
2 changed files with 8 additions and 7 deletions

View File

@@ -253,8 +253,9 @@ BackendInterface::fetchLedgerPage(
bool reachedEnd = false;
while (keys.size() < limit && !reachedEnd)
{
ripple::uint256 const& curCursor =
keys.size() ? keys.back() : cursor ? *cursor : firstKey;
ripple::uint256 const& curCursor = keys.size() ? keys.back()
: cursor ? *cursor
: firstKey;
uint32_t seq = outOfOrder ? range->maxSequence : ledgerSequence;
auto succ = fetchSuccessorKey(curCursor, seq, yield);
if (!succ)

View File

@@ -16,11 +16,11 @@ private:
{
MethodInfo() = default;
std::atomic_uint started{0};
std::atomic_uint finished{0};
std::atomic_uint errored{0};
std::atomic_uint forwarded{0};
std::atomic_uint duration{0};
std::atomic_uint64_t started{0};
std::atomic_uint64_t finished{0};
std::atomic_uint64_t errored{0};
std::atomic_uint64_t forwarded{0};
std::atomic_uint64_t duration{0};
};
void