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