Skip to content

Commit

Permalink
GetShard: offset base bugfix
Browse files Browse the repository at this point in the history
  • Loading branch information
Alex Bondar authored and assaf758 committed Mar 18, 2021
1 parent 5cc6f0d commit e03da7d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/dataplane/item.go
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ func (i Item) GetShard() (int, []*ItemChunkData, *ItemChunkMetadata, *ItemCurren
for k, v := range i {
if strings.HasPrefix(k, streamDataPrefix) {
chunkID, _ = strconv.Atoi(k[len(streamDataPrefix):][:4])
offset, _ := strconv.ParseUint(k[len(offsetPrefix):][:16], 10, 64)
offset, _ := strconv.ParseUint(k[len(offsetPrefix):][:16], 16, 64)
data, ok := v.([]byte)
if !ok {
return 0, nil, nil, nil, v3ioerrors.ErrInvalidTypeConversion
Expand Down

0 comments on commit e03da7d

Please sign in to comment.