mirror of
https://github.com/pgsty/minio.git
synced 2026-07-23 06:00:24 +03:00
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:
@@ -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"
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user