parse needle id correctly

fix https://github.com/chrislusf/seaweedfs/issues/713
This commit is contained in:
Chris Lu 2018-08-23 20:48:43 -07:00
parent 37e4e022fd
commit 694f93de80

View File

@ -37,7 +37,7 @@ func (k NeedleId) String() string {
} }
func ParseNeedleId(idString string) (NeedleId, error) { func ParseNeedleId(idString string) (NeedleId, error) {
key, err := strconv.ParseUint(idString, 16, 64) key, err := strconv.ParseUint(idString, 10, 64)
if err != nil { if err != nil {
return 0, fmt.Errorf("needle id %s format error: %v", idString, err) return 0, fmt.Errorf("needle id %s format error: %v", idString, err)
} }