Re: pg_check_dir comments and implementation mismatch

Поиск
Список
Период
Сортировка
От Marco Nenciarini
Тема Re: pg_check_dir comments and implementation mismatch
Дата
Msg-id 54CCD865.7000907@2ndquadrant.it
обсуждение исходный текст
Ответ на Re: pg_check_dir comments and implementation mismatch  (Michael Paquier <michael.paquier@gmail.com>)
Ответы Re: pg_check_dir comments and implementation mismatch  (Robert Haas <robertmhaas@gmail.com>)
Список pgsql-hackers
Il 30/01/15 03:54, Michael Paquier ha scritto:
> On Fri, Jan 30, 2015 at 2:49 AM, Tom Lane <tgl@sss.pgh.pa.us> wrote:
>> There is at least one other bug in that function now that I look at it:
>> in event of a readdir() failure, it neglects to execute closedir().
>> Perhaps not too significant since all existing callers will just exit()
>> anyway after a failure, but still ...
> I would imagine that code scanners like coverity or similar would not
> be happy about that. ISTM that it is better to closedir()
> appropriately in all the code paths.
>

I've attached a new version of the patch fixing the missing closedir on
readdir error.

Regards,
Marco

--
Marco Nenciarini - 2ndQuadrant Italy
PostgreSQL Training, Services and Support
marco.nenciarini@2ndQuadrant.it | www.2ndQuadrant.it

Вложения

В списке pgsql-hackers по дате отправления:

Предыдущее
От: Amit Kapila
Дата:
Сообщение: Re: TABLESAMPLE patch
Следующее
От: Roger Pack
Дата:
Сообщение: Re: Fwd: [GENERAL] 4B row limit for CLOB tables