pgvector.git / summary / log / commit / refs

commit    a03f6ae4bc5cbcc1a0c332f67df3b8235641be69
Author:   Andrew Kane <andrew@ankane.org>
Date:     Fri Aug 18 07:54:09 2023 +0000

    Added prefix to function name [skip ci]


src/hnsw.h | 2 +- src/hnswinsert.c | 4 ++-- src/hnswvacuum.c | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/hnsw.h b/src/hnsw.h index 0a8e633c..a650005d 100644 --- a/src/hnsw.h +++ b/src/hnsw.h @@ -271,7 +271,7 @@ void HnswSetNeighborTuple(HnswNeighborTuple ntup, HnswElement e, int m); void HnswAddHeapTid(HnswElement element, ItemPointer heaptid); void HnswInitNeighbors(HnswElement element, int m); bool HnswInsertTuple(Relation index, Datum *values, bool *isnull, ItemPointer heap_tid, Relation heapRel); -void UpdateNeighborPages(Relation index, FmgrInfo *procinfo, Oid collation, HnswElement e, int m, bool checkExisting); +void HnswUpdateNeighborPages(Relation index, FmgrInfo *procinfo, Oid collation, HnswElement e, int m, bool checkExisting); void HnswLoadElement(HnswElement element, float *distance, Datum *q, Relation index, FmgrInfo *procinfo, Oid collation, bool loadVec); void HnswSetElementTuple(HnswElementTuple etup, HnswElement element); void HnswUpdateConnection(HnswElement element, HnswCandidate * hc, int m, int lc, int *updateIdx, Relation index, FmgrInfo *procinfo, Oid collation); diff --git a/src/hnswinsert.c b/src/hnswinsert.c index 71e5f560..1eb44f94 100644 --- a/src/hnswinsert.c +++ b/src/hnswinsert.c @@ -307,7 +307,7 @@ ConnectionExists(HnswElement e, HnswNeighborTuple ntup, int startIdx, int lm) * Update neighbors */ void -UpdateNeighborPages(Relation index, FmgrInfo *procinfo, Oid collation, HnswElement e, int m, bool checkExisting) +HnswUpdateNeighborPages(Relation index, FmgrInfo *procinfo, Oid collation, HnswElement e, int m, bool checkExisting) { for (int lc = e->level; lc >= 0; lc--) { @@ -519,7 +519,7 @@ WriteElement(Relation index, FmgrInfo *procinfo, Oid collation, HnswElement elem HnswUpdateMetaPage(index, 0, NULL, newInsertPage, MAIN_FORKNUM); /* Update neighbors */ - UpdateNeighborPages(index, procinfo, collation, element, m, false); + HnswUpdateNeighborPages(index, procinfo, collation, element, m, false); /* Update metapage if needed */ if (element->level > entryPoint->level) diff --git a/src/hnswvacuum.c b/src/hnswvacuum.c index 6f137e21..9a161038 100644 --- a/src/hnswvacuum.c +++ b/src/hnswvacuum.c @@ -255,7 +255,7 @@ RepairGraphElement(HnswVacuumState * vacuumstate, HnswElement element) UnlockReleaseBuffer(buf); /* Update neighbors */ - UpdateNeighborPages(index, procinfo, collation, element, m, true); + HnswUpdateNeighborPages(index, procinfo, collation, element, m, true); } /* [parent: ed20d98777a0]