Skip to content

Commit

Permalink
filer.sync: pass attributes for mount
Browse files Browse the repository at this point in the history
fix #3012
  • Loading branch information
chrislusf committed May 6, 2022
1 parent 22fbce8 commit 139e039
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions weed/replication/sink/filersink/filer_sink.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 139e039

Please sign in to comment.