Improved logic for updating HNSW insert page

This commit is contained in:
Andrew Kane
2023-08-11 13:24:56 -07:00
parent daef83a112
commit ae5de26893
2 changed files with 20 additions and 12 deletions

View File

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