mirror of
https://github.com/pgvector/pgvector.git
synced 2026-10-23 10:48:54 +03:00
@@ -276,17 +276,11 @@ AddElementOnDisk(Relation index, HnswElement e, int m, BlockNumber *updatedInser
|
||||
break;
|
||||
}
|
||||
|
||||
/* Try another page */
|
||||
if (fsmPage)
|
||||
{
|
||||
/* Try another page if not last page */
|
||||
if (BlockNumberIsValid(HnswPageGetOpaque(page)->nextblkno))
|
||||
{
|
||||
UnlockReleaseBuffer(buf);
|
||||
continue;
|
||||
}
|
||||
|
||||
/* Otherwise, fallthrough to reduce contention */
|
||||
fsmPage = false;
|
||||
UnlockReleaseBuffer(buf);
|
||||
continue;
|
||||
}
|
||||
|
||||
/* Finally, try space for element only if last page */
|
||||
|
||||
Reference in New Issue
Block a user