aboutsummaryrefslogtreecommitdiff
path: root/go/topology/topology.go
diff options
context:
space:
mode:
authorChris Lu <chris.lu@gmail.com>2015-01-14 09:56:13 -0800
committerChris Lu <chris.lu@gmail.com>2015-01-14 09:56:13 -0800
commit41bd5179f349c4ca424ccefe8e3541037510be8a (patch)
tree7642d05344e05c9c390db94099a40e6ca8e0a1ce /go/topology/topology.go
parentaf416189f1dfdb621bb0ecc5483b915fb179ac6f (diff)
parent996a1789e8ecb0254e87f8da7066813fdbf1df30 (diff)
downloadseaweedfs-41bd5179f349c4ca424ccefe8e3541037510be8a.tar.xz
seaweedfs-41bd5179f349c4ca424ccefe8e3541037510be8a.zip
Resolve Conflicts
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