aboutsummaryrefslogtreecommitdiff
path: root/weed
diff options
context:
space:
mode:
authorChris Lu <chrislusf@users.noreply.github.com>2018-01-18 22:32:17 -0800
committerGitHub <noreply@github.com>2018-01-18 22:32:17 -0800
commitb2b8a003c1e422607cdaffb3d4af88cbd985269c (patch)
tree326df9301e8d04fa70c1dd9943b75ee8b6bee58a /weed
parent61ff330e9978f526c58a6e0a420020f79ee6cfe2 (diff)
parent371ad2e3979df4857a59078c89415165d0fe3916 (diff)
downloadseaweedfs-b2b8a003c1e422607cdaffb3d4af88cbd985269c.tar.xz
seaweedfs-b2b8a003c1e422607cdaffb3d4af88cbd985269c.zip
Merge pull request #615 from tengattack/master
fix reserve volume on node
Diffstat (limited to 'weed')
-rw-r--r--weed/topology/node.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/weed/topology/node.go b/weed/topology/node.go
index 5dac4966b..48a61d867 100644
--- a/weed/topology/node.go
+++ b/weed/topology/node.go
@@ -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
}
}