RemoveNodeOverNetwork sends a request to remove the given node from given group to a zero server. This operation doesn't necessarily require a zero leader.
(ctx context.Context, req *pb.RemoveNodeRequest)
| 15 | // RemoveNodeOverNetwork sends a request to remove the given node from given group to a zero server. |
| 16 | // This operation doesn't necessarily require a zero leader. |
| 17 | func RemoveNodeOverNetwork(ctx context.Context, req *pb.RemoveNodeRequest) (*pb.Status, error) { |
| 18 | pl := groups().AnyServer(0) |
| 19 | if pl == nil { |
| 20 | return nil, conn.ErrNoConnection |
| 21 | } |
| 22 | |
| 23 | c := pb.NewZeroClient(pl.Get()) |
| 24 | return c.RemoveNode(ctx, req) |
| 25 | } |
| 26 | |
| 27 | // MoveTabletOverNetwork sends a request to move the given tablet to destination group to the |
| 28 | // current zero leader. |
no test coverage detected