You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: go/cmd/vtcombo/main.go
+23-8Lines changed: 23 additions & 8 deletions
Original file line number
Diff line number
Diff line change
@@ -41,6 +41,7 @@ import (
41
41
"vitess.io/vitess/go/vt/srvtopo"
42
42
"vitess.io/vitess/go/vt/topo"
43
43
"vitess.io/vitess/go/vt/topo/memorytopo"
44
+
"vitess.io/vitess/go/vt/topo/topoproto"
44
45
"vitess.io/vitess/go/vt/topotools"
45
46
"vitess.io/vitess/go/vt/vtcombo"
46
47
"vitess.io/vitess/go/vt/vtctld"
@@ -63,15 +64,18 @@ var (
63
64
"If true, vtcombo will use the flags defined in topo/server.go to open topo server")
64
65
plannerName=flags.String("planner-version", "", "Sets the default planner to use when the session has not changed it. Valid values are: V3, V3Insert, Gen4, Gen4Greedy and Gen4Fallback. Gen4Fallback tries the gen4 planner and falls back to the V3 planner if the gen4 fails.")
65
66
66
-
tpb vttestpb.VTTestTopology
67
-
ts*topo.Server
68
-
resilientServer*srvtopo.ResilientServer
67
+
tpb vttestpb.VTTestTopology
68
+
ts*topo.Server
69
+
resilientServer*srvtopo.ResilientServer
70
+
tabletTypesToWait []topodatapb.TabletType
69
71
)
70
72
71
73
funcinit() {
72
74
flags.Var(vttest.TextTopoData(&tpb), "proto_topo", "vttest proto definition of the topology, encoded in compact text format. See vttest.proto for more information.")
73
75
flags.Var(vttest.JSONTopoData(&tpb), "json_topo", "vttest proto definition of the topology, encoded in json format. See vttest.proto for more information.")
74
76
77
+
flags.Var((*topoproto.TabletTypeListFlag)(&tabletTypesToWait), "tablet_types_to_wait", "Wait till connected for specified tablet types during Gateway initialization. Should be provided as a comma-separated set of tablet types.")
0 commit comments