We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0c11f64 commit 83baac3Copy full SHA for 83baac3
1 file changed
cmd/client/command/failover.go
@@ -84,6 +84,9 @@ func failoverShard(client *client, options *FailoverOptions, shardIndex int) err
84
SetPathParam("namespace", options.namespace).
85
SetPathParam("cluster", options.cluster).
86
SetPathParam("shard", strconv.Itoa(shardIndex)).
87
+ SetBody(map[string]interface{}{
88
+ "preferred_node_id": options.preferred,
89
+ }).
90
Post("/namespaces/{namespace}/clusters/{cluster}/shards/{shard}/failover")
91
if err != nil {
92
return err
0 commit comments