Skip to content

Commit

Permalink
fix: limit should >= 0
Browse files Browse the repository at this point in the history
  • Loading branch information
cyz-2023 committed Nov 6, 2024
1 parent 6206448 commit e432aff
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions include/exec/exec_node.h
Original file line number Diff line number Diff line change
Expand Up @@ -233,6 +233,9 @@ class ExecNode {
}
void set_limit(int64_t limit) {
_limit = limit;
if (_limit < 0) {
_limit = -1;
}
}
virtual void reset_limit(int64_t limit) {
_limit = limit;
Expand Down

0 comments on commit e432aff

Please sign in to comment.