mirror of
https://github.com/minio/minio.git
synced 2025-01-11 15:03:22 -05:00
parent
0ddc4f0075
commit
d50193d30f
@ -97,11 +97,16 @@ GLOBAL FLAGS:
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
case 1:
|
||||
case 1, 2:
|
||||
v, b, err := msgp.ReadBytesZC(b)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
if _, nbuf, err := msgp.ReadUint32Bytes(b); err == nil {
|
||||
// Read metadata CRC (added in v2, ignore if not found)
|
||||
b = nbuf
|
||||
}
|
||||
|
||||
_, err = msgp.CopyToJSON(buf, bytes.NewBuffer(v))
|
||||
if err != nil {
|
||||
return err
|
||||
|
Loading…
Reference in New Issue
Block a user