adjust complete query

This commit is contained in:
Nathan Nichols
2021-05-13 07:43:40 -05:00
parent f2c7d54b0d
commit 9b8e0bdf99
2 changed files with 3 additions and 1 deletions

View File

@@ -239,8 +239,10 @@ BackendIndexer::doKeysRepair(
return;
sequence = rng->maxSequence;
}
BOOST_LOG_TRIVIAL(info)
<< __func__ << " sequence = " << std::to_string(*sequence);
std::optional<ripple::uint256> cursor;
while (true)
{

View File

@@ -1559,7 +1559,7 @@ CassandraBackend::open(bool readOnly)
query.str("");
query << "SELECT * FROM " << tablePrefix << "books "
<< "WHERE book = "
<< "0x" << ripple::strHex(ripple::uint256(beast::zero))
<< "0x000000000000000000000000000000000000000000000000"
<< " AND sequence = ?";
if (!completeBook_.prepareStatement(query, session_.get()))
continue;