From e8f36aee92ff0dba845170ad32fc9ff74b2c496f Mon Sep 17 00:00:00 2001 From: Andrew Kane Date: Tue, 15 Aug 2023 22:36:47 -0700 Subject: [PATCH] Improved HNSW vacuum code [skip ci] --- src/hnswvacuum.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/hnswvacuum.c b/src/hnswvacuum.c index 12f071e..eb7c869 100644 --- a/src/hnswvacuum.c +++ b/src/hnswvacuum.c @@ -114,7 +114,7 @@ RemoveHeapTids(HnswVacuumState * vacuumstate) (void) hash_search(vacuumstate->deleted, &ip, HASH_ENTER, NULL); } - else if (etup->level > highestLevel && !(blkno == entryPoint->blkno && offno == entryPoint->offno)) + else if (etup->level > highestLevel && !(entryPoint != NULL && blkno == entryPoint->blkno && offno == entryPoint->offno)) { /* Keep track of highest non-entry point */ highestPoint->blkno = blkno;