Merge pull request #6011 from yaohcn/fix-health-report

fix health report
This commit is contained in:
Łukasz Magiera 2021-04-11 22:23:40 +02:00 committed by GitHub
commit 73bbd3d98a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -184,6 +184,8 @@ func (i *Index) StorageReportHealth(ctx context.Context, id ID, report HealthRep
ent.fsi = report.Stat ent.fsi = report.Stat
if report.Err != "" { if report.Err != "" {
ent.heartbeatErr = errors.New(report.Err) ent.heartbeatErr = errors.New(report.Err)
} else {
ent.heartbeatErr = nil
} }
ent.lastHeartbeat = time.Now() ent.lastHeartbeat = time.Now()