Removed todos [skip ci]

This commit is contained in:
Andrew Kane
2023-08-04 23:49:56 -07:00
parent f82c90ce14
commit 7c217bad0d
2 changed files with 1 additions and 5 deletions

View File

@@ -375,9 +375,7 @@ LoadNeighborsFromPage(HnswElement element, Relation index, Page page)
HnswInitNeighbors(element, m); HnswInitNeighbors(element, m);
/* If not, neighbor page represents new item */ /* Ensure expected neighbors */
/* Only caught if item has a different level */
/* TODO Use versioning to fix this? */
if (HNSW_NEIGHBOR_COUNT(itemid) == neighborCount) if (HNSW_NEIGHBOR_COUNT(itemid) == neighborCount)
{ {
HnswNeighborTuple ntup = (HnswNeighborTuple) PageGetItem(page, itemid); HnswNeighborTuple ntup = (HnswNeighborTuple) PageGetItem(page, itemid);

View File

@@ -112,7 +112,6 @@ RemoveHeapTids(HnswVacuumState * vacuumstate)
else if (etup->level > highestLevel && !(blkno == entryPoint->blkno && offno == entryPoint->offno)) else if (etup->level > highestLevel && !(blkno == entryPoint->blkno && offno == entryPoint->offno))
{ {
/* Keep track of highest non-entry point */ /* Keep track of highest non-entry point */
/* TODO Keep track of closest one to entry point? */
highestPoint->blkno = blkno; highestPoint->blkno = blkno;
highestPoint->offno = offno; highestPoint->offno = offno;
highestLevel = etup->level; highestLevel = etup->level;
@@ -446,7 +445,6 @@ MarkDeleted(HnswVacuumState * vacuumstate)
ntup = (HnswNeighborTuple) PageGetItem(npage, PageGetItemId(npage, neighborOffno)); ntup = (HnswNeighborTuple) PageGetItem(npage, PageGetItemId(npage, neighborOffno));
/* Overwrite element */ /* Overwrite element */
/* TODO Increment version? */
etup->deleted = 1; etup->deleted = 1;
MemSet(&etup->vec.x, 0, etup->vec.dim * sizeof(float)); MemSet(&etup->vec.x, 0, etup->vec.dim * sizeof(float));