Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
Signed-off-by: Florent Poinsard <[email protected]>
  • Loading branch information
frouioui committed Jul 19, 2024
1 parent efd8292 commit 61c01de
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions go/vt/vtgate/plugin_mysql_server.go
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,7 @@ var (
mysqlDrainOnTerm bool

mysqlServerFlushDelay = 100 * time.Millisecond
t bool
)

func registerPluginFlags(fs *pflag.FlagSet) {
Expand All @@ -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.
Expand Down

0 comments on commit 61c01de

Please sign in to comment.