Skip to content

Commit 229db8f

Browse files
committed
fix SchemaCacheConfig.DefaultExpiration fix #17608
Signed-off-by: Matthias Crauwels <matthias.crauwels@planetscale.com>
1 parent 5363f03 commit 229db8f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

go/vt/vtadmin/cluster/cluster.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1443,7 +1443,7 @@ func (c *Cluster) GetSchema(ctx context.Context, keyspace string, opts GetSchema
14431443
return nil, err
14441444
}
14451445

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

1607-
go schemacache.AddOrBackfill(c.schemaCache, schemas, key, cache.DefaultExpiration, schemacache.LoadOptions{
1607+
go schemacache.AddOrBackfill(c.schemaCache, schemas, key, c.cfg.SchemaCacheConfig.DefaultExpiration, schemacache.LoadOptions{
16081608
BaseRequest: opts.BaseRequest,
16091609
AggregateSizes: opts.TableSizeOptions.AggregateSizes,
16101610
})

0 commit comments

Comments
 (0)