-
Notifications
You must be signed in to change notification settings - Fork 365
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Local Storage Range Allow 0:0 #6116
Conversation
pkg/block/local/adapter.go
Outdated
@@ -325,7 +325,7 @@ func (l *Adapter) Exists(_ context.Context, obj block.ObjectPointer) (bool, erro | |||
} | |||
|
|||
func (l *Adapter) GetRange(_ context.Context, obj block.ObjectPointer, start int64, end int64) (io.ReadCloser, error) { | |||
if start < 0 || end <= 0 { | |||
if start < 0 || end < 0 { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
if start < 0 || end < 0 { | |
if start < 0 || end < start { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Consider this change
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
like +1
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Change suggestion
pkg/block/local/adapter.go
Outdated
@@ -325,7 +325,7 @@ func (l *Adapter) Exists(_ context.Context, obj block.ObjectPointer) (bool, erro | |||
} | |||
|
|||
func (l *Adapter) GetRange(_ context.Context, obj block.ObjectPointer, start int64, end int64) (io.ReadCloser, error) { | |||
if start < 0 || end <= 0 { | |||
if start < 0 || end < 0 { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Consider this change
Co-authored-by: N-o-Z <ozery.nir@gmail.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks !
Linked Issue
Fixes #6115