mirror of
https://github.com/minio/minio.git
synced 2025-12-04 06:35:55 -05:00
Across donut, split, nimble some code cleanup
This commit is contained in:
@@ -152,7 +152,7 @@ func (donut API) GetObject(w io.Writer, bucket string, object string) (int64, er
|
||||
return 0, iodine.New(err, nil)
|
||||
}
|
||||
/// cache object read from disk
|
||||
ok := donut.objects.Set(objectKey, pw.writtenBytes)
|
||||
ok := donut.objects.Append(objectKey, pw.writtenBytes)
|
||||
pw.writtenBytes = nil
|
||||
go debug.FreeOSMemory()
|
||||
if !ok {
|
||||
@@ -208,7 +208,7 @@ func (donut API) GetPartialObject(w io.Writer, bucket, object string, start, len
|
||||
if err != nil {
|
||||
return 0, iodine.New(err, nil)
|
||||
}
|
||||
ok := donut.objects.Set(objectKey, pw.writtenBytes)
|
||||
ok := donut.objects.Append(objectKey, pw.writtenBytes)
|
||||
pw.writtenBytes = nil
|
||||
go debug.FreeOSMemory()
|
||||
if !ok {
|
||||
|
||||
Reference in New Issue
Block a user