add more logging

This commit is contained in:
CJ Cobb
2021-01-21 11:23:21 -05:00
parent eca85b3538
commit 5d233fce1b
5 changed files with 11 additions and 2 deletions

View File

@@ -273,6 +273,8 @@ flatMapReadObjectCallback(CassFuture* fut, void* cbData)
else
{
auto finish = [&requestParams]() {
BOOST_LOG_TRIVIAL(trace)
<< "flatMapReadObjectCallback - finished a read";
size_t batchSize = requestParams.batchSize;
if (++(requestParams.numFinished) == batchSize)
requestParams.cv.notify_all();

View File

@@ -996,6 +996,7 @@ public:
std::uint32_t seq,
std::uint32_t limit) const
{
BOOST_LOG_TRIVIAL(debug) << "Starting doUpperBound";
CassStatement* statement = cass_prepared_bind(upperBound_);
cass_statement_set_consistency(statement, CASS_CONSISTENCY_QUORUM);
int64_t markerVal = marker ? marker.value() : INT64_MIN;
@@ -1058,6 +1059,7 @@ public:
cass_statement_free(statement);
cass_future_free(fut);
BOOST_LOG_TRIVIAL(debug) << "doUpperBound - got keys";
std::vector<ripple::uint256> keys;
CassIterator* iter = cass_iterator_from_result(res);
@@ -1081,6 +1083,8 @@ public:
}
keys.push_back(ripple::uint256::fromVoid(outData));
}
BOOST_LOG_TRIVIAL(debug)
<< "doUpperBound - populated keys. num keys = " << keys.size();
if (keys.size())
{
std::vector<LedgerObject> results;