From 7c217bad0d05ca75c9bfaa3407177f5a38df3ddb Mon Sep 17 00:00:00 2001 From: Andrew Kane Date: Fri, 4 Aug 2023 23:49:56 -0700 Subject: [PATCH] Removed todos [skip ci] --- src/hnswutils.c | 4 +--- src/hnswvacuum.c | 2 -- 2 files changed, 1 insertion(+), 5 deletions(-) diff --git a/src/hnswutils.c b/src/hnswutils.c index 3ebffa1..cff954b 100644 --- a/src/hnswutils.c +++ b/src/hnswutils.c @@ -375,9 +375,7 @@ LoadNeighborsFromPage(HnswElement element, Relation index, Page page) HnswInitNeighbors(element, m); - /* If not, neighbor page represents new item */ - /* Only caught if item has a different level */ - /* TODO Use versioning to fix this? */ + /* Ensure expected neighbors */ if (HNSW_NEIGHBOR_COUNT(itemid) == neighborCount) { HnswNeighborTuple ntup = (HnswNeighborTuple) PageGetItem(page, itemid); diff --git a/src/hnswvacuum.c b/src/hnswvacuum.c index 7099571..742356a 100644 --- a/src/hnswvacuum.c +++ b/src/hnswvacuum.c @@ -112,7 +112,6 @@ RemoveHeapTids(HnswVacuumState * vacuumstate) else if (etup->level > highestLevel && !(blkno == entryPoint->blkno && offno == entryPoint->offno)) { /* Keep track of highest non-entry point */ - /* TODO Keep track of closest one to entry point? */ highestPoint->blkno = blkno; highestPoint->offno = offno; highestLevel = etup->level; @@ -446,7 +445,6 @@ MarkDeleted(HnswVacuumState * vacuumstate) ntup = (HnswNeighborTuple) PageGetItem(npage, PageGetItemId(npage, neighborOffno)); /* Overwrite element */ - /* TODO Increment version? */ etup->deleted = 1; MemSet(&etup->vec.x, 0, etup->vec.dim * sizeof(float));