diff options
| author | Chris Lu <chris.lu@gmail.com> | 2019-11-08 22:54:41 -0800 |
|---|---|---|
| committer | Chris Lu <chris.lu@gmail.com> | 2019-11-08 22:54:41 -0800 |
| commit | c5c1d83d91e5de51dd51b96cf338b00f38532d6c (patch) | |
| tree | 692fed158b681b636fcb76ddf4702fb11d712835 /weed/topology/topology.go | |
| parent | db30a460503d3a0c81ae78e621d5acf61585c473 (diff) | |
| parent | c34ffed43f9e6afde139c78a723fc56d843e03d4 (diff) | |
| download | seaweedfs-c5c1d83d91e5de51dd51b96cf338b00f38532d6c.tar.xz seaweedfs-c5c1d83d91e5de51dd51b96cf338b00f38532d6c.zip | |
Merge branch 'master' into refactoring_dat_backend
Diffstat (limited to 'weed/topology/topology.go')
| -rw-r--r-- | weed/topology/topology.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/weed/topology/topology.go b/weed/topology/topology.go index ea0769248..b7ebe8af5 100644 --- a/weed/topology/topology.go +++ b/weed/topology/topology.go @@ -125,7 +125,7 @@ func (t *Topology) PickForWrite(count uint64, option *VolumeGrowOption) (string, if datanodes.Length() == 0 { return "", 0, nil, fmt.Errorf("no writable volumes available for collection:%s replication:%s ttl:%s", option.Collection, option.ReplicaPlacement.String(), option.Ttl.String()) } - fileId, count := t.Sequence.NextFileId(count) + fileId := t.Sequence.NextFileId(count) return needle.NewFileId(*vid, fileId, rand.Uint32()).String(), count, datanodes.Head(), nil } |
