Skip to content

Commit

Permalink
fix SchemaCacheConfig.DefaultExpiration (#17609)
Browse files Browse the repository at this point in the history
Signed-off-by: Matthias Crauwels <[email protected]>
  • Loading branch information
mcrauwel authored Jan 22, 2025
1 parent 5363f03 commit 99856a2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions go/vt/vtadmin/cluster/cluster.go
Original file line number Diff line number Diff line change
Expand Up @@ -1443,7 +1443,7 @@ func (c *Cluster) GetSchema(ctx context.Context, keyspace string, opts GetSchema
return nil, err
}

go schemacache.AddOrBackfill(c.schemaCache, []*vtadminpb.Schema{schema}, key, cache.DefaultExpiration, schemacache.LoadOptions{
go schemacache.AddOrBackfill(c.schemaCache, []*vtadminpb.Schema{schema}, key, c.cfg.SchemaCacheConfig.DefaultExpiration, schemacache.LoadOptions{
BaseRequest: opts.BaseRequest,
AggregateSizes: opts.TableSizeOptions.AggregateSizes,
})
Expand Down Expand Up @@ -1604,7 +1604,7 @@ func (c *Cluster) GetSchemas(ctx context.Context, opts GetSchemaOptions) ([]*vta
return nil, rec.Error()
}

go schemacache.AddOrBackfill(c.schemaCache, schemas, key, cache.DefaultExpiration, schemacache.LoadOptions{
go schemacache.AddOrBackfill(c.schemaCache, schemas, key, c.cfg.SchemaCacheConfig.DefaultExpiration, schemacache.LoadOptions{
BaseRequest: opts.BaseRequest,
AggregateSizes: opts.TableSizeOptions.AggregateSizes,
})
Expand Down

0 comments on commit 99856a2

Please sign in to comment.