mirror of
https://github.com/pgvector/pgvector.git
synced 2026-07-23 04:20:56 +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++;
|
||||
}
|
||||
|
||||
if (nitems == 0)
|
||||
break;
|
||||
|
||||
MemoryContextSwitchTo(oldCtx);
|
||||
|
||||
batch->firstItem = 0;
|
||||
|
||||
Reference in New Issue
Block a user