mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2024-01-19 02:48:24 +00:00
filer.sync: pass attributes for mount
fix https://github.com/chrislusf/seaweedfs/issues/3012
This commit is contained in:
parent
22fbce8fd5
commit
139e039c44
|
@ -208,6 +208,12 @@ func (fs *FilerSink) UpdateEntry(key string, oldEntry *filer_pb.Entry, newParent
|
|||
return true, fmt.Errorf("replicte %s chunks error: %v", key, err)
|
||||
}
|
||||
existingEntry.Chunks = append(existingEntry.Chunks, replicatedChunks...)
|
||||
existingEntry.Attributes = newEntry.Attributes
|
||||
existingEntry.Extended = newEntry.Extended
|
||||
existingEntry.HardLinkId = newEntry.HardLinkId
|
||||
existingEntry.HardLinkCounter = newEntry.HardLinkCounter
|
||||
existingEntry.Content = newEntry.Content
|
||||
existingEntry.RemoteEntry = newEntry.RemoteEntry
|
||||
}
|
||||
|
||||
// save updated meta data
|
||||
|
|
Loading…
Reference in a new issue