mirror of
https://github.com/pgvector/pgvector.git
synced 2026-07-12 15:46:54 +08:00
Improved HNSW vacuum code [skip ci]
This commit is contained in:
@@ -211,7 +211,7 @@ RepairGraphElement(HnswVacuumState * vacuumstate, HnswElement element)
|
|||||||
entryPoint = HnswGetEntryPoint(index);
|
entryPoint = HnswGetEntryPoint(index);
|
||||||
|
|
||||||
/* Special case for entry point */
|
/* Special case for entry point */
|
||||||
if (element->blkno == entryPoint->blkno && element->offno == entryPoint->offno)
|
if (entryPoint != NULL && element->blkno == entryPoint->blkno && element->offno == entryPoint->offno)
|
||||||
{
|
{
|
||||||
if (BlockNumberIsValid(vacuumstate->highestPoint.blkno))
|
if (BlockNumberIsValid(vacuumstate->highestPoint.blkno))
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user