Improved HnswUpdateConnection parameters [skip ci]

This commit is contained in:
Andrew Kane
2024-09-29 19:47:25 -07:00
parent 8eb8cdf0f3
commit 525e3b81e1
4 changed files with 5 additions and 5 deletions

View File

@@ -388,7 +388,7 @@ UpdateNeighborsInMemory(char *base, FmgrInfo *procinfo, Oid collation, HnswEleme
Assert(neighborElement);
LWLockAcquire(&neighborElement->lock, LW_EXCLUSIVE);
HnswUpdateConnection(base, e, hc, HnswGetNeighbors(base, neighborElement, lc), lm, NULL, NULL, procinfo, collation);
HnswUpdateConnection(base, HnswGetNeighbors(base, neighborElement, lc), e, hc->distance, lm, NULL, NULL, procinfo, collation);
LWLockRelease(&neighborElement->lock);
}
}