aboutsummaryrefslogtreecommitdiff
path: root/weed/storage/backend/disk_file.go
diff options
context:
space:
mode:
authorChris Lu <chris.lu@gmail.com>2019-10-29 22:37:36 -0700
committerChris Lu <chris.lu@gmail.com>2019-10-29 22:37:36 -0700
commit4b5ba4927fa4d130d9badbd506195fa0cd7e9168 (patch)
treebff689100f493bac7e083c61a571e322a0b5feef /weed/storage/backend/disk_file.go
parentcd7ce720c779d7bc5b8e43726e2e5ca68756774a (diff)
downloadseaweedfs-4b5ba4927fa4d130d9badbd506195fa0cd7e9168.tar.xz
seaweedfs-4b5ba4927fa4d130d9badbd506195fa0cd7e9168.zip
adjust NewDiskFile() paramaters
Diffstat (limited to 'weed/storage/backend/disk_file.go')
-rw-r--r--weed/storage/backend/disk_file.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/weed/storage/backend/disk_file.go b/weed/storage/backend/disk_file.go
index 7c8616cf6..7f2b39d15 100644
--- a/weed/storage/backend/disk_file.go
+++ b/weed/storage/backend/disk_file.go
@@ -14,9 +14,9 @@ type DiskFile struct {
fullFilePath string
}
-func NewDiskFile(fullFilePath string, f *os.File) *DiskFile {
+func NewDiskFile(f *os.File) *DiskFile {
return &DiskFile{
- fullFilePath: fullFilePath,
+ fullFilePath: f.Name(),
File: f,
}
}