Make sure that onChangeEvent is called successfully before updating lastTsNs

This commit is contained in:
石昌林 2022-06-29 23:55:59 +08:00
parent e17e6ed542
commit 2b5b37231b

View file

@ -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