indicate how long it took to bring the drive online (#15835)

This commit is contained in:
Harshavardhana
2022-10-11 11:33:56 -07:00
committed by GitHub
parent 6220875803
commit 0c81f1bdb3

View File

@@ -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
}