diff --git a/plugins/chain_plugin/chain_plugin.cpp b/plugins/chain_plugin/chain_plugin.cpp index 9cec1e942fc..7f4d0085ff0 100644 --- a/plugins/chain_plugin/chain_plugin.cpp +++ b/plugins/chain_plugin/chain_plugin.cpp @@ -2186,9 +2186,10 @@ struct kv_reverse_range { template 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();