mirror of
https://github.com/minio/minio.git
synced 2025-11-07 21:02:58 -05:00
do not use dataDir to reference inline data use versionID (#11942)
versionID is the one that needs to be preserved and as well as overwritten in case of replication, transition etc - dataDir is an ephemeral entity that changes during overwrites - make sure that versionID is used to save the object content. this would break things if you are already running the latest master, please wipe your current content and re-do your setup after this change.
This commit is contained in:
@@ -702,9 +702,10 @@ func (z *xlMetaV2) AddVersion(fi FileInfo) error {
|
||||
ventry.ObjectV2.MetaUser[k] = v
|
||||
}
|
||||
}
|
||||
|
||||
// If asked to save data.
|
||||
if len(fi.Data) > 0 || fi.Size == 0 {
|
||||
z.data.replace(dd.String(), fi.Data)
|
||||
z.data.replace(fi.VersionID, fi.Data)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user