diff --git a/src/hnswvacuum.c b/src/hnswvacuum.c index 2a5ab2c..ea1a30b 100644 --- a/src/hnswvacuum.c +++ b/src/hnswvacuum.c @@ -645,7 +645,6 @@ MarkDeleted(HnswVacuumState * vacuumstate) Page npage; BlockNumber neighborPage; OffsetNumber neighborOffno; - ItemPointerData indextid; /* Skip neighbor tuples */ if (!HnswIsElementTuple(etup)) @@ -665,18 +664,6 @@ MarkDeleted(HnswVacuumState * vacuumstate) if (ItemPointerIsValid(&etup->heaptids[0])) continue; - /* Confirm in deletion list */ - ItemPointerSet(&indextid, blkno, offno); - if (!DeletingElement(vacuumstate->deleting, &indextid)) - { - /* - * Should not happen, but skip if it does since there may be - * connections from other elements - */ - Assert(false); - continue; - } - /* Get neighbor page */ neighborPage = ItemPointerGetBlockNumber(&etup->neighbortid); neighborOffno = ItemPointerGetOffsetNumber(&etup->neighbortid);