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.

fix checking

chrislu1cba609bfa23
diff --git a/weed/admin/handlers/cluster_handlers.go b/weed/admin/handlers/cluster_handlers.go
index 32b89acd11..38eebee8b8 100644
--- a/weed/admin/handlers/cluster_handlers.go
+++ b/weed/admin/handlers/cluster_handlers.go
@@ -1,7 +1,6 @@
package handlers
import (
- "math"
"net/http"
"strconv"
@@ -251,7 +250,7 @@ func (h *ClusterHandlers) ShowEcVolumeDetails(c *gin.Context) {
}
// Check that volumeID is within uint32 range
- if volumeID < 0 || volumeID > int(math.MaxUint32) {
+ if volumeID < 0 {
c.JSON(http.StatusBadRequest, gin.H{"error": "Volume ID out of range"})
return
}