|
|
@ -719,9 +719,13 @@ func (fs *FSObjects) getObjectInfo(ctx context.Context, bucket, object string) ( |
|
|
|
// Read from fs metadata only if it exists.
|
|
|
|
// Read from fs metadata only if it exists.
|
|
|
|
_, rerr := fsMeta.ReadFrom(ctx, rlk.LockedFile) |
|
|
|
_, rerr := fsMeta.ReadFrom(ctx, rlk.LockedFile) |
|
|
|
fs.rwPool.Close(fsMetaPath) |
|
|
|
fs.rwPool.Close(fsMetaPath) |
|
|
|
if rerr != nil && rerr != io.EOF { |
|
|
|
if rerr != nil { |
|
|
|
|
|
|
|
if rerr != io.EOF { |
|
|
|
return oi, rerr |
|
|
|
return oi, rerr |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
// Set Default ETag, if fs.json is empty
|
|
|
|
|
|
|
|
fsMeta = fs.defaultFsJSON(object) |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
// Return a default etag and content-type based on the object's extension.
|
|
|
|
// Return a default etag and content-type based on the object's extension.
|
|
|
|