mirror of
https://github.com/pgvector/pgvector.git
synced 2026-06-30 09:41:15 +08:00
Removed todos [skip ci]
This commit is contained in:
@@ -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);
|
||||
|
||||
@@ -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));
|
||||
|
||||
|
||||
Reference in New Issue
Block a user