Avoid reprocess queries whose range size is 0

This commit is contained in:
Haiyan Meng
2020-06-18 09:07:57 -07:00
parent a83433d5cf
commit 145ba0c7ff
2 changed files with 18 additions and 5 deletions

View File

@@ -225,3 +225,7 @@ type RangeWithin struct {
func (r RangeWithin) RangeString() string {
return fmt.Sprintf("%d..%d", r.start, r.end)
}
func (r RangeWithin) Size() uint64 {
return r.end - r.start
}