mirror of
https://github.com/minio/minio.git
synced 2025-01-12 15:33:22 -05:00
Provide mc-admin-heal command on start-up (#4031)
Healing of buckets, objects and incomplete uploads are implemented and available via admin REST APIs. Additionally, it is available via mc admin sub-command. The warning is no longer relevant. Fixes #4030
This commit is contained in:
parent
96c46c15e7
commit
4041e5f20d
@ -101,9 +101,9 @@ const (
|
||||
// healing is optional, server continues to initialize object layer after printing this message.
|
||||
// it is upto the end user to perform a heal if needed.
|
||||
func getHealMsg(endpoints []*url.URL, storageDisks []StorageAPI) string {
|
||||
msg := fmt.Sprintln("\nData volume requires HEALING. Healing is not implemented yet stay tuned:")
|
||||
// FIXME: Enable this after we bring in healing.
|
||||
// msg := "mc admin heal myminio"
|
||||
healFmtCmd := `"mc admin heal myminio"`
|
||||
msg := fmt.Sprintf("New disk(s) were found, format them by running - %s\n",
|
||||
healFmtCmd)
|
||||
disksInfo, _, _ := getDisksInfo(storageDisks)
|
||||
for i, info := range disksInfo {
|
||||
if storageDisks[i] == nil {
|
||||
|
Loading…
Reference in New Issue
Block a user