aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorchrislu <chris.lu@gmail.com>2022-05-06 03:54:12 -0700
committerchrislu <chris.lu@gmail.com>2022-05-06 03:54:12 -0700
commit139e039c4489d2f03f17ae3371defdf1609830f2 (patch)
treef093630fbb25796a28fbd2d8e5dd86c41494bf3c
parent22fbce8fd5038e40ad968b9e8a9e05fcf61d70a1 (diff)
downloadseaweedfs-139e039c4489d2f03f17ae3371defdf1609830f2.tar.xz
seaweedfs-139e039c4489d2f03f17ae3371defdf1609830f2.zip
filer.sync: pass attributes for mount
fix https://github.com/chrislusf/seaweedfs/issues/3012
-rw-r--r--weed/replication/sink/filersink/filer_sink.go6
1 files changed, 6 insertions, 0 deletions
diff --git a/weed/replication/sink/filersink/filer_sink.go b/weed/replication/sink/filersink/filer_sink.go
index 345c7f13b..9471409fc 100644
--- a/weed/replication/sink/filersink/filer_sink.go
+++ b/weed/replication/sink/filersink/filer_sink.go
@@ -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