mirror of
https://github.com/pgvector/pgvector.git
synced 2026-07-11 15:16:54 +08:00
Added comment [skip ci]
This commit is contained in:
@@ -230,6 +230,8 @@ WriteNewElementPages(Relation index, HnswElement e, int m, BlockNumber insertPag
|
|||||||
e->blkno = BufferGetBlockNumber(buf);
|
e->blkno = BufferGetBlockNumber(buf);
|
||||||
e->neighborPage = BufferGetBlockNumber(nbuf);
|
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))
|
if (!BlockNumberIsValid(newInsertPage))
|
||||||
newInsertPage = e->neighborPage;
|
newInsertPage = e->neighborPage;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user