aboutsummaryrefslogtreecommitdiff
path: root/go/topology/topology.go
diff options
context:
space:
mode:
authoryourchanges <yourchanges@gmail.com>2015-01-16 14:14:10 +0800
committeryourchanges <yourchanges@gmail.com>2015-01-16 14:14:10 +0800
commit47bc0f2f29dc489939884ed4ddb0748478027cc5 (patch)
treee2d91e2e3c664773e5dabd3becc1e0194a227b05 /go/topology/topology.go
parent7481b7376d0349938a99b08e5dfab0b2009b2e89 (diff)
parent0bd992aa44f5410d515bbbb7868b64b4da281707 (diff)
downloadseaweedfs-47bc0f2f29dc489939884ed4ddb0748478027cc5.tar.xz
seaweedfs-47bc0f2f29dc489939884ed4ddb0748478027cc5.zip
Merge pull request #3 from chrislusf/master
merge
Diffstat (limited to 'go/topology/topology.go')
-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