From 694f93de80984fdc1193ba8eda7887fe6b3b9fc1 Mon Sep 17 00:00:00 2001 From: Chris Lu Date: Thu, 23 Aug 2018 20:48:43 -0700 Subject: [PATCH] parse needle id correctly fix https://github.com/chrislusf/seaweedfs/issues/713 --- weed/storage/types/needle_id_type.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/weed/storage/types/needle_id_type.go b/weed/storage/types/needle_id_type.go index efb22190d..4c6e10598 100644 --- a/weed/storage/types/needle_id_type.go +++ b/weed/storage/types/needle_id_type.go @@ -37,7 +37,7 @@ func (k NeedleId) String() string { } func ParseNeedleId(idString string) (NeedleId, error) { - key, err := strconv.ParseUint(idString, 16, 64) + key, err := strconv.ParseUint(idString, 10, 64) if err != nil { return 0, fmt.Errorf("needle id %s format error: %v", idString, err) }