mirror of
https://github.com/pgvector/pgvector.git
synced 2026-07-03 11:10:56 +08:00
Fixed vacuum from previous commit
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user