Merge heal dry-run fixes (#280)

Takes the dry-run part of PR #280 and credits its author. The parallel deep-verification part stays in #280 for separate review.
This commit is contained in:
Feng Ruohang
2026-11-06 12:59:34 +08:00
6 changed files with 370 additions and 4 deletions
+2
View File
@@ -1292,8 +1292,10 @@ func (s *peerRESTServer) HealBucketHandler(mss *grid.MSS) (np *grid.JSON[madmin.
}
bucketDeleted := mss.Get(peerS3BucketDeleted) == "true"
dryRun := mss.Get(peerS3BucketDryRun) == "true"
res, err := healBucketLocal(context.Background(), bucket, madmin.HealOpts{
Remove: bucketDeleted,
DryRun: dryRun,
})
if err != nil {
return np, grid.NewRemoteErr(err)