pgvector.git / summary / log / commit / refs

commit    508a8a9ac72e1250f3ee0b2039a3acd73db13e95
Author:   Andrew Kane <andrew@ankane.org>
Date:     Wed Aug 16 03:32:15 2023 +0000

    Updated comments [skip ci]


src/hnswvacuum.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/hnswvacuum.c b/src/hnswvacuum.c index 7774bd82..12f071e4 100644 --- a/src/hnswvacuum.c +++ b/src/hnswvacuum.c @@ -294,10 +294,13 @@ RepairGraphEntryPoint(HnswVacuumState * vacuumstate) ItemPointerSet(&epData, entryPoint->blkno, entryPoint->offno); if (DeletedContains(vacuumstate->deleted, &epData)) + { + /* Replace the entry point with the highest point */ HnswUpdateMetaPage(index, HNSW_UPDATE_ENTRY_ALWAYS, highestPoint, InvalidBlockNumber, MAIN_FORKNUM); + } else { - /* Highest point will be used to repair */ + /* Repair the entry point with the highest point */ HnswLoadElement(entryPoint, NULL, NULL, index, vacuumstate->procinfo, vacuumstate->collation, true); RepairGraphElement(vacuumstate, entryPoint); } [parent: d0b0298cdaec]