mirror of
https://github.com/rustfs/rustfs.git
synced 2026-08-10 23:26:53 +00:00
fix: make HeadObject consistent after write completion (#2936)
This commit is contained in:
@@ -1937,8 +1937,11 @@ impl ObjectOperations for SetDisks {
|
||||
None
|
||||
};
|
||||
|
||||
// Use the same full xl.meta read path as GetObject metadata resolution.
|
||||
// This avoids HEAD/GetObject metadata visibility skew immediately after
|
||||
// PutObject/CompleteMultipartUpload.
|
||||
let (fi, _, _) = self
|
||||
.get_object_fileinfo(bucket, object, opts, false)
|
||||
.get_object_fileinfo(bucket, object, opts, true)
|
||||
.await
|
||||
.map_err(|e| to_object_err(e, vec![bucket, object]))?;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user