pgsql: Fix thinko in huge_tlb_pages patch.

From: Heikki Linnakangas <heikki(dot)linnakangas(at)iki(dot)fi>
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: Fix thinko in huge_tlb_pages patch.
Date: 2014-01-29 19:36:33
Message-ID: E1W8aw5-0001WG-Bq@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Andrew Dunstan 2014-01-29 20:51:26 pgsql: Add json_array_elements_text function.
Previous Message Heikki Linnakangas 2014-01-29 19:25:24 pgsql: Further optimize GIN multi-key searches.