Skip to content

Commit

Permalink
fix(blooms): Fix tenants slice on loadTenantTables (#14900)
Browse files Browse the repository at this point in the history
  • Loading branch information
salvacorts authored Nov 13, 2024
1 parent ee1ab5c commit a8f7851
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 @@ -654,7 +654,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 a8f7851

Please sign in to comment.