diff options
| author | Thomas Anderson <tnyeanderson@users.noreply.github.com> | 2023-03-09 02:58:03 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-03-08 23:58:03 -0800 |
| commit | bd7068387164ebe6378aa973101364e10d250dcd (patch) | |
| tree | 3d5604519947d650dfd49160f9afbe3d48203e3a /weed/topology/node.go | |
| parent | 59706c89fb3d2ab325a36ef237e147f99d6d259e (diff) | |
| download | seaweedfs-bd7068387164ebe6378aa973101364e10d250dcd.tar.xz seaweedfs-bd7068387164ebe6378aa973101364e10d250dcd.zip | |
fix(weed/topology/node.go): typo in error message (#4292)
Diffstat (limited to 'weed/topology/node.go')
| -rw-r--r-- | weed/topology/node.go | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/weed/topology/node.go b/weed/topology/node.go index b964a611f..ae58891e4 100644 --- a/weed/topology/node.go +++ b/weed/topology/node.go @@ -2,15 +2,16 @@ package topology import ( "errors" + "math/rand" + "strings" + "sync" + "sync/atomic" + "github.com/seaweedfs/seaweedfs/weed/glog" "github.com/seaweedfs/seaweedfs/weed/stats" "github.com/seaweedfs/seaweedfs/weed/storage/erasure_coding" "github.com/seaweedfs/seaweedfs/weed/storage/needle" "github.com/seaweedfs/seaweedfs/weed/storage/types" - "math/rand" - "strings" - "sync" - "sync/atomic" ) type NodeId string @@ -73,7 +74,7 @@ func (n *NodeImpl) PickNodesByWeight(numberOfNodes int, option *VolumeGrowOption n.RUnlock() if len(candidates) < numberOfNodes { glog.V(0).Infoln(n.Id(), "failed to pick", numberOfNodes, "from ", len(candidates), "node candidates") - return nil, nil, errors.New("No enough data node found!") + return nil, nil, errors.New("Not enough data nodes found!") } //pick nodes randomly by weights, the node picked earlier has higher final weights |
