pgvector.git / summary / log / commit / refs
commit 33438c3cf978ef93326a4eb3e19b7cf947a8bbbb
Author: Andrew Kane <andrew@ankane.org>
Date: Fri Aug 11 16:51:41 2023 +0000
Use neighbor page for insert page [skip ci]
src/hnswvacuum.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/hnswvacuum.c b/src/hnswvacuum.c
index b9f7aa0d..33f2f64a 100644
--- a/src/hnswvacuum.c
+++ b/src/hnswvacuum.c
@@ -416,7 +416,7 @@ MarkDeleted(HnswVacuumState * vacuumstate)
{
/* Set to first free page */
if (!BlockNumberIsValid(insertPage))
- insertPage = blkno;
+ insertPage = ItemPointerGetBlockNumber(&etup->neighbortid);
continue;
}
@@ -479,7 +479,7 @@ MarkDeleted(HnswVacuumState * vacuumstate)
/* Set to first free page */
if (!BlockNumberIsValid(insertPage))
- insertPage = blkno;
+ insertPage = neighborPage;
/* Prepare new xlog */
state = GenericXLogStart(index);
[parent: 8ec1821f1eb8]