mirror of
https://github.com/pgvector/pgvector.git
synced 2026-07-10 22:56:55 +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);
|
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);
|
||||||
|
|||||||
@@ -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));
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user