Skip to content

Commit

Permalink
fix(blooms): Fix tenants slice on loadTenantTables (backport k227) (#…
Browse files Browse the repository at this point in the history
…14901)

Co-authored-by: Salva Corts <salva.corts@grafana.com>
  • Loading branch information
loki-gh-app[bot] and salvacorts authored Nov 13, 2024
1 parent 631cff3 commit 540dd5a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/bloombuild/planner/planner.go
Original file line number Diff line number Diff line change
Expand Up @@ -659,7 +659,7 @@ func (p *Planner) loadTenantTables(

// If this is the first this we see this table, initialize the map
if tenantTables[table] == nil {
tenantTables[table] = make([]string, tenants.Remaining())
tenantTables[table] = make([]string, 0, tenants.Remaining())
}

for tenants.Next() && tenants.Err() == nil && ctx.Err() == nil {
Expand Down

0 comments on commit 540dd5a

Please sign in to comment.