pgvector.git / summary / log / commit / refs

commit    ca847d02b04b5677c1a95e538dc30d1d92a6366a
Author:   Andrew Kane <andrew@ankane.org>
Date:     Sat Aug 19 05:23:19 2023 +0000

    Fixed highest point in HNSW vacuum [skip ci]


src/hnswvacuum.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/hnswvacuum.c b/src/hnswvacuum.c index 9a161038..146c5c37 100644 --- a/src/hnswvacuum.c +++ b/src/hnswvacuum.c @@ -278,8 +278,11 @@ RepairGraphEntryPoint(HnswVacuumState * vacuumstate) * ideal. */ + if (!BlockNumberIsValid(highestPoint->blkno)) + highestPoint = NULL; + /* Repair graph for highest non-entry point */ - if (BlockNumberIsValid(highestPoint->blkno)) + if (highestPoint != NULL) { HnswLoadElement(highestPoint, NULL, NULL, index, vacuumstate->procinfo, vacuumstate->collation, true); RepairGraphElement(vacuumstate, highestPoint); [parent: ca726052ae58]