Fixed crash with debugging disabled [skip ci]

This commit is contained in:
Andrew Kane
2026-06-10 14:31:54 -07:00
parent 06ab41c094
commit 89dc41ce2b
2 changed files with 6 additions and 0 deletions

View File

@@ -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;

View File

@@ -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;