mirror of
https://github.com/pgvector/pgvector.git
synced 2026-07-16 09:30:59 +08:00
Improved variable name [skip ci]
This commit is contained in:
@@ -1104,12 +1104,12 @@ LoadElementsForInsert(HnswNeighborArray * neighbors, Datum q, HnswCandidate * *p
|
|||||||
* Update connections
|
* Update connections
|
||||||
*/
|
*/
|
||||||
void
|
void
|
||||||
HnswUpdateConnection(char *base, HnswElement element, HnswCandidate * hc, HnswNeighborArray * neighbors, int lm, int *updateIdx, Relation index, FmgrInfo *procinfo, Oid collation)
|
HnswUpdateConnection(char *base, HnswElement newElement, HnswCandidate * hc, HnswNeighborArray * neighbors, int lm, int *updateIdx, Relation index, FmgrInfo *procinfo, Oid collation)
|
||||||
{
|
{
|
||||||
HnswElement hce = HnswPtrAccess(base, hc->element);
|
HnswElement hce = HnswPtrAccess(base, hc->element);
|
||||||
HnswCandidate newHc;
|
HnswCandidate newHc;
|
||||||
|
|
||||||
HnswPtrStore(base, newHc.element, element);
|
HnswPtrStore(base, newHc.element, newElement);
|
||||||
newHc.distance = hc->distance;
|
newHc.distance = hc->distance;
|
||||||
|
|
||||||
if (neighbors->length < lm)
|
if (neighbors->length < lm)
|
||||||
|
|||||||
Reference in New Issue
Block a user