Skip to content

Commit

Permalink
fixing race condition in process subgraph (#7156)
Browse files Browse the repository at this point in the history
  • Loading branch information
aman-bansal authored Dec 17, 2020
1 parent 0a5596d commit 757698f
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion query/query.go
Original file line number Diff line number Diff line change
Expand Up @@ -1961,7 +1961,11 @@ func expandSubgraph(ctx context.Context, sg *SubGraph) ([]*SubGraph, error) {
temp.Params.IsInternal = false
temp.Params.Expand = ""
temp.Params.Facet = &pb.FacetParams{AllKeys: true}
temp.Filters = child.Filters
for _, cf := range child.Filters {
s := &SubGraph{}
recursiveCopy(s, cf)
temp.Filters = append(temp.Filters, s)
}

// Go through each child, create a copy and attach to temp.Children.
for _, cc := range child.Children {
Expand Down

0 comments on commit 757698f

Please sign in to comment.