aboutsummaryrefslogtreecommitdiff
path: root/weed/storage/disk_location.go
diff options
context:
space:
mode:
authorChris Lu <chris.lu@gmail.com>2017-01-08 11:01:46 -0800
committerChris Lu <chris.lu@gmail.com>2017-01-08 11:01:46 -0800
commited44f12f6db7f05aba8a76f1a0ff92356c43d4b0 (patch)
treee4c444173b30053d83b9a0b9ad9d8e2063f44c14 /weed/storage/disk_location.go
parent7b6837cbc2b2c27b6acdc2c41d88cd27d0823e60 (diff)
downloadseaweedfs-ed44f12f6db7f05aba8a76f1a0ff92356c43d4b0.tar.xz
seaweedfs-ed44f12f6db7f05aba8a76f1a0ff92356c43d4b0.zip
support Fallocate on linux
Diffstat (limited to 'weed/storage/disk_location.go')
-rw-r--r--weed/storage/disk_location.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/weed/storage/disk_location.go b/weed/storage/disk_location.go
index 039b4f3b9..496e0dd57 100644
--- a/weed/storage/disk_location.go
+++ b/weed/storage/disk_location.go
@@ -36,7 +36,7 @@ func (l *DiskLocation) loadExistingVolume(dir os.FileInfo, needleMapKind NeedleM
_, found := l.volumes[vid]
mutex.RUnlock()
if !found {
- if v, e := NewVolume(l.Directory, collection, vid, needleMapKind, nil, nil); e == nil {
+ if v, e := NewVolume(l.Directory, collection, vid, needleMapKind, nil, nil, 0); e == nil {
mutex.Lock()
l.volumes[vid] = v
mutex.Unlock()