From d148b4e61b4c2464c66a13ac8bb0f2583524a22e Mon Sep 17 00:00:00 2001 From: Andrew Kane Date: Mon, 30 Sep 2024 09:59:12 -0700 Subject: [PATCH] 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 3d73f2a..8e3a27c 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 {