diff options
| author | Chris Lu <chris.lu@gmail.com> | 2014-10-25 23:45:31 -0700 |
|---|---|---|
| committer | Chris Lu <chris.lu@gmail.com> | 2014-10-25 23:45:31 -0700 |
| commit | f527fc1d5ee975fd29e49bf542d893a2d433a491 (patch) | |
| tree | f81aade45d484bd633f1a000aa5c28ec58973f2c /go/topology | |
| parent | 30bcda7136f847b59ac6e6610a40829dc10ec8cd (diff) | |
| download | seaweedfs-f527fc1d5ee975fd29e49bf542d893a2d433a491.tar.xz seaweedfs-f527fc1d5ee975fd29e49bf542d893a2d433a491.zip | |
adjust visibility
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 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 } |
