pgsql: Fix bug in the test of file descriptor of current WAL file in pg - Mailing list pgsql-committers

From Fujii Masao
Subject pgsql: Fix bug in the test of file descriptor of current WAL file in pg
Date
Msg-id E1Xr2EO-0003yY-Pt@gemulon.postgresql.org
Whole thread Raw
List 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
------
REL9_4_STABLE

Details
-------
http://git.postgresql.org/pg/commitdiff/78f91f1a888008f329b1a6db673713d25bbd819b

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


pgsql-committers by date:

Previous
From: Fujii Masao
Date:
Subject: pgsql: Fix pg_receivexlog --slot so that it doesn't prevent the server
Next
From: Fujii Masao
Date:
Subject: pgsql: Fix bug in the test of file descriptor of current WAL file in pg