From 508a8a9ac72e1250f3ee0b2039a3acd73db13e95 Mon Sep 17 00:00:00 2001 From: Andrew Kane Date: Tue, 15 Aug 2023 20:32:15 -0700 Subject: [PATCH] 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 7774bd8..12f071e 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); }