aboutsummaryrefslogtreecommitdiff
path: root/weed/filesys/filehandle.go
diff options
context:
space:
mode:
authorChris Lu <chris.lu@gmail.com>2021-05-09 15:28:54 -0700
committerChris Lu <chris.lu@gmail.com>2021-05-09 15:28:54 -0700
commit55e060cf619d07f47c0fa1f6e7bf74f94130edec (patch)
treeed8a923e57c04792115a31fc3c4e35e012485947 /weed/filesys/filehandle.go
parent735e65be17c7d4664462b13bfce0e660c8f6e65d (diff)
downloadseaweedfs-55e060cf619d07f47c0fa1f6e7bf74f94130edec.tar.xz
seaweedfs-55e060cf619d07f47c0fa1f6e7bf74f94130edec.zip
refactor
Diffstat (limited to 'weed/filesys/filehandle.go')
-rw-r--r--weed/filesys/filehandle.go3
1 files changed, 1 insertions, 2 deletions
diff --git a/weed/filesys/filehandle.go b/weed/filesys/filehandle.go
index 3e0567dee..3ccd996ae 100644
--- a/weed/filesys/filehandle.go
+++ b/weed/filesys/filehandle.go
@@ -267,8 +267,7 @@ func (fh *FileHandle) doFlush(ctx context.Context, header fuse.Header) error {
}
entry.Attributes.Mtime = time.Now().Unix()
entry.Attributes.FileMode = uint32(os.FileMode(entry.Attributes.FileMode) &^ fh.f.wfs.option.Umask)
- entry.Attributes.Collection = fh.dirtyPages.collection
- entry.Attributes.Replication = fh.dirtyPages.replication
+ entry.Attributes.Collection, entry.Attributes.Replication = fh.dirtyPages.GetStorageOptions()
}
request := &filer_pb.CreateEntryRequest{