erasure: avoid io.Copy in hotpaths to reduce allocation (#11213)

This commit is contained in:
Harshavardhana
2021-01-03 16:27:34 -08:00
committed by GitHub
parent c4131c2798
commit c4b1d394d6
5 changed files with 26 additions and 9 deletions

View File

@@ -432,6 +432,7 @@ func (api objectAPIHandlers) GetObjectHandler(w http.ResponseWriter, r *http.Req
return
}
defer gr.Close()
objInfo := gr.ObjInfo
// filter object lock metadata if permission does not permit