Skip to content

Commit 8b024c4

Browse files
Remove flag
Signed-off-by: Rohit Nayak <[email protected]>
1 parent b145017 commit 8b024c4

File tree

2 files changed

+1
-6
lines changed

2 files changed

+1
-6
lines changed

go/vt/vtgate/vschema_manager.go

+1-3
Original file line numberDiff line numberDiff line change
@@ -197,9 +197,7 @@ func (vm *VSchemaManager) buildAndEnhanceVSchema(v *vschemapb.SrvVSchema) *vinde
197197
// Add tables from schema tracking into globally routable tables, if they are not already present.
198198
// We need to skip if already present, to handle the case where MoveTables has switched traffic
199199
// and removed the source vschema but not from the source database because user asked to --keep-data
200-
if MarkUniqueUnshardedTablesAsGlobal {
201-
vindexes.AddAdditionalGlobalTables(v, vschema)
202-
}
200+
vindexes.AddAdditionalGlobalTables(v, vschema)
203201
}
204202
return vschema
205203
}

go/vt/vtgate/vtgate.go

-3
Original file line numberDiff line numberDiff line change
@@ -162,8 +162,6 @@ var (
162162
warmingReadsPercent = 0
163163
warmingReadsQueryTimeout = 5 * time.Second
164164
warmingReadsConcurrency = 500
165-
166-
MarkUniqueUnshardedTablesAsGlobal = true
167165
)
168166

169167
func registerFlags(fs *pflag.FlagSet) {
@@ -202,7 +200,6 @@ func registerFlags(fs *pflag.FlagSet) {
202200
fs.IntVar(&warmingReadsConcurrency, "warming-reads-concurrency", 500, "Number of concurrent warming reads allowed")
203201
fs.DurationVar(&warmingReadsQueryTimeout, "warming-reads-query-timeout", 5*time.Second, "Timeout of warming read queries")
204202

205-
fs.BoolVar(&MarkUniqueUnshardedTablesAsGlobal, "mark_unique_unsharded_tables_as_global", MarkUniqueUnshardedTablesAsGlobal, "Mark unique unsharded tables as global tables")
206203
viperutil.BindFlags(fs,
207204
enableOnlineDDL,
208205
enableDirectDDL,

0 commit comments

Comments
 (0)