mirror of
https://github.com/pgsty/minio.git
synced 2026-07-22 21:50:22 +03:00
indicate how long it took to bring the drive online (#15835)
This commit is contained in:
@@ -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
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user