Skip to content

Commit 83baac3

Browse files
committed
failover command previous gave EOF
1 parent 0c11f64 commit 83baac3

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

cmd/client/command/failover.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,9 @@ func failoverShard(client *client, options *FailoverOptions, shardIndex int) err
8484
SetPathParam("namespace", options.namespace).
8585
SetPathParam("cluster", options.cluster).
8686
SetPathParam("shard", strconv.Itoa(shardIndex)).
87+
SetBody(map[string]interface{}{
88+
"preferred_node_id": options.preferred,
89+
}).
8790
Post("/namespaces/{namespace}/clusters/{cluster}/shards/{shard}/failover")
8891
if err != nil {
8992
return err

0 commit comments

Comments
 (0)