mirror of
https://github.com/pgvector/pgvector.git
synced 2026-06-30 01:31:15 +08:00
Use neighbor page for insert page [skip ci]
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user