mirror of
https://github.com/minio/minio.git
synced 2025-12-04 14:37:18 -05:00
Add forceStop flag to provide facility to stop healing (#6718)
This PR also makes sure that we deal with HTTP request count by ignoring the on-going heal operation, i.e do not wait on itself.
This commit is contained in:
committed by
kannappanr
parent
bef0318c36
commit
a9cda850ca
@@ -208,7 +208,7 @@ Fetches information for all cluster nodes, such as server properties, storage in
|
||||
## 6. Heal operations
|
||||
|
||||
<a name="Heal"></a>
|
||||
### Heal(bucket, prefix string, healOpts HealOpts, clientToken string, forceStart bool) (start HealStartSuccess, status HealTaskStatus, err error)
|
||||
### Heal(bucket, prefix string, healOpts HealOpts, clientToken string, forceStart bool, forceStop bool) (start HealStartSuccess, status HealTaskStatus, err error)
|
||||
|
||||
Start a heal sequence that scans data under given (possible empty)
|
||||
`bucket` and `prefix`. The `recursive` bool turns on recursive
|
||||
@@ -232,7 +232,8 @@ __Example__
|
||||
DryRun: false,
|
||||
}
|
||||
forceStart := false
|
||||
healPath, err := madmClnt.Heal("", "", opts, "", forceStart)
|
||||
forceStop := false
|
||||
healPath, err := madmClnt.Heal("", "", opts, "", forceStart, forceStop)
|
||||
if err != nil {
|
||||
log.Fatalln(err)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user