From 892c15b6cb3450f39afea08fe5039c9dbc747310 Mon Sep 17 00:00:00 2001 From: Harshit Gangal Date: Thu, 18 Apr 2024 16:19:31 +0530 Subject: [PATCH] fix: use correct flag field for udf tracking Signed-off-by: Harshit Gangal --- go/vt/vtgate/vtgate.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/go/vt/vtgate/vtgate.go b/go/vt/vtgate/vtgate.go index d7b28d47226..8f8aa8b0061 100644 --- a/go/vt/vtgate/vtgate.go +++ b/go/vt/vtgate/vtgate.go @@ -149,7 +149,7 @@ func registerFlags(fs *pflag.FlagSet) { fs.IntVar(&queryLogBufferSize, "querylog-buffer-size", queryLogBufferSize, "Maximum number of buffered query logs before throttling log output") fs.DurationVar(&messageStreamGracePeriod, "message_stream_grace_period", messageStreamGracePeriod, "the amount of time to give for a vttablet to resume if it ends a message stream, usually because of a reparent.") fs.BoolVar(&enableViews, "enable-views", enableViews, "Enable views support in vtgate.") - fs.BoolVar(&enableViews, "track-udfs", enableUdfs, "Track UDFs in vtgate.") + fs.BoolVar(&enableUdfs, "track-udfs", enableUdfs, "Track UDFs in vtgate.") fs.BoolVar(&allowKillStmt, "allow-kill-statement", allowKillStmt, "Allows the execution of kill statement") fs.IntVar(&warmingReadsPercent, "warming-reads-percent", 0, "Percentage of reads on the primary to forward to replicas. Useful for keeping buffer pools warm") fs.IntVar(&warmingReadsConcurrency, "warming-reads-concurrency", 500, "Number of concurrent warming reads allowed")