mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2024-11-27 12:49:41 +08:00
[filer.sync] skip overwriting existing fresh entry
This commit is contained in:
parent
19d14b4c71
commit
c6dec11ea5
@ -120,6 +120,10 @@ func (fs *FilerSink) CreateEntry(key string, entry *filer_pb.Entry, signatures [
|
|||||||
glog.V(3).Infof("already replicated %s", key)
|
glog.V(3).Infof("already replicated %s", key)
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
if resp.Entry.Attributes != nil && resp.Entry.Attributes.Mtime >= entry.Attributes.Mtime {
|
||||||
|
glog.V(3).Infof("skip overwriting %s", key)
|
||||||
|
return nil
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
replicatedChunks, err := fs.replicateChunks(entry.GetChunks(), key)
|
replicatedChunks, err := fs.replicateChunks(entry.GetChunks(), key)
|
||||||
|
Loading…
Reference in New Issue
Block a user