Improved HNSW vacuum code [skip ci]

This commit is contained in:
Andrew Kane
2023-08-15 22:36:47 -07:00
parent 508a8a9ac7
commit e8f36aee92

View File

@@ -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;