Skip to content
This repository has been archived by the owner on Aug 2, 2022. It is now read-only.

time tracking for kv_get_row - develop #10144

Merged
merged 1 commit into from
Mar 17, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion plugins/chain_plugin/chain_plugin.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2186,9 +2186,10 @@ struct kv_reverse_range {
template <typename Range>
read_only::get_table_rows_result kv_get_rows(Range&& range) {

keep_processing kp {};
read_only::get_table_rows_result result;
auto& ctx = range.current.context;
for (unsigned count = 0; count < ctx.p.limit && !range.is_done();
for (unsigned count = 0; count < ctx.p.limit && !range.is_done() && kp() ;
++count) {
result.rows.emplace_back(range.current.get_value_and_maybe_payer_var());
range.next();
Expand Down