Skip to content

Commit c5dd2af

Browse files
committed
Added comments [skip ci]
1 parent 78b877b commit c5dd2af

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/hnswutils.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -857,6 +857,7 @@ HnswSearchLayer(char *base, HnswQuery * q, List *ep, int ef, int lc, Relation in
857857
{
858858
AddToVisited(base, v, sc->element, inMemory, &found);
859859

860+
/* OK to count elements instead of tuples */
860861
if (tuples != NULL)
861862
(*tuples)++;
862863
}
@@ -889,6 +890,7 @@ HnswSearchLayer(char *base, HnswQuery * q, List *ep, int ef, int lc, Relation in
889890
else
890891
HnswLoadUnvisitedFromDisk(cElement, unvisited, &unvisitedLength, v, index, m, lm, lc);
891892

893+
/* OK to count elements instead of tuples */
892894
if (tuples != NULL)
893895
(*tuples) += unvisitedLength;
894896

0 commit comments

Comments
 (0)