Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix swift: fixed invalid lower range boundary
Browse files Browse the repository at this point in the history
Signed-off-by: Martin Chodur <m.chodur@seznam.cz>
FUSAKLA committed May 27, 2020

Verified

This commit was signed with the committer’s verified signature.
FUSAKLA Martin Chodur
1 parent 4bfabe1 commit 34a33fb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/objstore/swift/swift.go
Original file line number Diff line number Diff line change
@@ -122,7 +122,7 @@ func (c *Container) Get(ctx context.Context, name string) (io.ReadCloser, error)
func (c *Container) GetRange(ctx context.Context, name string, off, length int64) (io.ReadCloser, error) {
lowerLimit := ""
upperLimit := ""
if off > 0 {
if off >= 0 {
lowerLimit = fmt.Sprintf("%d", off)
}
if length > 0 {

0 comments on commit 34a33fb

Please sign in to comment.