filer: bootstrap from peer filer

fix https://github.com/chrislusf/seaweedfs/issues/1861
This commit is contained in:
Chris Lu 2021-05-22 03:17:02 -07:00
parent 2586621362
commit 2d0a0733ec

View file

@ -71,6 +71,7 @@ func (ma *MetaAggregator) subscribeToOneFiler(f *Filer, self string, peer string
// when filer store is not shared by multiple filers
if peerSignature != f.Signature {
lastTsNs = 0
if prevTsNs, err := ma.readOffset(f, peer, peerSignature); err == nil {
lastTsNs = prevTsNs
}