From 0c81f1bdb310c96bd663079b43d134df3b4354b2 Mon Sep 17 00:00:00 2001 From: Harshavardhana Date: Tue, 11 Oct 2022 11:33:56 -0700 Subject: [PATCH] indicate how long it took to bring the drive online (#15835) --- cmd/xl-storage-disk-id-check.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/cmd/xl-storage-disk-id-check.go b/cmd/xl-storage-disk-id-check.go index ce3705194..ac8b12879 100644 --- a/cmd/xl-storage-disk-id-check.go +++ b/cmd/xl-storage-disk-id-check.go @@ -788,7 +788,8 @@ func (p *xlStorageDiskIDCheck) monitorDiskStatus() { Force: false, }) if err == nil { - logger.Info("Able to read+write, bringing drive %s online.", p.storage.String()) + logger.Info("Able to read+write+delete, bringing drive %s online. Drive was offline for %s.", p.storage.String(), + time.Since(time.Unix(0, atomic.LoadInt64(&p.health.lastSuccess)))) atomic.StoreInt32(&p.health.status, diskHealthOK) return }