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

Commit

Permalink
Merge pull request #10144 from EOSIO/huangminghuang/kv-get-row-time-t…
Browse files Browse the repository at this point in the history
…racking

huangminghuang/kv-get-row-time-tracking
  • Loading branch information
brianjohnson5972 authored Mar 17, 2021
2 parents 50dbdfd + bee6e05 commit ce13327
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 ce13327

Please sign in to comment.