diff options
| author | chrislu <chris.lu@gmail.com> | 2024-09-07 12:38:34 -0700 |
|---|---|---|
| committer | chrislu <chris.lu@gmail.com> | 2024-09-07 12:38:34 -0700 |
| commit | ff3d46637d7adaf364f6384c3d631d16c9741363 (patch) | |
| tree | a64584b28b0f1b8c465d75f38ab146df16cb98b2 /weed/topology/volume_layout.go | |
| parent | accba3070a4a82756835e00696cea0da9c7ff596 (diff) | |
| download | seaweedfs-ff3d46637d7adaf364f6384c3d631d16c9741363.tar.xz seaweedfs-ff3d46637d7adaf364f6384c3d631d16c9741363.zip | |
better logging for volume growth
Diffstat (limited to 'weed/topology/volume_layout.go')
| -rw-r--r-- | weed/topology/volume_layout.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/weed/topology/volume_layout.go b/weed/topology/volume_layout.go index baa9b91d4..0951da60e 100644 --- a/weed/topology/volume_layout.go +++ b/weed/topology/volume_layout.go @@ -301,7 +301,7 @@ func (vl *VolumeLayout) PickForWrite(count uint64, option *VolumeGrowOption) (vi lenWriters := len(vl.writables) if lenWriters <= 0 { - return 0, 0, nil, true, fmt.Errorf("%s in volume layout", noWritableVolumes) + return 0, 0, nil, true, fmt.Errorf("%s", noWritableVolumes) } if option.DataCenter == "" && option.Rack == "" && option.DataNode == "" { vid := vl.writables[rand.Intn(lenWriters)] |
