Browse Source

parse needle id correctly

fix https://github.com/chrislusf/seaweedfs/issues/713
pull/719/head
Chris Lu 7 years ago
parent
commit
694f93de80
  1. 2
      weed/storage/types/needle_id_type.go

2
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)
}

Loading…
Cancel
Save