mirror of https://github.com/minio/minio.git
heal: Include dir markers when healing a fresh disk (#15158)
Directories markers are not healed when healing a new fresh disk. A a proper fix would be moving object names encoding/decoding to erasure object level but it is too late now since the object to set distribution is calculated at a higher level.
This commit is contained in:
parent
1a40c7c27c
commit
42e2fd35d8
|
@ -269,8 +269,11 @@ func (er *erasureObjects) healErasureSet(ctx context.Context, buckets []string,
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// erasureObjects layer needs object names to be encoded
|
||||||
|
encodedEntryName := encodeDirObject(entry.name)
|
||||||
|
|
||||||
for _, version := range fivs.Versions {
|
for _, version := range fivs.Versions {
|
||||||
if _, err := er.HealObject(ctx, bucket, version.Name,
|
if _, err := er.HealObject(ctx, bucket, encodedEntryName,
|
||||||
version.VersionID, madmin.HealOpts{
|
version.VersionID, madmin.HealOpts{
|
||||||
ScanMode: scanMode,
|
ScanMode: scanMode,
|
||||||
Remove: healDeleteDangling,
|
Remove: healDeleteDangling,
|
||||||
|
|
Loading…
Reference in New Issue