mirror of
https://github.com/pgvector/pgvector.git
synced 2026-07-10 06:40:57 +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 */
|
/* 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);
|
||||||
|
|||||||
Reference in New Issue
Block a user