1
0
mirror of https://github.com/pgvector/pgvector.git synced 2026-10-23 10:48:54 +03:00

Revert "Added fallthrough [skip ci]"

This reverts commit 2426376e2e.
This commit is contained in:
Andrew Kane
2026-10-14 21:18:22 -07:00
parent 2426376e2e
commit 474aaf6df2

View File

@@ -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 */