mirror of
https://github.com/pgvector/pgvector.git
synced 2026-12-04 08:18:46 +00:00
1 parent
2426376e2e
commit
474aaf6df2
1 file changed
+3
-9
+3
-9
@@ -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