aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Lu <chris.lu@gmail.com>2017-08-10 10:26:19 -0700
committerChris Lu <chris.lu@gmail.com>2017-08-10 10:26:39 -0700
commit3a8746ca545b991e548c1253de4c34b6d0a2c39b (patch)
treee8a52cc4868fc62dd9653e9e564a09ba7d200f23
parent1129956f7f6a3ada1e3526424c97aeae9de69715 (diff)
downloadseaweedfs-3a8746ca545b991e548c1253de4c34b6d0a2c39b.tar.xz
seaweedfs-3a8746ca545b991e548c1253de4c34b6d0a2c39b.zip
better error message
-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 206a9aff4..5dac4966b 100644
--- a/weed/topology/node.go
+++ b/weed/topology/node.go
@@ -168,7 +168,7 @@ func (n *NodeImpl) ReserveOneVolume(r int) (assignedNode *DataNode, err error) {
}
}
}
- return
+ return nil, errors.New("No free volume slot found!")
}
func (n *NodeImpl) UpAdjustMaxVolumeCountDelta(maxVolumeCountDelta int) { //can be negative