diff options
Diffstat (limited to 'go/topology')
| -rw-r--r-- | go/topology/topology.go | 2 | ||||
| -rw-r--r-- | go/topology/volume_layout.go | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/go/topology/topology.go b/go/topology/topology.go index d96847ed2..f12261081 100644 --- a/go/topology/topology.go +++ b/go/topology/topology.go @@ -115,7 +115,7 @@ func (t *Topology) HasWritableVolume(option *VolumeGrowOption) bool { return vl.GetActiveVolumeCount(option) > 0 } -func (t *Topology) PickForWrite(count int, option *VolumeGrowOption) (string, int, *DataNode, error) { +func (t *Topology) PickForWrite(count uint64, option *VolumeGrowOption) (string, uint64, *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 available!") diff --git a/go/topology/volume_layout.go b/go/topology/volume_layout.go index e5667e322..14e112141 100644 --- a/go/topology/volume_layout.go +++ b/go/topology/volume_layout.go @@ -87,7 +87,7 @@ func (vl *VolumeLayout) ListVolumeServers() (nodes []*DataNode) { return } -func (vl *VolumeLayout) PickForWrite(count int, option *VolumeGrowOption) (*storage.VolumeId, int, *VolumeLocationList, error) { +func (vl *VolumeLayout) PickForWrite(count uint64, option *VolumeGrowOption) (*storage.VolumeId, uint64, *VolumeLocationList, error) { len_writers := len(vl.writables) if len_writers <= 0 { glog.V(0).Infoln("No more writable volumes!") |
