diff --git a/go/vt/vtctl/reparentutil/emergency_reparenter.go b/go/vt/vtctl/reparentutil/emergency_reparenter.go index a8d71186b30..a744012982a 100644 --- a/go/vt/vtctl/reparentutil/emergency_reparenter.go +++ b/go/vt/vtctl/reparentutil/emergency_reparenter.go @@ -499,7 +499,7 @@ func (erp *EmergencyReparenter) reparentReplicas( ) replCtx, replCancel := context.WithTimeout(context.Background(), opts.WaitReplicasTimeout) - primaryCtx, primaryCancel := context.WithTimeout(context.Background(), topo.RemoteOperationTimeout) + primaryCtx, primaryCancel := context.WithTimeout(ctx, topo.RemoteOperationTimeout) defer primaryCancel() event.DispatchUpdate(ev, "reparenting all tablets")