aboutsummaryrefslogtreecommitdiff
path: root/go/topology/topology.go
diff options
context:
space:
mode:
authorbmcquee <bmcqueen@walmartlabs.com>2014-10-19 08:51:07 -0700
committerbmcquee <bmcqueen@walmartlabs.com>2014-10-19 08:51:07 -0700
commitbff7b71389557235c8573a77b0c030765c85fd1f (patch)
treefe8dd2f9195417fb5c5cc54473c380f6e2675452 /go/topology/topology.go
parent92653d2c413d2efb3a5322be6e8347146fc19542 (diff)
downloadseaweedfs-bff7b71389557235c8573a77b0c030765c85fd1f.tar.xz
seaweedfs-bff7b71389557235c8573a77b0c030765c85fd1f.zip
fix func name HasWriableVolume
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 c90e8de0b..876b7c418 100644
--- a/go/topology/topology.go
+++ b/go/topology/topology.go
@@ -109,7 +109,7 @@ func (t *Topology) NextVolumeId() storage.VolumeId {
return next
}
-func (t *Topology) HasWriableVolume(option *VolumeGrowOption) bool {
+func (t *Topology) HasWriteableVolume(option *VolumeGrowOption) bool {
vl := t.GetVolumeLayout(option.Collection, option.ReplicaPlacement, option.Ttl)
return vl.GetActiveVolumeCount(option) > 0
}