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
master
Krishnan Parthasarathi 8 years ago committed by Harshavardhana
parent 96c46c15e7
commit 4041e5f20d
  1. 6
      cmd/prepare-storage-msg.go

@ -101,9 +101,9 @@ const (
// healing is optional, server continues to initialize object layer after printing this message. // 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. // it is upto the end user to perform a heal if needed.
func getHealMsg(endpoints []*url.URL, storageDisks []StorageAPI) string { func getHealMsg(endpoints []*url.URL, storageDisks []StorageAPI) string {
msg := fmt.Sprintln("\nData volume requires HEALING. Healing is not implemented yet stay tuned:") healFmtCmd := `"mc admin heal myminio"`
// FIXME: Enable this after we bring in healing. msg := fmt.Sprintf("New disk(s) were found, format them by running - %s\n",
// msg := "mc admin heal myminio" healFmtCmd)
disksInfo, _, _ := getDisksInfo(storageDisks) disksInfo, _, _ := getDisksInfo(storageDisks)
for i, info := range disksInfo { for i, info := range disksInfo {
if storageDisks[i] == nil { if storageDisks[i] == nil {

Loading…
Cancel
Save