Skip to content

Commit

Permalink
storage: remove use of TODOSQLCodec in RowCounter.Count
Browse files Browse the repository at this point in the history
  • Loading branch information
nvanbenschoten committed Apr 29, 2020
1 parent 5b9102a commit 493fc81
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion pkg/storage/row_counter.go
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,11 @@ func (r *RowCounter) Count(key roachpb.Key) error {

r.prev = append(r.prev[:0], row...)

_, tableID, indexID, err := keys.TODOSQLCodec.DecodeIndexPrefix(row)
rem, _, err := keys.DecodeTenantPrefix(row)
if err != nil {
return err
}
_, tableID, indexID, err := keys.DecodeTableIDIndexID(rem)
if err != nil {
return err
}
Expand Down

0 comments on commit 493fc81

Please sign in to comment.