mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2024-01-19 02:48:24 +00:00
remove extra code
This commit is contained in:
parent
1760dd083d
commit
c51884ce23
|
@ -19,7 +19,6 @@ func NewTopology(id NodeId) *Topology{
|
|||
func (t *Topology) RandomlyReserveOneVolume() (bool, *Node, storage.VolumeId) {
|
||||
slots := t.Node.maxVolumeCount-t.Node.activeVolumeCount
|
||||
r := rand.Intn(slots)
|
||||
r = rand.Intn(slots)
|
||||
fmt.Println("slots:", slots, "random :", r)
|
||||
vid := t.nextVolumeId()
|
||||
ret, node := t.Node.ReserveOneVolume(r,vid)
|
||||
|
|
Loading…
Reference in a new issue