MCPcopy
hub / github.com/etcd-io/etcd / MoveLeader

Method MoveLeader

client/v3/maintenance.go:84–84  ·  view source on GitHub ↗

MoveLeader requests current leader to transfer its leadership to the transferee. Request must be made to the leader.

(ctx context.Context, transfereeID uint64)

Source from the content-addressed store, hash-verified

82 // MoveLeader requests current leader to transfer its leadership to the transferee.
83 // Request must be made to the leader.
84 MoveLeader(ctx context.Context, transfereeID uint64) (*MoveLeaderResponse, error)
85
86 // Downgrade requests downgrades, verifies feasibility or cancels downgrade
87 // on the cluster version.

Callers 11

MoveLeaderMethod · 0.65
MoveLeaderMethod · 0.65
testMoveLeaderFunction · 0.65
TestMoveLeaderErrorFunction · 0.65
TestConcurrentMoveLeaderFunction · 0.65
StartEtcdProcessClusterFunction · 0.65
MoveLeaderMethod · 0.65

Implementers 2

mockMaintenanceclient/v3/client_test.go
maintenanceclient/v3/maintenance.go

Calls

no outgoing calls

Tested by 7

testMoveLeaderFunction · 0.52
TestMoveLeaderErrorFunction · 0.52
TestConcurrentMoveLeaderFunction · 0.52