pgvector.git / summary / log / commit / refs
commit 34e99593ab8e069671be56c2d4b2984b7d1d67bb
Author: Andrew Kane <andrew@ankane.org>
Date: Sat Aug 12 00:02:50 2023 +0000
Added comment [skip ci]
src/hnswinsert.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/src/hnswinsert.c b/src/hnswinsert.c
index 7d55df0c..90f944ad 100644
--- a/src/hnswinsert.c
+++ b/src/hnswinsert.c
@@ -230,6 +230,8 @@ WriteNewElementPages(Relation index, HnswElement e, int m, BlockNumber insertPag
e->blkno = BufferGetBlockNumber(buf);
e->neighborPage = BufferGetBlockNumber(nbuf);
+ /* Added tuple to new page if newInsertPage is not set */
+ /* So can set to neighbor page instead of element page */
if (!BlockNumberIsValid(newInsertPage))
newInsertPage = e->neighborPage;
[parent: fc45231ef053]