8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 28b0478 commit 4c3b59aCopy full SHA for 4c3b59a
src/backend/nodes/tidbitmap.c
@@ -866,12 +866,14 @@ tbm_prepare_shared_iterate(TIDBitmap *tbm)
866
else if (tbm->status == TBM_ONE_PAGE)
867
{
868
/*
869
- * In one page mode allocate the space for one pagetable entry and
870
- * directly store its index i.e. 0 in page array
+ * In one page mode allocate the space for one pagetable entry,
+ * initialize it, and directly store its index (i.e. 0) in the
871
+ * page array.
872
*/
873
tbm->dsapagetable = dsa_allocate(tbm->dsa, sizeof(PTEntryArray) +
874
sizeof(PagetableEntry));
875
ptbase = dsa_get_address(tbm->dsa, tbm->dsapagetable);
876
+ memcpy(ptbase->ptentry, &tbm->entry1, sizeof(PagetableEntry));
877
ptpages->index[0] = 0;
878
}
879
0 commit comments