mirror of
https://github.com/pgvector/pgvector.git
synced 2026-07-21 19:47:35 +08:00
Fixed crash with debugging disabled [skip ci]
This commit is contained in:
@@ -344,6 +344,9 @@ hnswgetbatch(IndexScanDesc scan, IndexScanBatch priorbatch, ScanDirection dir)
|
|||||||
|
|
||||||
MemoryContextSwitchTo(oldCtx);
|
MemoryContextSwitchTo(oldCtx);
|
||||||
|
|
||||||
|
scan->xs_recheck = false;
|
||||||
|
scan->xs_recheckorderby = false;
|
||||||
|
|
||||||
batch->firstItem = 0;
|
batch->firstItem = 0;
|
||||||
batch->lastItem = nitems - 1;
|
batch->lastItem = nitems - 1;
|
||||||
batch->dir = ForwardScanDirection;
|
batch->dir = ForwardScanDirection;
|
||||||
|
|||||||
@@ -425,6 +425,9 @@ ivfflatgetbatch(IndexScanDesc scan, IndexScanBatch priorbatch, ScanDirection dir
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
scan->xs_recheck = false;
|
||||||
|
scan->xs_recheckorderby = false;
|
||||||
|
|
||||||
batch->firstItem = 0;
|
batch->firstItem = 0;
|
||||||
batch->lastItem = nitems - 1;
|
batch->lastItem = nitems - 1;
|
||||||
batch->dir = ForwardScanDirection;
|
batch->dir = ForwardScanDirection;
|
||||||
|
|||||||
Reference in New Issue
Block a user