mirror of
https://github.com/pgvector/pgvector.git
synced 2026-07-12 07:36:55 +08:00
Improved variable name [skip ci]
This commit is contained in:
@@ -62,14 +62,14 @@ ResumeScanItems(IndexScanDesc scan)
|
|||||||
/* Get next batch of candidates */
|
/* Get next batch of candidates */
|
||||||
for (int i = 0; i < batch_size; i++)
|
for (int i = 0; i < batch_size; i++)
|
||||||
{
|
{
|
||||||
HnswSearchCandidate *hc;
|
HnswSearchCandidate *sc;
|
||||||
|
|
||||||
if (pairingheap_is_empty(so->discarded))
|
if (pairingheap_is_empty(so->discarded))
|
||||||
break;
|
break;
|
||||||
|
|
||||||
hc = HnswGetSearchCandidate(w_node, pairingheap_remove_first(so->discarded));
|
sc = HnswGetSearchCandidate(w_node, pairingheap_remove_first(so->discarded));
|
||||||
|
|
||||||
ep = lappend(ep, hc);
|
ep = lappend(ep, sc);
|
||||||
}
|
}
|
||||||
|
|
||||||
return HnswSearchLayer(base, &so->q, ep, batch_size, 0, index, &so->support, so->m, false, NULL, &so->v, &so->discarded, false, &so->tuples);
|
return HnswSearchLayer(base, &so->q, ep, batch_size, 0, index, &so->support, so->m, false, NULL, &so->v, &so->discarded, false, &so->tuples);
|
||||||
|
|||||||
Reference in New Issue
Block a user