Fixed uninitialized memory in scan->xs_recheck [skip ci]

This commit is contained in:
Andrew Kane
2024-01-27 19:54:16 -08:00
parent 614368f543
commit 9859ea168e
2 changed files with 2 additions and 0 deletions
+1
View File
@@ -202,6 +202,7 @@ hnswgettuple(IndexScanDesc scan, ScanDirection dir)
MemoryContextSwitchTo(oldCtx);
scan->xs_heaptid = *heaptid;
scan->xs_recheck = false;
scan->xs_recheckorderby = false;
return true;
}
+1
View File
@@ -310,6 +310,7 @@ ivfflatgettuple(IndexScanDesc scan, ScanDirection dir)
ItemPointer heaptid = (ItemPointer) DatumGetPointer(slot_getattr(so->slot, 2, &so->isnull));
scan->xs_heaptid = *heaptid;
scan->xs_recheck = false;
scan->xs_recheckorderby = false;
return true;
}