pgvector.git / summary / log / commit / refs
commit c5dd2af7507bf5dec40b2bce42df945d33195e9f
Author: Andrew Kane <andrew@ankane.org>
Date: Sat Oct 26 04:39:03 2024 +0000
Added comments [skip ci]
src/hnswutils.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/src/hnswutils.c b/src/hnswutils.c
index e84561ea..7afed259 100644
--- a/src/hnswutils.c
+++ b/src/hnswutils.c
@@ -857,6 +857,7 @@ HnswSearchLayer(char *base, HnswQuery * q, List *ep, int ef, int lc, Relation in
{
AddToVisited(base, v, sc->element, inMemory, &found);
+ /* OK to count elements instead of tuples */
if (tuples != NULL)
(*tuples)++;
}
@@ -889,6 +890,7 @@ HnswSearchLayer(char *base, HnswQuery * q, List *ep, int ef, int lc, Relation in
else
HnswLoadUnvisitedFromDisk(cElement, unvisited, &unvisitedLength, v, index, m, lm, lc);
+ /* OK to count elements instead of tuples */
if (tuples != NULL)
(*tuples) += unvisitedLength;
[parent: 78b877bdaf3a]