MoveTabletOverNetwork sends a request to move the given tablet to destination group to the current zero leader.
(ctx context.Context, req *pb.MoveTabletRequest)
| 27 | // MoveTabletOverNetwork sends a request to move the given tablet to destination group to the |
| 28 | // current zero leader. |
| 29 | func MoveTabletOverNetwork(ctx context.Context, req *pb.MoveTabletRequest) (*pb.Status, error) { |
| 30 | pl := groups().Leader(0) |
| 31 | if pl == nil { |
| 32 | return nil, conn.ErrNoConnection |
| 33 | } |
| 34 | |
| 35 | c := pb.NewZeroClient(pl.Get()) |
| 36 | return c.MoveTablet(ctx, req) |
| 37 | } |
no test coverage detected