Simplified HNSW vacuum logic

This commit is contained in:
Andrew Kane
2023-09-03 02:25:19 -07:00
parent 72ea3c1210
commit 04312f6638
2 changed files with 13 additions and 13 deletions

View File

@@ -227,10 +227,13 @@ HnswGetMetaPageInfo(Relation index, int *m, HnswElement * entryPoint)
if (m != NULL)
*m = metap->m;
if (BlockNumberIsValid(metap->entryBlkno))
*entryPoint = HnswInitElementFromBlock(metap->entryBlkno, metap->entryOffno);
else
*entryPoint = NULL;
if (entryPoint != NULL)
{
if (BlockNumberIsValid(metap->entryBlkno))
*entryPoint = HnswInitElementFromBlock(metap->entryBlkno, metap->entryOffno);
else
*entryPoint = NULL;
}
UnlockReleaseBuffer(buf);
}