Skip to content
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,10 @@ func registerReshardCommands(root *cobra.Command) {
reshard.AddCommand(reverseTrafficCommand)

reshard.AddCommand(common.GetCompleteCommand(opts))
reshard.AddCommand(common.GetCancelCommand(opts))

cancel := common.GetCancelCommand(opts)
cancel.Flags().BoolVar(&common.CancelOptions.KeepData, "keep-data", false, "Keep the partially copied table data from the Reshard workflow in the target shards.")
reshard.AddCommand(cancel)
}

func init() {
Expand Down
2 changes: 1 addition & 1 deletion go/vt/vtctl/workflow/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -1990,7 +1990,7 @@ func (s *Server) dropTargets(ctx context.Context, ts *trafficSwitcher, keepData,
return nil, err
}
case binlogdatapb.MigrationType_SHARDS:
if err := sw.dropTargetShards(ctx); err != nil {
if err := sw.removeTargetTables(ctx); err != nil {
Comment thread
arthurschreiber marked this conversation as resolved.
return nil, err
}
}
Expand Down