Skip to content

Commit

Permalink
Replace one more unsafe predicate usage and fix unit tests
Browse files Browse the repository at this point in the history
Signed-off-by: Matt Lord <mattalord@gmail.com>
  • Loading branch information
mattlord committed Dec 18, 2023
1 parent 0507f64 commit 385e9fe
Show file tree
Hide file tree
Showing 5 changed files with 74 additions and 74 deletions.
4 changes: 2 additions & 2 deletions go/vt/vtctl/workflow/stream_migrator.go
Original file line number Diff line number Diff line change
Expand Up @@ -199,8 +199,8 @@ func (sm *StreamMigrator) StopStreams(ctx context.Context) ([]string, error) {
/* tablet streams */

func (sm *StreamMigrator) readTabletStreams(ctx context.Context, ti *topo.TabletInfo, constraint string) ([]*VReplicationStream, error) {
query := fmt.Sprintf("select id, workflow, source, pos, workflow_type, workflow_sub_type, defer_secondary_keys from _vt.vreplication where db_name=%s and workflow != %s",
encodeString(ti.DbName()), encodeString(sm.ts.ReverseWorkflowName()))
query := fmt.Sprintf("select id, workflow, source, pos, workflow_type, workflow_sub_type, defer_secondary_keys from _vt.vreplication where db_name=%s and workflow=%s",
encodeString(ti.DbName()), encodeString(sm.ts.WorkflowName()))
if constraint != "" {
query += fmt.Sprintf(" and %s", constraint)
}
Expand Down
Loading

0 comments on commit 385e9fe

Please sign in to comment.