mirror of
https://github.com/pgsty/minio.git
synced 2026-07-23 06:00:24 +03:00
Tiered objects require ns locks unlike inlined (#18409)
This commit is contained in:
committed by
GitHub
parent
15137d0327
commit
0a25083fdb
@@ -296,7 +296,11 @@ func (fi FileInfo) GetDataDir() string {
|
||||
// InlineData returns true if object contents are inlined alongside its metadata.
|
||||
func (fi FileInfo) InlineData() bool {
|
||||
_, ok := fi.Metadata[ReservedMetadataPrefixLower+"inline-data"]
|
||||
return ok
|
||||
// Earlier MinIO versions didn't reset "x-minio-internal-inline-data"
|
||||
// from fi.Metadata when the object was tiered. So, tiered objects
|
||||
// would return true for InlineData() in these versions even though the
|
||||
// object isn't inlined in xl.meta
|
||||
return ok && !fi.IsRemote()
|
||||
}
|
||||
|
||||
// SetInlineData marks object (version) as inline.
|
||||
|
||||
Reference in New Issue
Block a user