mirror of
https://github.com/XRPLF/clio.git
synced 2025-11-19 19:25:53 +00:00
fix issue with account_tx stored procedure
This commit is contained in:
@@ -192,7 +192,6 @@ BackendInterface::fetchLedgerPage(
|
||||
assert(limit != 0);
|
||||
bool incomplete = !isLedgerIndexed(ledgerSequence);
|
||||
BOOST_LOG_TRIVIAL(debug) << __func__ << " incomplete = " << incomplete;
|
||||
std::cout << ledgerSequence << " - " << incomplete << std::endl;
|
||||
// really low limits almost always miss
|
||||
uint32_t adjustedLimit = std::max(limitHint, std::max(limit, (uint32_t)4));
|
||||
LedgerPage page;
|
||||
@@ -222,7 +221,6 @@ BackendInterface::fetchLedgerPage(
|
||||
} while (page.objects.size() < limit && page.cursor);
|
||||
if (incomplete)
|
||||
{
|
||||
std::cout << "recursing" << std::endl;
|
||||
auto rng = fetchLedgerRange();
|
||||
if (!rng)
|
||||
return page;
|
||||
|
||||
@@ -1200,7 +1200,7 @@ BEGIN
|
||||
|
||||
|
||||
_sql := format('SELECT hash, ledger_seq, transaction_index FROM account_transactions WHERE account = $1
|
||||
AND ledger_seq BETWEEN $2 AND $3 ORDER BY ledger_seq %s, transaction_index %s');
|
||||
AND ledger_seq BETWEEN $2 AND $3 ORDER BY ledger_seq %s, transaction_index %s',_sort_order,_sort_order);
|
||||
|
||||
OPEN _cursor FOR EXECUTE _sql USING _in_account_id, _between_min, _between_max;
|
||||
LOOP
|
||||
|
||||
@@ -13,7 +13,7 @@
|
||||
TEST(BackendTest, Basic)
|
||||
{
|
||||
boost::log::core::get()->set_filter(
|
||||
boost::log::trivial::severity >= boost::log::trivial::warning);
|
||||
boost::log::trivial::severity >= boost::log::trivial::debug);
|
||||
std::string keyspace =
|
||||
"oceand_test_" +
|
||||
std::to_string(
|
||||
@@ -40,7 +40,8 @@ TEST(BackendTest, Basic)
|
||||
{"password", "postgres"},
|
||||
{"indexer_key_shift", 2},
|
||||
{"threads", 8}}}}}};
|
||||
std::vector<boost::json::object> configs = {cassandraConfig};
|
||||
std::vector<boost::json::object> configs = {
|
||||
cassandraConfig, postgresConfig};
|
||||
for (auto& config : configs)
|
||||
{
|
||||
std::cout << keyspace << std::endl;
|
||||
@@ -581,14 +582,6 @@ TEST(BackendTest, Basic)
|
||||
++numLoops;
|
||||
ASSERT_FALSE(page.warning.has_value());
|
||||
} while (page.cursor);
|
||||
std::cout << numLoops << std::endl;
|
||||
std::cout << "base" << std::endl;
|
||||
for (auto obj : objs)
|
||||
if (obj.second.size() != 0)
|
||||
std::cout << ripple::strHex(obj.first) << std::endl;
|
||||
std::cout << "clio" << std::endl;
|
||||
for (auto retObj : retObjs)
|
||||
std::cout << ripple::strHex(retObj.key) << std::endl;
|
||||
for (auto obj : objs)
|
||||
{
|
||||
bool found = false;
|
||||
|
||||
Reference in New Issue
Block a user