From 447afa3a82132e03511c84fa5fbd539d4fb17178 Mon Sep 17 00:00:00 2001 From: Rohit Nayak Date: Mon, 13 Jan 2025 09:38:07 +0100 Subject: [PATCH] Fix merge issue in backport Signed-off-by: Rohit Nayak --- go/vt/vtctl/workflow/traffic_switcher.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/go/vt/vtctl/workflow/traffic_switcher.go b/go/vt/vtctl/workflow/traffic_switcher.go index c3327017010..f4d8a13054b 100644 --- a/go/vt/vtctl/workflow/traffic_switcher.go +++ b/go/vt/vtctl/workflow/traffic_switcher.go @@ -1012,7 +1012,7 @@ func (ts *trafficSwitcher) cancelMigration(ctx context.Context, sm *StreamMigrat defer cmCancel() if ts.MigrationType() == binlogdatapb.MigrationType_TABLES { - err = ts.changeTableSourceWrites(ctx, allowWrites) + err = ts.changeTableSourceWrites(cmCtx, allowWrites) } else { err = ts.changeShardsAccess(cmCtx, ts.SourceKeyspaceName(), ts.SourceShards(), allowWrites) }