Skip to content

Commit

Permalink
[inclusive naming] switch to new tmc rpcs
Browse files Browse the repository at this point in the history
Signed-off-by: Andrew Mason <[email protected]>
Signed-off-by: Vilius Okockis <[email protected]>
  • Loading branch information
ajm188 authored and DeathBorn committed Apr 12, 2024
1 parent a934a51 commit b7a666b
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions go/vt/wrangler/vdiff_env_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -335,7 +335,12 @@ func (tmc *testVDiffTMClient) VReplicationWaitForPos(ctx context.Context, tablet
return nil
}

// TODO(deepthi): remove this after v12.0
func (tmc *testVDiffTMClient) MasterPosition(ctx context.Context, tablet *topodatapb.Tablet) (string, error) {
return tmc.PrimaryPosition(ctx, tablet)
}

func (tmc *testVDiffTMClient) PrimaryPosition(ctx context.Context, tablet *topodatapb.Tablet) (string, error) {
pos, ok := tmc.pos[int(tablet.Alias.Uid)]
if !ok {
return "", fmt.Errorf("no master position for %d", tablet.Alias.Uid)
Expand Down

0 comments on commit b7a666b

Please sign in to comment.