Browse Source

Merge pull request #615 from tengattack/master

fix reserve volume on node
pull/623/head
Chris Lu 7 years ago
committed by GitHub
parent
commit
b2b8a003c1
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      weed/topology/node.go

2
weed/topology/node.go

@ -163,7 +163,7 @@ func (n *NodeImpl) ReserveOneVolume(r int) (assignedNode *DataNode, err error) {
return node.(*DataNode), nil return node.(*DataNode), nil
} }
assignedNode, err = node.ReserveOneVolume(r) assignedNode, err = node.ReserveOneVolume(r)
if err != nil {
if err == nil {
return return
} }
} }

Loading…
Cancel
Save