aboutsummaryrefslogtreecommitdiff
path: root/weed/filesys/filehandle.go
diff options
context:
space:
mode:
authorChris Lu <chris.lu@gmail.com>2021-05-09 22:56:10 -0700
committerChris Lu <chris.lu@gmail.com>2021-05-09 22:56:10 -0700
commitf4cf30b497cc50f3b7536568263ec2882714c7f4 (patch)
tree9da0e5f9fad8e5f183e6bd355eae964f61320b59 /weed/filesys/filehandle.go
parent280e7cf289b084ef06fe41ebdbb95a03bbfbe0c0 (diff)
downloadseaweedfs-f4cf30b497cc50f3b7536568263ec2882714c7f4.tar.xz
seaweedfs-f4cf30b497cc50f3b7536568263ec2882714c7f4.zip
mount: write to tmp file before uploading
Diffstat (limited to 'weed/filesys/filehandle.go')
-rw-r--r--weed/filesys/filehandle.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/weed/filesys/filehandle.go b/weed/filesys/filehandle.go
index 7a939e87a..abdab2b5e 100644
--- a/weed/filesys/filehandle.go
+++ b/weed/filesys/filehandle.go
@@ -38,7 +38,8 @@ type FileHandle struct {
func newFileHandle(file *File, uid, gid uint32, writeOnly bool) *FileHandle {
fh := &FileHandle{
f: file,
- dirtyPages: newContinuousDirtyPages(file, writeOnly),
+ // dirtyPages: newContinuousDirtyPages(file, writeOnly),
+ dirtyPages: newTempFileDirtyPages(file, writeOnly),
Uid: uid,
Gid: gid,
}