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 id String() instead

Chris Lud361a1ddf592
diff --git a/weed/storage/types/needle_id_type.go b/weed/storage/types/needle_id_type.go
index 4c6e105984..4a890cd16a 100644
--- a/weed/storage/types/needle_id_type.go
+++ b/weed/storage/types/needle_id_type.go
@@ -33,11 +33,11 @@ func BytesToNeedleId(bytes []byte) NeedleId {
}
func (k NeedleId) String() string {
- return strconv.FormatUint(uint64(k), 10)
+ return strconv.FormatUint(uint64(k), 16)
}
func ParseNeedleId(idString string) (NeedleId, error) {
- key, err := strconv.ParseUint(idString, 10, 64)
+ key, err := strconv.ParseUint(idString, 16, 64)
if err != nil {
return 0, fmt.Errorf("needle id %s format error: %v", idString, err)
}