Skip to content

Commit 46a01df

Browse files
Expose --keep-data flag on Reshard Cancel command.
Signed-off-by: Arthur Schreiber <[email protected]>
1 parent c7b03d0 commit 46a01df

File tree

1 file changed

+4
-1
lines changed
  • go/cmd/vtctldclient/command/vreplication/reshard

1 file changed

+4
-1
lines changed

go/cmd/vtctldclient/command/vreplication/reshard/reshard.go

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,10 @@ func registerReshardCommands(root *cobra.Command) {
5757
reshard.AddCommand(reverseTrafficCommand)
5858

5959
reshard.AddCommand(common.GetCompleteCommand(opts))
60-
reshard.AddCommand(common.GetCancelCommand(opts))
60+
61+
cancel := common.GetCancelCommand(opts)
62+
cancel.Flags().BoolVar(&common.CancelOptions.KeepData, "keep-data", false, "Keep the partially copied table data from the Reshard workflow in the target shards.")
63+
reshard.AddCommand(cancel)
6164
}
6265

6366
func init() {

0 commit comments

Comments
 (0)