mirror of
https://github.com/pgvector/pgvector.git
synced 2026-07-11 15:16:54 +08:00
Updated comment [skip ci]
This commit is contained in:
@@ -290,9 +290,9 @@ InsertTuple(Relation index, Datum *values, HnswElement element, HnswBuildState *
|
|||||||
/* Insert element in graph */
|
/* Insert element in graph */
|
||||||
*dup = HnswInsertElement(element, entryPoint, NULL, procinfo, collation, m, efConstruction, false);
|
*dup = HnswInsertElement(element, entryPoint, NULL, procinfo, collation, m, efConstruction, false);
|
||||||
|
|
||||||
|
/* Update neighbors if needed */
|
||||||
if (*dup == NULL)
|
if (*dup == NULL)
|
||||||
{
|
{
|
||||||
/* Update neighbors */
|
|
||||||
for (int lc = element->level; lc >= 0; lc--)
|
for (int lc = element->level; lc >= 0; lc--)
|
||||||
{
|
{
|
||||||
int lm = HnswGetLayerM(m, lc);
|
int lm = HnswGetLayerM(m, lc);
|
||||||
|
|||||||
Reference in New Issue
Block a user