mirror of
https://github.com/minio/minio.git
synced 2026-11-08 08:39:12 +00:00
heal: Decode object name in healing result (#11348)
The user can see __XLDIR__ prefix in mc admin heal when the command heals an empty object with a trailing slash. This commit decodes the name of the object before sending it back to the upper level.
This commit is contained in:
1 parent
09bc49bd51
commit
bd8020aba8
1 file changed
+1
@@ -1404,6 +1404,7 @@ func (z *erasureServerPools) HealObject(ctx context.Context, bucket, object, ver
|
||||
|
||||
for _, pool := range z.serverPools {
|
||||
result, err := pool.HealObject(ctx, bucket, object, versionID, opts)
|
||||
result.Object = decodeDirObject(result.Object)
|
||||
if err != nil {
|
||||
if isErrObjectNotFound(err) || isErrVersionNotFound(err) {
|
||||
continue
|
||||
|
||||
Reference in new issue
Block a user