fix: remove auto-close GetObjectReader (#12009)

locks can get relinquished when Read() sees io.EOF
leading to prematurely closing of the readers

concurrent writes on the same object can have
undesired consequences here when these locks
are relinquished.
This commit is contained in:
Harshavardhana
2021-04-07 13:29:27 -07:00
committed by GitHub
parent 48c5e7e5b6
commit 4223ebab8d
3 changed files with 13 additions and 9 deletions

View File

@@ -530,7 +530,7 @@ type SelectParameters struct {
// IsEmpty returns true if no select parameters set
func (sp *SelectParameters) IsEmpty() bool {
return sp == nil || sp.S3Select == s3select.S3Select{}
return sp == nil
}
var (