mirror of
https://github.com/minio/minio.git
synced 2025-01-11 15:03:22 -05:00
indicate how long it took to bring the drive online (#15835)
This commit is contained in:
parent
6220875803
commit
0c81f1bdb3
@ -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
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user