Skip to content

Commit

Permalink
go/vt/wrangler: add len(qr.Rows) check to no streams found log msg (#…
Browse files Browse the repository at this point in the history
…14062)

Signed-off-by: Max Englander <[email protected]>
  • Loading branch information
maxenglander authored Oct 14, 2023
1 parent 1f1d731 commit 74b1380
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion go/vt/wrangler/vexec_plan.go
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ func (p vreplicationPlanner) exec(
if err != nil {
return nil, err
}
if qr.RowsAffected == 0 {
if qr.RowsAffected == 0 && len(qr.Rows) == 0 {
log.Infof("no matching streams found for workflow %s, tablet %s, query %s", p.vx.workflow, primaryAlias, query)
}
return qr, nil
Expand Down

0 comments on commit 74b1380

Please sign in to comment.