1
0
Fork 0
mirror of https://github.com/chrislusf/seaweedfs synced 2024-07-02 23:26:42 +02:00

metadata processing use retry instead of retryForEver

This commit is contained in:
chrislu 2022-08-22 11:25:40 -07:00
parent 741a013689
commit 7ea2c24c5d

View file

@ -41,12 +41,11 @@ func (t *MetadataProcessor) AddSyncJob(resp *filer_pb.SubscribeMetadataResponse)
t.activeJobs[resp.TsNs] = resp
go func() {
util.RetryForever("metadata processor", func() error {
if err := util.Retry("metadata processor", func() error {
return t.fn(resp)
}, func(err error) bool {
}); err != nil {
glog.Errorf("process %v: %v", resp, err)
return true
})
}
t.activeJobsLock.Lock()
defer t.activeJobsLock.Unlock()