diff options
| author | Chris Lu <chris.lu@gmail.com> | 2020-06-05 15:27:10 -0700 |
|---|---|---|
| committer | Chris Lu <chris.lu@gmail.com> | 2020-06-05 15:27:10 -0700 |
| commit | 45a9d852d3d10bdaaf2a5358e4a4d823a7edbfcc (patch) | |
| tree | d122e72706f1d9130002798583ac81882974dd32 /weed/storage | |
| parent | 03c2f0350904bc2e69faf5f9a552092826df9ae3 (diff) | |
| download | seaweedfs-45a9d852d3d10bdaaf2a5358e4a4d823a7edbfcc.tar.xz seaweedfs-45a9d852d3d10bdaaf2a5358e4a4d823a7edbfcc.zip | |
go fmt
Diffstat (limited to 'weed/storage')
| -rw-r--r-- | weed/storage/disk_location.go | 20 | ||||
| -rw-r--r-- | weed/storage/types/offset_4bytes.go | 2 | ||||
| -rw-r--r-- | weed/storage/types/offset_5bytes.go | 2 |
3 files changed, 12 insertions, 12 deletions
diff --git a/weed/storage/disk_location.go b/weed/storage/disk_location.go index dafc0fb4a..853facc49 100644 --- a/weed/storage/disk_location.go +++ b/weed/storage/disk_location.go @@ -1,13 +1,13 @@ package storage import ( - "fmt" + "fmt" "github.com/chrislusf/seaweedfs/weed/stats" - "io/ioutil" - "os" + "io/ioutil" + "os" "path/filepath" - "strings" - "sync" + "strings" + "sync" "time" "github.com/chrislusf/seaweedfs/weed/glog" @@ -16,11 +16,11 @@ import ( ) type DiskLocation struct { - Directory string - MaxVolumeCount int + Directory string + MaxVolumeCount int MinFreeSpacePercent float32 - volumes map[needle.VolumeId]*Volume - volumesLock sync.RWMutex + volumes map[needle.VolumeId]*Volume + volumesLock sync.RWMutex // erasure coding ecVolumes map[needle.VolumeId]*erasure_coding.EcVolume @@ -315,4 +315,4 @@ func (l *DiskLocation) CheckDiskSpace() { } } -}
\ No newline at end of file +} diff --git a/weed/storage/types/offset_4bytes.go b/weed/storage/types/offset_4bytes.go index ded5b88cb..d53147e21 100644 --- a/weed/storage/types/offset_4bytes.go +++ b/weed/storage/types/offset_4bytes.go @@ -11,7 +11,7 @@ type OffsetHigher struct { } const ( - OffsetSize = 4 + OffsetSize = 4 MaxPossibleVolumeSize uint64 = 4 * 1024 * 1024 * 1024 * 8 // 32GB ) diff --git a/weed/storage/types/offset_5bytes.go b/weed/storage/types/offset_5bytes.go index 1db22d524..05c6d2f39 100644 --- a/weed/storage/types/offset_5bytes.go +++ b/weed/storage/types/offset_5bytes.go @@ -11,7 +11,7 @@ type OffsetHigher struct { } const ( - OffsetSize = 4 + 1 + OffsetSize = 4 + 1 MaxPossibleVolumeSize uint64 = 4 * 1024 * 1024 * 1024 * 8 * 256 /* 256 is from the extra byte */ // 8TB ) |
