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:
Klaus Post
2024-05-29 12:14:09 -07:00
committed by GitHub
parent 03e3493288
commit bd4eeb4522
3 changed files with 24 additions and 24 deletions

View File

@@ -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,
}
}