aboutsummaryrefslogtreecommitdiff
path: root/go/topology/topology.go
diff options
context:
space:
mode:
authorChris Lu <chris.lu@gmail.com>2014-10-25 23:45:31 -0700
committerChris Lu <chris.lu@gmail.com>2014-10-25 23:45:31 -0700
commitf527fc1d5ee975fd29e49bf542d893a2d433a491 (patch)
treef81aade45d484bd633f1a000aa5c28ec58973f2c /go/topology/topology.go
parent30bcda7136f847b59ac6e6610a40829dc10ec8cd (diff)
downloadseaweedfs-f527fc1d5ee975fd29e49bf542d893a2d433a491.tar.xz
seaweedfs-f527fc1d5ee975fd29e49bf542d893a2d433a491.zip
adjust visibility
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 a81829bb6..cfce0c9a8 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) hasWritableVolume(option *VolumeGrowOption) bool {
+func (t *Topology) HasWritableVolume(option *VolumeGrowOption) bool {
vl := t.GetVolumeLayout(option.Collection, option.ReplicaPlacement, option.Ttl)
return vl.GetActiveVolumeCount(option) > 0
}