aboutsummaryrefslogtreecommitdiff
path: root/weed/storage/disk_location.go
diff options
context:
space:
mode:
authorChris Lu <chris.lu@gmail.com>2020-12-16 09:14:05 -0800
committerChris Lu <chris.lu@gmail.com>2020-12-16 09:14:05 -0800
commit1bf22c0b5b1ecd99cb1631800e5a6818e8d8d1b1 (patch)
treeeaa221a960e59b1b73b6b76035787a603dd1892c /weed/storage/disk_location.go
parent1d88865869b554d72be8fe2629080bcd97cb8767 (diff)
downloadseaweedfs-1bf22c0b5b1ecd99cb1631800e5a6818e8d8d1b1.tar.xz
seaweedfs-1bf22c0b5b1ecd99cb1631800e5a6818e8d8d1b1.zip
go fmt
Diffstat (limited to 'weed/storage/disk_location.go')
-rw-r--r--weed/storage/disk_location.go8
1 files changed, 4 insertions, 4 deletions
diff --git a/weed/storage/disk_location.go b/weed/storage/disk_location.go
index c6619b260..271a36ef7 100644
--- a/weed/storage/disk_location.go
+++ b/weed/storage/disk_location.go
@@ -19,7 +19,7 @@ import (
type DiskLocation struct {
Directory string
IdxDirectory string
- DiskType DiskType
+ DiskType DiskType
MaxVolumeCount int
OriginalMaxVolumeCount int
MinFreeSpacePercent float32
@@ -43,7 +43,7 @@ func NewDiskLocation(dir string, maxVolumeCount int, minFreeSpacePercent float32
location := &DiskLocation{
Directory: dir,
IdxDirectory: idxDir,
- DiskType: diskType,
+ DiskType: diskType,
MaxVolumeCount: maxVolumeCount,
OriginalMaxVolumeCount: maxVolumeCount,
MinFreeSpacePercent: minFreeSpacePercent,
@@ -117,7 +117,7 @@ func (l *DiskLocation) loadExistingVolume(fileInfo os.FileInfo, needleMapKind Ne
glog.V(0).Infof("new volume %s error %s", volumeName, e)
return false
}
-
+
l.SetVolume(vid, v)
size, _, _ := v.FileStat()
@@ -362,4 +362,4 @@ func (l *DiskLocation) GetDiskType() string {
return "SSD"
}
return "HDD"
-} \ No newline at end of file
+}