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
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
1 additions and
1 deletions
-
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 |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|