mirror of
https://github.com/pgsty/minio.git
synced 2026-07-19 12:10:24 +03: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