Skip to content

Commit

Permalink
fix seek
Browse files Browse the repository at this point in the history
  • Loading branch information
glorv committed Sep 6, 2021
1 parent d87cdb8 commit 30f32d1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion br/pkg/storage/s3.go
Original file line number Diff line number Diff line change
Expand Up @@ -677,7 +677,8 @@ func (r *s3ObjectReader) Seek(offset int64, whence int) (int64, error) {
}

r.reader = io.NopCloser(bytes.NewReader(nil))
return r.rangeInfo.Size, nil
r.pos = r.rangeInfo.Size
return r.pos, nil
}

// if seek ahead no more than 64k, we discard these data
Expand Down

0 comments on commit 30f32d1

Please sign in to comment.