pgvector.git / summary / log / commit / refs
commit d148b4e61b4c2464c66a13ac8bb0f2583524a22e
Author: Andrew Kane <andrew@ankane.org>
Date: Mon Sep 30 16:59:12 2024 +0000
Fixed insert logic
src/hnswinsert.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/hnswinsert.c b/src/hnswinsert.c
index 3d73f2a2..8e3a27cb 100644
--- a/src/hnswinsert.c
+++ b/src/hnswinsert.c
@@ -452,7 +452,7 @@ HnswUpdateNeighborsOnDisk(Relation index, FmgrInfo *procinfo, Oid collation, Hns
*/
/* Select neighbors */
- if (neighbors->length < lm)
+ if (neighborNeighbors->length < lm)
idx = -2;
else
{
[parent: 658d74e2f6e4]