diff options
| author | Lei Xue <carmark.dlut@gmail.com> | 2015-01-13 18:46:56 +0800 |
|---|---|---|
| committer | Lei Xue <carmark.dlut@gmail.com> | 2015-01-13 18:46:56 +0800 |
| commit | 029e3a38227c6bf9718d9771b7816b0b9efaeb97 (patch) | |
| tree | 95c8e70116dd18b673292c9e52ae2a00d7011f29 /go/topology | |
| parent | 5afdc469a3d96c168e250af1c16a5c4419accedc (diff) | |
| download | seaweedfs-029e3a38227c6bf9718d9771b7816b0b9efaeb97.tar.xz seaweedfs-029e3a38227c6bf9718d9771b7816b0b9efaeb97.zip | |
fix some typos
Diffstat (limited to 'go/topology')
| -rw-r--r-- | go/topology/topology.go | 2 |
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 |
