From 61c01de359f7c47bde2f23665dd0056a39a2039a Mon Sep 17 00:00:00 2001 From: Florent Poinsard Date: Fri, 19 Jul 2024 14:33:56 -0600 Subject: [PATCH] wip Signed-off-by: Florent Poinsard --- go/vt/vtgate/plugin_mysql_server.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/go/vt/vtgate/plugin_mysql_server.go b/go/vt/vtgate/plugin_mysql_server.go index 4004ae24566..74ac45f6c0e 100644 --- a/go/vt/vtgate/plugin_mysql_server.go +++ b/go/vt/vtgate/plugin_mysql_server.go @@ -78,6 +78,7 @@ var ( mysqlDrainOnTerm bool mysqlServerFlushDelay = 100 * time.Millisecond + t bool ) func registerPluginFlags(fs *pflag.FlagSet) { @@ -104,6 +105,7 @@ func registerPluginFlags(fs *pflag.FlagSet) { fs.DurationVar(&mysqlServerFlushDelay, "mysql_server_flush_delay", mysqlServerFlushDelay, "Delay after which buffered response will be flushed to the client.") fs.StringVar(&mysqlDefaultWorkloadName, "mysql_default_workload", mysqlDefaultWorkloadName, "Default session workload (OLTP, OLAP, DBA)") fs.BoolVar(&mysqlDrainOnTerm, "mysql-server-drain-onterm", mysqlDrainOnTerm, "If set, the server waits for --onterm_timeout for already connected clients to complete their in flight work") + fs.BoolVar(&t, "new-flag-test", t, "This is a test of a new VTGate flag.") } // vtgateHandler implements the Listener interface.