Re: Patch fürMAP_HUGETLB for mmap() shared memory - Mailing list pgsql-hackers

From Andres Freund
Subject Re: Patch fürMAP_HUGETLB for mmap() shared memory
Date
Msg-id 20121221203742.GA26107@awork2.anarazel.de
Whole thread Raw
In response to Re: Re: [HACKERS] Patch für MAP_HUGETLB for mmap() shared memory  (Christian Kruse <cjk+postgres@defunct.ch>)
List pgsql-hackers
On 2012-10-30 21:16:07 +0100, Christian Kruse wrote:
> +static long
> +InternalGetHugepageSize()
> +{
> +    DIR *dir = opendir(HUGE_PAGE_INFO_DIR);
> +    long smallest_size = -1, size;
> +    char *ptr;
> ...
> +    while((ent = readdir(dir)) != NULL)
> +    {

This should be (Allocate|Read)Dir btw.

Greetings,

Andres Freund

--
 Andres Freund                       http://www.2ndQuadrant.com/
 PostgreSQL Development, 24x7 Support, Training & Services



pgsql-hackers by date:

Previous
From: Noah Misch
Date:
Subject: Re: pgcrypto seeding problem when ssl=on
Next
From: Andres Freund
Date:
Subject: Re: Event Triggers: adding information