From 474aaf6df2fe43fc3e236f40dafe4ae7eb0c050f Mon Sep 17 00:00:00 2001 From: Andrew Kane Date: Wed, 14 Oct 2026 21:18:22 -0700 Subject: [PATCH] Revert "Added fallthrough [skip ci]" This reverts commit 2426376e2edd316cc6b27f8ed5fabbee747fd5b5. --- src/hnswinsert.c | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) 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 */