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

Commit

Permalink
time tracking for kv_get_row
Browse files Browse the repository at this point in the history
  • Loading branch information
huangminghuang committed Mar 16, 2021
1 parent 50dbdfd commit bee6e05
Showing 1 changed file with 2 additions and 1 deletion.
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

0 comments on commit bee6e05

Please sign in to comment.