mirror of
https://github.com/pgvector/pgvector.git
synced 2026-07-21 11:37:34 +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);
|
||||
|
||||
scan->xs_recheck = false;
|
||||
scan->xs_recheckorderby = false;
|
||||
|
||||
batch->firstItem = 0;
|
||||
batch->lastItem = nitems - 1;
|
||||
batch->dir = ForwardScanDirection;
|
||||
|
||||
@@ -425,6 +425,9 @@ ivfflatgetbatch(IndexScanDesc scan, IndexScanBatch priorbatch, ScanDirection dir
|
||||
break;
|
||||
}
|
||||
|
||||
scan->xs_recheck = false;
|
||||
scan->xs_recheckorderby = false;
|
||||
|
||||
batch->firstItem = 0;
|
||||
batch->lastItem = nitems - 1;
|
||||
batch->dir = ForwardScanDirection;
|
||||
|
||||
Reference in New Issue
Block a user