Skip to content

SeaweedFS is a distributed storage system for object storage (S3), file systems, Iceberg table buckets, and Lance vector buckets, designed to handle billions of files with O(1) disk access and effortless horizontal scaling.

better error message

Chris Lu3a8746ca545b
diff --git a/weed/topology/node.go b/weed/topology/node.go
index 206a9aff48..5dac4966ba 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