From 21b4c233a7d7887913eddb083e9c21f61574428d Mon Sep 17 00:00:00 2001 From: Matt Lord Date: Tue, 19 Mar 2024 14:20:57 -0400 Subject: [PATCH] Only add workflow include filter when a workflow is provided Signed-off-by: Matt Lord --- go/vt/vtctl/workflow/server.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/go/vt/vtctl/workflow/server.go b/go/vt/vtctl/workflow/server.go index 33d2a9869ab..f63fb69dea7 100644 --- a/go/vt/vtctl/workflow/server.go +++ b/go/vt/vtctl/workflow/server.go @@ -383,8 +383,9 @@ func (s *Server) GetWorkflows(ctx context.Context, req *vtctldatapb.GetWorkflows span.Annotate("include_logs", req.IncludeLogs) span.Annotate("shards", req.Shards) - readReq := &tabletmanagerdatapb.ReadVReplicationWorkflowsRequest{ - IncludeWorkflows: []string{req.Workflow}, + readReq := &tabletmanagerdatapb.ReadVReplicationWorkflowsRequest{} + if req.Workflow != "" { + readReq.IncludeWorkflows = []string{req.Workflow} } if req.ActiveOnly { readReq.ExcludeStates = []binlogdatapb.VReplicationWorkflowState{binlogdatapb.VReplicationWorkflowState_Stopped}