mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2024-01-19 02:48:24 +00:00
Make sure that onChangeEvent is called successfully before updating lastTsNs
This commit is contained in:
parent
e17e6ed542
commit
2b5b37231b
|
@ -211,10 +211,9 @@ func (ma *MetaAggregator) doSubscribeToOneFiler(f *Filer, self pb.ServerAddress,
|
||||||
if err := processEventFn(resp); err != nil {
|
if err := processEventFn(resp); err != nil {
|
||||||
return fmt.Errorf("process %v: %v", resp, err)
|
return fmt.Errorf("process %v: %v", resp, err)
|
||||||
}
|
}
|
||||||
lastTsNs = resp.TsNs
|
|
||||||
|
|
||||||
f.onMetadataChangeEvent(resp)
|
f.onMetadataChangeEvent(resp)
|
||||||
|
lastTsNs = resp.TsNs
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
return lastTsNs, err
|
return lastTsNs, err
|
||||||
|
|
Loading…
Reference in a new issue