aboutsummaryrefslogtreecommitdiff
path: root/go/topology/volume_layout.go
diff options
context:
space:
mode:
authorchrislusf <chris.lu@gmail.com>2015-04-06 14:17:36 -0700
committerchrislusf <chris.lu@gmail.com>2015-04-06 14:17:36 -0700
commit3ece066700169013497390aaca8d1d86bf7ecb2d (patch)
tree4e412ced584332cd3d8e4281d55c65916795cf21 /go/topology/volume_layout.go
parentc37a20178e76661acacbf4e84da0a916d9129cbc (diff)
downloadseaweedfs-3ece066700169013497390aaca8d1d86bf7ecb2d.tar.xz
seaweedfs-3ece066700169013497390aaca8d1d86bf7ecb2d.zip
change count to uint64 to fix #109
fix https://github.com/chrislusf/weed-fs/issues/109
Diffstat (limited to 'go/topology/volume_layout.go')
-rw-r--r--go/topology/volume_layout.go2
1 files changed, 1 insertions, 1 deletions
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!")