Skip to content

Commit

Permalink
fix: do not read extra block if offset = at+childSize
Browse files Browse the repository at this point in the history
  • Loading branch information
hacdias committed Jun 2, 2023
1 parent 852acf4 commit d08cdc7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion file/shard.go
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ func (s *shardNodeReader) makeReader() (io.Reader, error) {
if err != nil {
return nil, err
}
if s.offset > at+childSize {
if s.offset >= at+childSize {
at += childSize
continue
}
Expand Down

0 comments on commit d08cdc7

Please sign in to comment.