chore(unified-storage): update default pruner history limit (#102799)

This commit is contained in:
Mustafa Sencer Özcan
2025-03-25 17:00:12 +02:00
committed by GitHub
parent d3468105d7
commit 65d474bfa4
+2 -1
View File
@@ -27,6 +27,7 @@ import (
const tracePrefix = "sql.resource."
const defaultPollingInterval = 100 * time.Millisecond
const defaultWatchBufferSize = 100 // number of events to buffer in the watch stream
const defaultPrunerHistoryLimit = 20
type Backend interface {
resource.StorageBackend
@@ -211,7 +212,7 @@ func (b *backend) initPruner(ctx context.Context) error {
return b.db.WithTx(ctx, ReadCommitted, func(ctx context.Context, tx db.Tx) error {
res, err := dbutil.Exec(ctx, tx, sqlResourceHistoryPrune, &sqlPruneHistoryRequest{
SQLTemplate: sqltemplate.New(b.dialect),
HistoryLimit: 100,
HistoryLimit: defaultPrunerHistoryLimit,
Key: &resource.ResourceKey{
Namespace: key.namespace,
Group: key.group,