Use neighbor page for insert page [skip ci]

This commit is contained in:
Andrew Kane
2023-08-11 09:51:41 -07:00
parent 8ec1821f1e
commit 33438c3cf9

View File

@@ -416,7 +416,7 @@ MarkDeleted(HnswVacuumState * vacuumstate)
{ {
/* Set to first free page */ /* Set to first free page */
if (!BlockNumberIsValid(insertPage)) if (!BlockNumberIsValid(insertPage))
insertPage = blkno; insertPage = ItemPointerGetBlockNumber(&etup->neighbortid);
continue; continue;
} }
@@ -479,7 +479,7 @@ MarkDeleted(HnswVacuumState * vacuumstate)
/* Set to first free page */ /* Set to first free page */
if (!BlockNumberIsValid(insertPage)) if (!BlockNumberIsValid(insertPage))
insertPage = blkno; insertPage = neighborPage;
/* Prepare new xlog */ /* Prepare new xlog */
state = GenericXLogStart(index); state = GenericXLogStart(index);