Skip to content

Commit 46f1def

Browse files
authored
use dry-run switcher in switchreads (#91)
Signed-off-by: Austen Lacy <[email protected]> Co-authored-by: Austen Lacy <[email protected]>
1 parent f389903 commit 46f1def

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

go/vt/wrangler/traffic_switcher.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -397,7 +397,7 @@ func (wr *Wrangler) SwitchReads(ctx context.Context, targetKeyspace, workflowNam
397397
return sw.logs(), nil
398398
}
399399
wr.Logger().Infof("About to switchShardReads: %+v, %+v, %+v", cells, servedTypes, direction)
400-
if err := ts.switchShardReads(ctx, cells, servedTypes, direction); err != nil {
400+
if err := sw.switchShardReads(ctx, cells, servedTypes, direction); err != nil {
401401
ts.Logger().Errorf("switchShardReads failed: %v", err)
402402
return nil, err
403403
}

0 commit comments

Comments
 (0)