diff options
| author | Chris Lu <chris.lu@gmail.com> | 2020-12-16 09:14:05 -0800 |
|---|---|---|
| committer | Chris Lu <chris.lu@gmail.com> | 2020-12-16 09:14:05 -0800 |
| commit | 1bf22c0b5b1ecd99cb1631800e5a6818e8d8d1b1 (patch) | |
| tree | eaa221a960e59b1b73b6b76035787a603dd1892c /weed/topology | |
| parent | 1d88865869b554d72be8fe2629080bcd97cb8767 (diff) | |
| download | seaweedfs-1bf22c0b5b1ecd99cb1631800e5a6818e8d8d1b1.tar.xz seaweedfs-1bf22c0b5b1ecd99cb1631800e5a6818e8d8d1b1.zip | |
go fmt
Diffstat (limited to 'weed/topology')
| -rw-r--r-- | weed/topology/topology_test.go | 4 | ||||
| -rw-r--r-- | weed/topology/volume_growth.go | 2 | ||||
| -rw-r--r-- | weed/topology/volume_layout.go | 4 |
3 files changed, 5 insertions, 5 deletions
diff --git a/weed/topology/topology_test.go b/weed/topology/topology_test.go index 92dcb9a22..b7088947c 100644 --- a/weed/topology/topology_test.go +++ b/weed/topology/topology_test.go @@ -60,7 +60,7 @@ func TestHandlingVolumeServerHeartbeat(t *testing.T) { ReplicaPlacement: uint32(0), Version: uint32(needle.CurrentVersion), Ttl: 0, - DiskType: "ssd", + DiskType: "ssd", } volumeMessages = append(volumeMessages, volumeMessage) } @@ -168,7 +168,7 @@ func TestAddRemoveVolume(t *testing.T) { Id: needle.VolumeId(1), Size: 100, Collection: "xcollection", - DiskType: "ssd", + DiskType: "ssd", FileCount: 123, DeleteCount: 23, DeletedByteCount: 45, diff --git a/weed/topology/volume_growth.go b/weed/topology/volume_growth.go index b2f1fe3d5..260013c38 100644 --- a/weed/topology/volume_growth.go +++ b/weed/topology/volume_growth.go @@ -27,7 +27,7 @@ type VolumeGrowOption struct { Collection string ReplicaPlacement *super_block.ReplicaPlacement Ttl *needle.TTL - DiskType storage.DiskType + DiskType storage.DiskType Prealloacte int64 DataCenter string Rack string diff --git a/weed/topology/volume_layout.go b/weed/topology/volume_layout.go index ba30eca49..3b1feefa4 100644 --- a/weed/topology/volume_layout.go +++ b/weed/topology/volume_layout.go @@ -103,7 +103,7 @@ func (v *volumesBinaryState) copyState(list *VolumeLocationList) copyState { type VolumeLayout struct { rp *super_block.ReplicaPlacement ttl *needle.TTL - diskType storage.DiskType + diskType storage.DiskType vid2location map[needle.VolumeId]*VolumeLocationList writables []needle.VolumeId // transient array of writable volume id readonlyVolumes *volumesBinaryState // readonly volumes @@ -123,7 +123,7 @@ func NewVolumeLayout(rp *super_block.ReplicaPlacement, ttl *needle.TTL, diskType return &VolumeLayout{ rp: rp, ttl: ttl, - diskType: diskType, + diskType: diskType, vid2location: make(map[needle.VolumeId]*VolumeLocationList), writables: *new([]needle.VolumeId), readonlyVolumes: NewVolumesBinaryState(readOnlyState, rp, ExistCopies()), |
