Merge pull request #6011 from yaohcn/fix-health-report
fix health report
This commit is contained in:
1 file changed
+2
+2
@@ -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()
|
||||
|
||||
|
||||
Reference in new issue
Block a user