mirror of
https://github.com/pgvector/pgvector.git
synced 2026-07-01 02:02:10 +08:00
Fixed highest point in HNSW vacuum [skip ci]
This commit is contained in:
@@ -278,8 +278,11 @@ RepairGraphEntryPoint(HnswVacuumState * vacuumstate)
|
||||
* ideal.
|
||||
*/
|
||||
|
||||
if (!BlockNumberIsValid(highestPoint->blkno))
|
||||
highestPoint = NULL;
|
||||
|
||||
/* Repair graph for highest non-entry point */
|
||||
if (BlockNumberIsValid(highestPoint->blkno))
|
||||
if (highestPoint != NULL)
|
||||
{
|
||||
HnswLoadElement(highestPoint, NULL, NULL, index, vacuumstate->procinfo, vacuumstate->collation, true);
|
||||
RepairGraphElement(vacuumstate, highestPoint);
|
||||
|
||||
Reference in New Issue
Block a user