mirror of
https://github.com/minio/minio.git
synced 2025-05-21 17:43:48 -04:00
fix replication healing on list to consider all versions (#16496)
This commit is contained in:
parent
820d94447c
commit
eaa65b7ade
@ -377,10 +377,15 @@ func applyBucketActions(ctx context.Context, o listPathOptions, in <-chan metaCa
|
|||||||
case <-ctx.Done():
|
case <-ctx.Done():
|
||||||
return
|
return
|
||||||
case out <- obj:
|
case out <- obj:
|
||||||
|
if fiv, err := obj.fileInfoVersions(o.Bucket); err == nil {
|
||||||
|
for _, version := range fiv.Versions {
|
||||||
|
objInfo := version.ToObjectInfo(o.Bucket, obj.name, versioned)
|
||||||
queueReplicationHeal(ctx, o.Bucket, objInfo, o.Replication)
|
queueReplicationHeal(ctx, o.Bucket, objInfo, o.Replication)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
func (z *erasureServerPools) listAndSave(ctx context.Context, o *listPathOptions) (entries metaCacheEntriesSorted, err error) {
|
func (z *erasureServerPools) listAndSave(ctx context.Context, o *listPathOptions) (entries metaCacheEntriesSorted, err error) {
|
||||||
// Use ID as the object name...
|
// Use ID as the object name...
|
||||||
|
Loading…
x
Reference in New Issue
Block a user