Commit d5f4df7
committed
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 Hagander1 parent f66c20b commit d5f4df7Copy full SHA for d5f4df7
File tree
Expand file treeCollapse file tree
1 file changed
+1
-1
lines changedOpen diff view settings
Filter options
- src/bin/pg_basebackup
Expand file treeCollapse file tree
1 file changed
+1
-1
lines changedOpen diff view settings
Collapse file
src/bin/pg_basebackup/receivelog.c
Copy file name to clipboardExpand all lines: src/bin/pg_basebackup/receivelog.c+1-1Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
1021 | 1021 | |
1022 | 1022 | |
1023 | 1023 | |
1024 | | - |
| 1024 | + |
1025 | 1025 | |
1026 | 1026 | |
1027 | 1027 | |
|
0 commit comments