mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2024-12-18 12:47:50 +08:00
docs: replicte
-> replicate
(#3664)
This commit is contained in:
parent
dfaa602661
commit
d734fff322
@ -195,7 +195,7 @@ func (fs *FilerSink) UpdateEntry(key string, oldEntry *filer_pb.Entry, newParent
|
|||||||
// find out what changed
|
// find out what changed
|
||||||
deletedChunks, newChunks, err := compareChunks(filer.LookupFn(fs), oldEntry, newEntry)
|
deletedChunks, newChunks, err := compareChunks(filer.LookupFn(fs), oldEntry, newEntry)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return true, fmt.Errorf("replicte %s compare chunks error: %v", key, err)
|
return true, fmt.Errorf("replicate %s compare chunks error: %v", key, err)
|
||||||
}
|
}
|
||||||
|
|
||||||
// delete the chunks that are deleted from the source
|
// delete the chunks that are deleted from the source
|
||||||
@ -207,7 +207,7 @@ func (fs *FilerSink) UpdateEntry(key string, oldEntry *filer_pb.Entry, newParent
|
|||||||
// replicate the chunks that are new in the source
|
// replicate the chunks that are new in the source
|
||||||
replicatedChunks, err := fs.replicateChunks(newChunks, key)
|
replicatedChunks, err := fs.replicateChunks(newChunks, key)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return true, fmt.Errorf("replicte %s chunks error: %v", key, err)
|
return true, fmt.Errorf("replicate %s chunks error: %v", key, err)
|
||||||
}
|
}
|
||||||
existingEntry.Chunks = append(existingEntry.Chunks, replicatedChunks...)
|
existingEntry.Chunks = append(existingEntry.Chunks, replicatedChunks...)
|
||||||
existingEntry.Attributes = newEntry.Attributes
|
existingEntry.Attributes = newEntry.Attributes
|
||||||
|
Loading…
Reference in New Issue
Block a user