]> granicus.if.org Git - postgresql/commit
Fix thinko in huge_tlb_pages patch.
authorHeikki Linnakangas <heikki.linnakangas@iki.fi>
Wed, 29 Jan 2014 19:33:56 +0000 (21:33 +0200)
committerHeikki Linnakangas <heikki.linnakangas@iki.fi>
Wed, 29 Jan 2014 19:33:56 +0000 (21:33 +0200)
commit699b1f40da3139def660235fa8a782ec8dd8f575
tree434ea56ffa8a7670f190295d034b433fb322ebf0
parent626a120656a75bf4fe64b1d0d83c23cb38d3771a
Fix thinko in huge_tlb_pages patch.

We calculated the rounded-up size for the allocation, but then failed to
use the rounded-up value in the mmap() call. Oops.

Also, initialize allocsize, to silence warnings seen with some compilers,
as pointed out by Jeff Janes.
src/backend/port/sysv_shmem.c