Skip to content

Commit

Permalink
minor mod
Browse files Browse the repository at this point in the history
  • Loading branch information
wanliqun committed Oct 29, 2024
1 parent 406ab06 commit d5727db
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions store/mysql/store_log_filter.go
Original file line number Diff line number Diff line change
Expand Up @@ -203,6 +203,11 @@ func (filter *LogFilter) validateCount(db *gorm.DB) error {
return nil
}

if blockNums[0] <= filter.BlockFrom {
return store.NewResultSetTooLargeError()
}

// suggest a narrower range if possible
return store.NewResultSetTooLargeError(&types.RangeUint64{
From: filter.BlockFrom,
To: blockNums[0] - 1,
Expand Down

0 comments on commit d5727db

Please sign in to comment.