Skip to content

Commit 4c9061b

Browse files
committed
chore: make Prefer_ordering_index=on default value for optimizer_switch
1 parent 4fa7c86 commit 4c9061b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

go/cmd/gh-ost/main.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ func main() {
139139
criticalLoad := flag.String("critical-load", "", "Comma delimited status-name=threshold, same format as --max-load. When status exceeds threshold, app panics and quits")
140140
flag.Int64Var(&migrationContext.CriticalLoadIntervalMilliseconds, "critical-load-interval-millis", 0, "When 0, migration immediately bails out upon meeting critical-load. When non-zero, a second check is done after given interval, and migration only bails out if 2nd check still meets critical load")
141141
flag.Int64Var(&migrationContext.CriticalLoadHibernateSeconds, "critical-load-hibernate-seconds", 0, "When non-zero, critical-load does not panic and bail out; instead, gh-ost goes into hibernation for the specified duration. It will not read/write anything from/to any server")
142-
flag.StringVar(&migrationContext.OptimizerSwitch, "optimizer-switch", "", "Optimizer switch params, eg: prefer_ordering_index=on")
142+
flag.StringVar(&migrationContext.OptimizerSwitch, "optimizer-switch", "prefer_ordering_index=on", "optimizer_switch param")
143143
quiet := flag.Bool("quiet", false, "quiet")
144144
verbose := flag.Bool("verbose", false, "verbose")
145145
debug := flag.Bool("debug", false, "debug mode (very verbose)")

0 commit comments

Comments
 (0)