diff --git a/src/hnswinsert.c b/src/hnswinsert.c index 94f304b..bb395af 100644 --- a/src/hnswinsert.c +++ b/src/hnswinsert.c @@ -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 */