mirror of
https://github.com/minio/minio.git
synced 2025-11-07 12:52:58 -05:00
Tweak readall allocation and renameData buffer reuse (#13108)
Use a single allocation for reading the file, not the growing buffer of `io.ReadAll`. Reuse the write buffer if we can when writing metadata in RenameData.
This commit is contained in:
@@ -135,7 +135,7 @@ GLOBAL FLAGS:
|
||||
}
|
||||
data = b
|
||||
default:
|
||||
return errors.New("unknown metadata version")
|
||||
return fmt.Errorf("unknown metadata version %d", minor)
|
||||
}
|
||||
|
||||
if c.Bool("data") {
|
||||
|
||||
Reference in New Issue
Block a user