mirror of
https://github.com/minio/minio.git
synced 2025-11-07 12:52:58 -05:00
Fix flipped EcM, EcN in metadata header (#19831)
Since this is a tuple encoded field we can just flip the struct members.
This commit is contained in:
@@ -250,7 +250,7 @@ type xlMetaV2VersionHeader struct {
|
||||
Signature [4]byte
|
||||
Type VersionType
|
||||
Flags xlFlags
|
||||
EcM, EcN uint8 // Note that these will be 0/0 for non-v2 objects and older xl.meta
|
||||
EcN, EcM uint8 // Note that these will be 0/0 for non-v2 objects and older xl.meta
|
||||
}
|
||||
|
||||
func (x xlMetaV2VersionHeader) String() string {
|
||||
@@ -368,8 +368,8 @@ func (j *xlMetaV2Version) header() xlMetaV2VersionHeader {
|
||||
Signature: j.getSignature(),
|
||||
Type: j.Type,
|
||||
Flags: flags,
|
||||
EcN: ecM,
|
||||
EcM: ecN,
|
||||
EcN: ecN,
|
||||
EcM: ecM,
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user