pgvector.git / summary / log / commit / refs
commit e8f36aee92ff0dba845170ad32fc9ff74b2c496f
Author: Andrew Kane <andrew@ankane.org>
Date: Wed Aug 16 05:36:47 2023 +0000
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 12f071e4..eb7c869a 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;
[parent: 508a8a9ac72e]