From b0801b8833c3cba0c07af290c1516d302850bf8c Mon Sep 17 00:00:00 2001 From: Andrew Kane Date: Sun, 3 Sep 2023 01:58:45 -0700 Subject: [PATCH] Fixed vacuum from previous commit --- src/hnswvacuum.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/hnswvacuum.c b/src/hnswvacuum.c index f4a5f65..b7d3c7a 100644 --- a/src/hnswvacuum.c +++ b/src/hnswvacuum.c @@ -265,7 +265,12 @@ RepairGraphEntryPoint(HnswVacuumState * vacuumstate) /* Repair if needed */ if (NeedsUpdated(vacuumstate, highestPoint)) - RepairGraphElement(vacuumstate, highestPoint, HnswGetEntryPoint(index)); + { + /* Get m and entry point */ + HnswGetMetaPageInfo(index, &vacuumstate->m, &entryPoint); + + RepairGraphElement(vacuumstate, highestPoint, entryPoint); + } /* Release lock */ UnlockPage(index, HNSW_UPDATE_LOCK, ShareLock);