diff options
| author | Chris Lu <chris.lu@gmail.com> | 2020-02-24 22:28:45 -0800 |
|---|---|---|
| committer | Chris Lu <chris.lu@gmail.com> | 2020-02-24 22:28:45 -0800 |
| commit | 6ab7368ef2556ef086d13c6d0d4454f1e98a5cd8 (patch) | |
| tree | 636d3d9cecfb44f71133c2387d01125fa75bc4a3 /weed/filesys/filehandle.go | |
| parent | 5bcb44eda9b1dba57abf8cd9ce3b2d18518bd100 (diff) | |
| download | seaweedfs-6ab7368ef2556ef086d13c6d0d4454f1e98a5cd8.tar.xz seaweedfs-6ab7368ef2556ef086d13c6d0d4454f1e98a5cd8.zip | |
filer: dynamically create bucket under /buckets folder
Diffstat (limited to 'weed/filesys/filehandle.go')
| -rw-r--r-- | weed/filesys/filehandle.go | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/weed/filesys/filehandle.go b/weed/filesys/filehandle.go index cf253a7ed..71954d75d 100644 --- a/weed/filesys/filehandle.go +++ b/weed/filesys/filehandle.go @@ -178,6 +178,8 @@ func (fh *FileHandle) Flush(ctx context.Context, req *fuse.FlushRequest) error { fh.f.entry.Attributes.Mtime = time.Now().Unix() fh.f.entry.Attributes.Crtime = time.Now().Unix() fh.f.entry.Attributes.FileMode = uint32(0777 &^ fh.f.wfs.option.Umask) + fh.f.entry.Attributes.Collection = fh.dirtyPages.collection + fh.f.entry.Attributes.Replication = fh.dirtyPages.replication } request := &filer_pb.CreateEntryRequest{ |
