mirror of
https://github.com/pgvector/pgvector.git
synced 2026-07-28 06:42:43 +08:00
Minimized diff [skip ci]
This commit is contained in:
@@ -249,6 +249,9 @@ hnswgetbatch(IndexScanDesc scan, IndexScanBatch priorbatch, ScanDirection dir)
|
|||||||
for (;;)
|
for (;;)
|
||||||
{
|
{
|
||||||
char *base = NULL;
|
char *base = NULL;
|
||||||
|
HnswSearchCandidate *sc;
|
||||||
|
HnswElement element;
|
||||||
|
ItemPointer heaptid;
|
||||||
int nitems = 0;
|
int nitems = 0;
|
||||||
|
|
||||||
if (list_length(so->w) == 0)
|
if (list_length(so->w) == 0)
|
||||||
@@ -297,9 +300,8 @@ hnswgetbatch(IndexScanDesc scan, IndexScanBatch priorbatch, ScanDirection dir)
|
|||||||
|
|
||||||
while (list_length(so->w) != 0)
|
while (list_length(so->w) != 0)
|
||||||
{
|
{
|
||||||
HnswSearchCandidate *sc = llast(so->w);
|
sc = llast(so->w);
|
||||||
HnswElement element = HnswPtrAccess(base, sc->element);
|
element = HnswPtrAccess(base, sc->element);
|
||||||
ItemPointer heaptid;
|
|
||||||
|
|
||||||
/* Move to next element if no valid heap TIDs */
|
/* Move to next element if no valid heap TIDs */
|
||||||
if (element->heaptidsLength == 0)
|
if (element->heaptidsLength == 0)
|
||||||
|
|||||||
Reference in New Issue
Block a user