Revert "No need to increment wlen when removing"

This reverts commit 6b2e215447.
This commit is contained in:
Andrew Kane
2023-09-02 17:41:31 -07:00
parent 5665a11a05
commit 5c005cf57c

View File

@@ -645,10 +645,11 @@ HnswSearchLayer(Datum q, List *ep, int ef, int lc, Relation index, FmgrInfo *pro
*/
if (skipElement == NULL || list_length(e->element->heaptids) != 0)
{
if (wlen >= ef)
wlen++;
/* No need to decrement wlen */
if (wlen > ef)
pairingheap_remove_first(W);
else
wlen++;
}
}
}