Improved variable name [skip ci]

This commit is contained in:
Andrew Kane
2024-09-29 19:26:15 -07:00
parent 4ac86f62a1
commit 4c72f91206

View File

@@ -1104,12 +1104,12 @@ LoadElementsForInsert(HnswNeighborArray * neighbors, Datum q, HnswCandidate * *p
* Update connections
*/
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);
HnswCandidate newHc;
HnswPtrStore(base, newHc.element, element);
HnswPtrStore(base, newHc.element, newElement);
newHc.distance = hc->distance;
if (neighbors->length < lm)