pgsql: Fix bug in the test of file descriptor of current WAL file in pg

Поиск
Список
Период
Сортировка
От Fujii Masao
Тема pgsql: Fix bug in the test of file descriptor of current WAL file in pg
Дата
Msg-id E1Xr2EO-0003yX-Po@gemulon.postgresql.org
обсуждение исходный текст
Список pgsql-committers
Fix bug in the test of file descriptor of current WAL file in pg_receivexlog.

In pg_receivexlog, in order to check whether the current WAL file is
being opened or not, its file descriptor has to be checked against -1
as an invalid value. But, oops, 7900e94 added the incorrect test
checking the descriptor against 1. This commit fixes that bug.

Back-patch to 9.4 where the bug was added.

Spotted by Magnus Hagander

Branch
------
master

Details
-------
http://git.postgresql.org/pg/commitdiff/d5f4df7264ec73abda41eb78b81cf430b33f7606

Modified Files
--------------
src/bin/pg_basebackup/receivelog.c |    2 +-
1 file changed, 1 insertion(+), 1 deletion(-)


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

Предыдущее
От: Fujii Masao
Дата:
Сообщение: pgsql: Fix bug in the test of file descriptor of current WAL file in pg
Следующее
От: Robert Haas
Дата:
Сообщение: pgsql: Avoid file descriptor leak in pg_test_fsync.