From c42cb7552e0e983a314d7662c9793fd55e977830 Mon Sep 17 00:00:00 2001 From: Andrew Mason Date: Fri, 18 Aug 2023 10:20:05 -0400 Subject: [PATCH] Fix `BackupShard` to get its options from its own flags (#13813) Signed-off-by: Andrew Mason --- go/cmd/vtctldclient/command/backups.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/go/cmd/vtctldclient/command/backups.go b/go/cmd/vtctldclient/command/backups.go index 53aac5b51bb..c427a88f1df 100644 --- a/go/cmd/vtctldclient/command/backups.go +++ b/go/cmd/vtctldclient/command/backups.go @@ -129,8 +129,8 @@ func commandBackupShard(cmd *cobra.Command, args []string) error { stream, err := client.BackupShard(commandCtx, &vtctldatapb.BackupShardRequest{ Keyspace: keyspace, Shard: shard, - AllowPrimary: backupOptions.AllowPrimary, - Concurrency: backupOptions.Concurrency, + AllowPrimary: backupShardOptions.AllowPrimary, + Concurrency: backupShardOptions.Concurrency, }) if err != nil { return err