mirror of
https://github.com/pgvector/pgvector.git
synced 2026-07-15 17:16:56 +08:00
Added checks for deleted tuples rather than relying on ItemPointerIsValid [skip ci]
This commit is contained in:
@@ -421,6 +421,10 @@ RepairGraph(HnswVacuumState * vacuumstate)
|
|||||||
if (!HnswIsElementTuple(etup))
|
if (!HnswIsElementTuple(etup))
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
|
/* Skip deleted tuples */
|
||||||
|
if (etup->deleted)
|
||||||
|
continue;
|
||||||
|
|
||||||
/* Skip updating neighbors if being deleted */
|
/* Skip updating neighbors if being deleted */
|
||||||
if (!ItemPointerIsValid(&etup->heaptids[0]))
|
if (!ItemPointerIsValid(&etup->heaptids[0]))
|
||||||
continue;
|
continue;
|
||||||
@@ -535,6 +539,10 @@ ConfirmRepaired(HnswVacuumState * vacuumstate)
|
|||||||
if (!HnswIsElementTuple(etup))
|
if (!HnswIsElementTuple(etup))
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
|
/* Skip deleted tuples */
|
||||||
|
if (etup->deleted)
|
||||||
|
continue;
|
||||||
|
|
||||||
/* Skip if being deleted */
|
/* Skip if being deleted */
|
||||||
if (!ItemPointerIsValid(&etup->heaptids[0]))
|
if (!ItemPointerIsValid(&etup->heaptids[0]))
|
||||||
continue;
|
continue;
|
||||||
|
|||||||
Reference in New Issue
Block a user