mirror of
https://github.com/minio/minio.git
synced 2025-04-22 11:26:36 -04: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,
|
Force: false,
|
||||||
})
|
})
|
||||||
if err == nil {
|
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)
|
atomic.StoreInt32(&p.health.status, diskHealthOK)
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user