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

fix health report
This commit is contained in:
Łukasz Magiera authored and GitHub committed 2021-04-11 22:23:40 +02:00
commit 73bbd3d98a
1 file changed
+2
+2
View File
@@ -184,6 +184,8 @@ func (i *Index) StorageReportHealth(ctx context.Context, id ID, report HealthRep
ent.fsi = report.Stat
if report.Err != "" {
ent.heartbeatErr = errors.New(report.Err)
} else {
ent.heartbeatErr = nil
}
ent.lastHeartbeat = time.Now()