aboutsummaryrefslogtreecommitdiff
path: root/go/topology
diff options
context:
space:
mode:
authorLei Xue <carmark.dlut@gmail.com>2015-01-13 18:46:56 +0800
committerLei Xue <carmark.dlut@gmail.com>2015-01-13 18:46:56 +0800
commit029e3a38227c6bf9718d9771b7816b0b9efaeb97 (patch)
tree95c8e70116dd18b673292c9e52ae2a00d7011f29 /go/topology
parent5afdc469a3d96c168e250af1c16a5c4419accedc (diff)
downloadseaweedfs-029e3a38227c6bf9718d9771b7816b0b9efaeb97.tar.xz
seaweedfs-029e3a38227c6bf9718d9771b7816b0b9efaeb97.zip
fix some typos
Diffstat (limited to 'go/topology')
-rw-r--r--go/topology/topology.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/go/topology/topology.go b/go/topology/topology.go
index c2073ed2f..4cfd070db 100644
--- a/go/topology/topology.go
+++ b/go/topology/topology.go
@@ -119,7 +119,7 @@ func (t *Topology) HasWritableVolume(option *VolumeGrowOption) bool {
func (t *Topology) PickForWrite(count int, option *VolumeGrowOption) (string, int, *DataNode, error) {
vid, count, datanodes, err := t.GetVolumeLayout(option.Collection, option.ReplicaPlacement, option.Ttl).PickForWrite(count, option)
if err != nil || datanodes.Length() == 0 {
- return "", 0, nil, errors.New("No writable volumes avalable!")
+ return "", 0, nil, errors.New("No writable volumes available!")
}
fileId, count := t.Sequence.NextFileId(count)
return storage.NewFileId(*vid, fileId, rand.Uint32()).String(), count, datanodes.Head(), nil