Skip to content

Commit

Permalink
fix(serving): only count unskipped pages (#5477)
Browse files Browse the repository at this point in the history
  • Loading branch information
schroederc committed Dec 8, 2022
1 parent f87b41e commit 2dbe878
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion kythe/go/serving/xrefs/xrefs.go
Original file line number Diff line number Diff line change
Expand Up @@ -1007,7 +1007,12 @@ readLoop:
}

c := pageCategory(idx)
c.AddCount(reply, idx, pageSet)
if c == xrefCategoryNone {
continue
}
if wantMoreCrossRefs && !stats.skipPage(idx) {
c.AddCount(reply, idx, pageSet)
}
if c != xrefCategoryIndirection && c != xrefCategoryRelated && !pageSet.Contains(idx) {
continue
}
Expand Down

0 comments on commit 2dbe878

Please sign in to comment.