Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commita171f01

Browse files
committed
Pass DSA_ALLOC_HUGE when allocating a shared TIDBitmap.
When creating an unshared TIDBitmap, we pass MCXT_ALLOC_HUGE to allowallocations >1GB, so by analogy we pass DSA_ALLOC_HUGE for a sharedTIDBitmap.Bug introduced by commit98e6e89.Report by Rafia Sabih, fix by Dilip Kumar, adjusted by me.Discussion:http://postgr.es/m/CAOGQiiPpSnkuKq+oUK_bvQFg2EPGFPN8RwgxTgBa6HU_kQa3EA@mail.gmail.com
1 parentfacde2a commita171f01

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

‎src/backend/nodes/tidbitmap.c

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1533,9 +1533,11 @@ pagetable_allocate(pagetable_hash *pagetable, Size size)
15331533
* new memory so that pagetable_free can free the old entry.
15341534
*/
15351535
tbm->dsapagetableold=tbm->dsapagetable;
1536-
tbm->dsapagetable=dsa_allocate0(tbm->dsa,sizeof(PTEntryArray)+size);
1537-
1536+
tbm->dsapagetable=dsa_allocate_extended(tbm->dsa,
1537+
sizeof(PTEntryArray)+size,
1538+
DSA_ALLOC_HUGE |DSA_ALLOC_ZERO);
15381539
ptbase=dsa_get_address(tbm->dsa,tbm->dsapagetable);
1540+
15391541
returnptbase->ptentry;
15401542
}
15411543

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp