8000 Fixed insert logic · postgrespro/pgvector@d148b4e · GitHub
[go: up one dir, main page]

Skip to content

Commit d148b4e

Browse files
committed
Fixed insert logic
1 parent 658d74e commit d148b4e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/hnswinsert.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -452,7 +452,7 @@ HnswUpdateNeighborsOnDisk(Relation index, FmgrInfo *procinfo, Oid collation, Hns
452452
*/
453453

454454
/* Select neighbors */
455-
if (neighbors->length < lm)
455+
if (neighborNeighbors->length < lm)
456456
idx = -2;
457457
else
458458
{

0 commit comments

Comments
 (0)
0