aboutsummaryrefslogtreecommitdiff
path: root/weed/filer/entry_codec.go
diff options
context:
space:
mode:
authorchrislu <chris.lu@gmail.com>2022-06-06 00:39:35 -0700
committerchrislu <chris.lu@gmail.com>2022-06-06 00:39:35 -0700
commit4fd5f9659836390b9949838d8ca0e9feec35f66d (patch)
treea94ea2e28dade642cd4b919922b1a8b2f23685bc /weed/filer/entry_codec.go
parentcbf46de5f4f788c166028cb223dc4bd70d7eb0f6 (diff)
downloadseaweedfs-4fd5f9659836390b9949838d8ca0e9feec35f66d.tar.xz
seaweedfs-4fd5f9659836390b9949838d8ca0e9feec35f66d.zip
filer: remove replication, collection, disk_type info from entry metadata
these metadata can change and are not used
Diffstat (limited to 'weed/filer/entry_codec.go')
-rw-r--r--weed/filer/entry_codec.go6
1 files changed, 0 insertions, 6 deletions
diff --git a/weed/filer/entry_codec.go b/weed/filer/entry_codec.go
index 683e83cde..3d29ba0b4 100644
--- a/weed/filer/entry_codec.go
+++ b/weed/filer/entry_codec.go
@@ -39,10 +39,7 @@ func EntryAttributeToPb(entry *Entry) *filer_pb.FuseAttributes {
Uid: entry.Uid,
Gid: entry.Gid,
Mime: entry.Mime,
- Collection: entry.Attr.Collection,
- Replication: entry.Attr.Replication,
TtlSec: entry.Attr.TtlSec,
- DiskType: entry.Attr.DiskType,
UserName: entry.Attr.UserName,
GroupName: entry.Attr.GroupNames,
SymlinkTarget: entry.Attr.SymlinkTarget,
@@ -67,10 +64,7 @@ func PbToEntryAttribute(attr *filer_pb.FuseAttributes) Attr {
t.Uid = attr.Uid
t.Gid = attr.Gid
t.Mime = attr.Mime
- t.Collection = attr.Collection
- t.Replication = attr.Replication
t.TtlSec = attr.TtlSec
- t.DiskType = attr.DiskType
t.UserName = attr.UserName
t.GroupNames = attr.GroupName
t.SymlinkTarget = attr.SymlinkTarget