mirror of
https://github.com/pgvector/pgvector.git
synced 2026-07-24 04:45:45 +08:00
Re-added check for iterative scans [skip ci]
This commit is contained in:
@@ -334,6 +334,9 @@ hnswgetbatch(IndexScanDesc scan, IndexScanBatch priorbatch, ScanDirection dir)
|
|||||||
nitems++;
|
nitems++;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (nitems == 0)
|
||||||
|
break;
|
||||||
|
|
||||||
MemoryContextSwitchTo(oldCtx);
|
MemoryContextSwitchTo(oldCtx);
|
||||||
|
|
||||||
batch->firstItem = 0;
|
batch->firstItem = 0;
|
||||||
|
|||||||
Reference in New Issue
Block a user