pgsql: Fix thinko in huge_tlb_pages patch. - Mailing list pgsql-committers

From Heikki Linnakangas
Subject pgsql: Fix thinko in huge_tlb_pages patch.
Date
Msg-id E1W8aw5-0001WG-Bq@gemulon.postgresql.org
Whole thread Raw
List pgsql-committers
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.

Branch
------
master

Details
-------
http://git.postgresql.org/pg/commitdiff/699b1f40da3139def660235fa8a782ec8dd8f575

Modified Files
--------------
src/backend/port/sysv_shmem.c |   11 +++++++----
1 file changed, 7 insertions(+), 4 deletions(-)


pgsql-committers by date:

Previous
From: Heikki Linnakangas
Date:
Subject: pgsql: Further optimize GIN multi-key searches.
Next
From: Andrew Dunstan
Date:
Subject: pgsql: Add json_array_elements_text function.