From 9c85928740d4ed59c28d2f392cb7ccc8e66631d8 Mon Sep 17 00:00:00 2001 From: Harshavardhana Date: Wed, 13 May 2020 20:25:29 -0700 Subject: [PATCH] add formatting message for zones in ordinals (#9596) Unlike the message > Formatting 2 zone, 1 set(s), 6 drives per set. It is more readable as ordinal > Formatting 2nd zone, 1 set(s), 6 drives per set. --- cmd/prepare-storage.go | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/cmd/prepare-storage.go b/cmd/prepare-storage.go index e4b712e0b..6f8fa8c06 100644 --- a/cmd/prepare-storage.go +++ b/cmd/prepare-storage.go @@ -26,6 +26,7 @@ import ( "sync" "time" + "github.com/dustin/go-humanize" xhttp "github.com/minio/minio/cmd/http" "github.com/minio/minio/cmd/logger" "github.com/minio/minio/cmd/rest" @@ -247,14 +248,15 @@ func connectLoadInitFormats(retryCount int, firstDisk bool, endpoints Endpoints, // All disks report unformatted we should initialized everyone. if shouldInitXLDisks(sErrs) && firstDisk { - logger.Info("Formatting %v zone, %v set(s), %v drives per set.", - zoneCount, setCount, drivesPerSet) + logger.Info("Formatting %s zone, %v set(s), %v drives per set.", + humanize.Ordinal(zoneCount), setCount, drivesPerSet) // Initialize erasure code format on disks format, err = initFormatXL(GlobalContext, storageDisks, setCount, drivesPerSet, deploymentID) if err != nil { return nil, nil, err } + // Assign globalDeploymentID on first run for the // minio server managing the first disk globalDeploymentID = format.ID