From 364927b95f5f50609d48e9bc67ac4ff88730f8aa Mon Sep 17 00:00:00 2001 From: Harshit Gangal Date: Wed, 23 Oct 2024 18:52:15 +0530 Subject: [PATCH] removed QueryEnginePlanCacheCapacity from list as it cannot be modified, changed pool names Signed-off-by: Harshit Gangal --- go/vt/vttablet/tabletserver/debugenv.go | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/go/vt/vttablet/tabletserver/debugenv.go b/go/vt/vttablet/tabletserver/debugenv.go index 8aebb6d2e11..c897c3d9714 100644 --- a/go/vt/vttablet/tabletserver/debugenv.go +++ b/go/vt/vttablet/tabletserver/debugenv.go @@ -144,11 +144,11 @@ func handlePost(tsv *TabletServer, w http.ResponseWriter, r *http.Request) { var err error switch varname { - case "PoolSize": + case "ReadPoolSize": err = setIntValCtx(tsv.SetPoolSize) case "StreamPoolSize": err = setIntValCtx(tsv.SetStreamPoolSize) - case "TxPoolSize": + case "TransactionPoolSize": err = setIntValCtx(tsv.SetTxPoolSize) case "MaxResultSize": err = setIntVal(tsv.SetMaxResultSize) @@ -177,10 +177,9 @@ func handlePost(tsv *TabletServer, w http.ResponseWriter, r *http.Request) { func handleGet(tsv *TabletServer, w http.ResponseWriter, r *http.Request) { var vars []envValue - vars = addVar(vars, "PoolSize", tsv.PoolSize) + vars = addVar(vars, "ReadPoolSize", tsv.PoolSize) vars = addVar(vars, "StreamPoolSize", tsv.StreamPoolSize) - vars = addVar(vars, "TxPoolSize", tsv.TxPoolSize) - vars = addVar(vars, "QueryEnginePlanCacheCapacity", tsv.QueryPlanCacheCap) + vars = addVar(vars, "TransactionPoolSize", tsv.TxPoolSize) vars = addVar(vars, "MaxResultSize", tsv.MaxResultSize) vars = addVar(vars, "WarnResultSize", tsv.WarnResultSize) vars = addVar(vars, "RowStreamerMaxInnoDBTrxHistLen", func() int64 { return tsv.Config().RowStreamer.MaxInnoDBTrxHistLen })