Skip to content

Commit

Permalink
Fix handling of default onddl
Browse files Browse the repository at this point in the history
Signed-off-by: Matt Lord <[email protected]>
  • Loading branch information
mattlord committed Sep 9, 2024
1 parent 6323ffa commit 347fbc1
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion go/vt/vtctl/workflow/materializer.go
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,10 @@ func (mz *materializer) generateBinlogSources(ctx context.Context, targetShard *
ExternalCluster: mz.ms.ExternalCluster,
SourceTimeZone: mz.ms.SourceTimeZone,
TargetTimeZone: mz.ms.TargetTimeZone,
OnDdl: binlogdatapb.OnDDLAction(binlogdatapb.OnDDLAction_value[mz.ms.OnDdl]),
}
// If no valid value is found, the default for on_ddl is implicitly "IGNORE".
if val, ok := binlogdatapb.OnDDLAction_value[strings.ToUpper(mz.ms.OnDdl)]; ok {
bls.OnDdl = binlogdatapb.OnDDLAction(val)
}

var tenantClause *sqlparser.Expr
Expand Down

0 comments on commit 347fbc1

Please sign in to comment.