Merge pull request #615 from tengattack/master

fix reserve volume on node
This commit is contained in:
Chris Lu 2018-01-18 22:32:17 -08:00 committed by GitHub
commit b2b8a003c1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

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