Skip to content

Commit

Permalink
cellsPerRowOffsetFilter does not allow 0... (#1699)
Browse files Browse the repository at this point in the history
  • Loading branch information
manuelsc authored Nov 30, 2022
1 parent b446010 commit 8bb5a72
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions db/bigtable.go
Original file line number Diff line number Diff line change
Expand Up @@ -233,6 +233,9 @@ func getMachineMetrics[T types.MachineMetricSystem | types.MachineMetricNode | t

rangePrefix := fmt.Sprintf("u:%s:p:%s:m:", reversePaddedUserID(userID), process)
res := make([]*T, 0)
if offset <= 0 {
offset = 1
}

filter := gcp_bigtable.ChainFilters(
gcp_bigtable.FamilyFilter(MACHINE_METRICS_COLUMN_FAMILY),
Expand Down

0 comments on commit 8bb5a72

Please sign in to comment.