From 74b1380c388e58adef76eb905039a5f3b1eca84f Mon Sep 17 00:00:00 2001 From: Max Englander Date: Sat, 14 Oct 2023 02:43:02 +0100 Subject: [PATCH] go/vt/wrangler: add len(qr.Rows) check to no streams found log msg (#14062) Signed-off-by: Max Englander --- go/vt/wrangler/vexec_plan.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/go/vt/wrangler/vexec_plan.go b/go/vt/wrangler/vexec_plan.go index ff17a6af376..5b68d9ada5f 100644 --- a/go/vt/wrangler/vexec_plan.go +++ b/go/vt/wrangler/vexec_plan.go @@ -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