mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2024-01-19 02:48:24 +00:00
mount: optimize a bit when writing files
This commit is contained in:
parent
4042fdf3bb
commit
7542fd7f4d
|
@ -77,9 +77,10 @@ func (wfs *WFS) Mknod(cancel <-chan struct{}, in *fuse.MknodIn, name string, out
|
||||||
defer wfs.mapPbIdFromFilerToLocal(newEntry)
|
defer wfs.mapPbIdFromFilerToLocal(newEntry)
|
||||||
|
|
||||||
request := &filer_pb.CreateEntryRequest{
|
request := &filer_pb.CreateEntryRequest{
|
||||||
Directory: string(dirFullPath),
|
Directory: string(dirFullPath),
|
||||||
Entry: newEntry,
|
Entry: newEntry,
|
||||||
Signatures: []int32{wfs.signature},
|
Signatures: []int32{wfs.signature},
|
||||||
|
SkipCheckParentDirectory: true,
|
||||||
}
|
}
|
||||||
|
|
||||||
glog.V(1).Infof("mknod: %v", request)
|
glog.V(1).Infof("mknod: %v", request)
|
||||||
|
|
|
@ -140,9 +140,10 @@ func (wfs *WFS) doFlush(fh *FileHandle, uid, gid uint32) fuse.Status {
|
||||||
}
|
}
|
||||||
|
|
||||||
request := &filer_pb.CreateEntryRequest{
|
request := &filer_pb.CreateEntryRequest{
|
||||||
Directory: string(dir),
|
Directory: string(dir),
|
||||||
Entry: entry,
|
Entry: entry,
|
||||||
Signatures: []int32{wfs.signature},
|
Signatures: []int32{wfs.signature},
|
||||||
|
SkipCheckParentDirectory: true,
|
||||||
}
|
}
|
||||||
|
|
||||||
glog.V(4).Infof("%s set chunks: %v", fileFullPath, len(entry.Chunks))
|
glog.V(4).Infof("%s set chunks: %v", fileFullPath, len(entry.Chunks))
|
||||||
|
|
Loading…
Reference in a new issue