Fix thinko in huge_tlb_pages patch.

Heikki Linnakangas <heikki.linnakangas@iki.fi>

Commit: 699b1f40da3139def660235fa8a782ec8dd8f575
Author: Heikki Linnakangas <heikki.linnakangas@iki.fi>
Date: 2014-01-29T19:33:56Z
Releases: 9.4.0
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.

Files

PathChange+/−
src/backend/port/sysv_shmem.c modified +7 −4