Browse Source

Make sure that onChangeEvent is called successfully before updating lastTsNs

pull/3254/head
石昌林 3 years ago
parent
commit
2b5b37231b
  1. 3
      weed/filer/meta_aggregator.go

3
weed/filer/meta_aggregator.go

@ -211,10 +211,9 @@ func (ma *MetaAggregator) doSubscribeToOneFiler(f *Filer, self pb.ServerAddress,
if err := processEventFn(resp); err != nil {
return fmt.Errorf("process %v: %v", resp, err)
}
lastTsNs = resp.TsNs
f.onMetadataChangeEvent(resp)
lastTsNs = resp.TsNs
}
})
return lastTsNs, err

Loading…
Cancel
Save