executor: exclude tiproxy advertise addr from inspection result (#63841)

close pingcap/tidb#63840
This commit is contained in:
Daniël van Eeden
2025-10-06 23:18:09 +02:00
committed by GitHub
parent bfdd3986c7
commit df9683a25a

View File

@ -254,6 +254,9 @@ func (configInspection) inspectDiffConfig(ctx context.Context, sctx sessionctx.C
"raftstore.raftdb-path",
"storage.data-dir",
"storage.block-cache.capacity",
// TiProxy
"proxy.advertise-addr",
}
exec := sctx.GetRestrictedSQLExecutor()
rows, _, err := exec.ExecRestrictedSQL(ctx, nil, "select type, `key`, count(distinct value) as c from information_schema.cluster_config where `key` not in (%?) group by type, `key` having c > 1", ignoreConfigKey)