Fixed check in SelectNeighbors

This commit is contained in:
Andrew Kane
2023-08-25 20:46:05 -07:00
parent 552c64d492
commit 8801832946

View File

@@ -733,7 +733,7 @@ SelectNeighbors(List *c, int m, int lc, FmgrInfo *procinfo, Oid collation, HnswC
List *w = list_copy(c);
pairingheap *wd;
if (list_length(w) < m)
if (list_length(w) <= m)
return w;
wd = pairingheap_allocate(CompareNearestCandidates, NULL);