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);