mirror of
https://github.com/pgvector/pgvector.git
synced 2026-07-10 22:56:55 +08:00
Fixed warning [skip ci]
This commit is contained in:
@@ -938,14 +938,14 @@ HnswSearchLayer(char *base, Datum q, List *ep, int ef, int lc, Relation index, F
|
|||||||
/* No need to decrement wlen */
|
/* No need to decrement wlen */
|
||||||
if (wlen > ef)
|
if (wlen > ef)
|
||||||
{
|
{
|
||||||
HnswPairingHeapNode *node = pairingheap_container(HnswPairingHeapNode, w_node, pairingheap_remove_first(W));
|
HnswPairingHeapNode *furthestNode = pairingheap_container(HnswPairingHeapNode, w_node, pairingheap_remove_first(W));
|
||||||
HnswCandidate *hc = node->inner;
|
HnswCandidate *hc = furthestNode->inner;
|
||||||
|
|
||||||
if (discarded != NULL)
|
if (discarded != NULL)
|
||||||
*discarded = lappend(*discarded, hc);
|
*discarded = lappend(*discarded, hc);
|
||||||
|
|
||||||
/* TODO */
|
/* TODO */
|
||||||
/* pfree(node); */
|
/* pfree(furthestNode); */
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user