Remove inline data hack (#12946)

move the code down to the storage layer,
this logic decouples the inline data from the 
size parameter making it flexible and future
proof.
This commit is contained in:
Klaus Post
2021-08-13 17:25:54 +02:00
committed by GitHub
parent f31a00de01
commit 24722ddd02
4 changed files with 27 additions and 27 deletions
+4 -1
View File
@@ -190,7 +190,10 @@ func (fi FileInfo) InlineData() bool {
}
// SetInlineData marks object (version) as inline.
func (fi FileInfo) SetInlineData() {
func (fi *FileInfo) SetInlineData() {
if fi.Metadata == nil {
fi.Metadata = make(map[string]string, 1)
}
fi.Metadata[ReservedMetadataPrefixLower+"inline-data"] = "true"
}