forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commiteeb01eb
committed
Remove pointless error-code checking in pg_dump/parallel.c.
Commitfe27009 tried to make parallel.c's Windows implementation ofpiperead() translate Windows socket errors to Unix, but that didn'tactually work because TranslateSocketError() is backend-internal code(and not even public there). But on closer inspection, the solecaller of this function doesn't actually care whether the result iszero or negative, much less inspect the errno. So the whole exerciseis totally useless, and has been since this code was introduced.Rip it out and just call recv() directly.Per buildfarm.Discussion:https://postgr.es/m/2621622.1602184554@sss.pgh.pa.us1 parent961e07b commiteeb01eb
1 file changed
+1
-22
lines changedLines changed: 1 addition & 22 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
130 | 130 |
| |
131 | 131 |
| |
132 | 132 |
| |
133 |
| - | |
| 133 | + | |
134 | 134 |
| |
135 | 135 |
| |
136 | 136 |
| |
| |||
1817 | 1817 |
| |
1818 | 1818 |
| |
1819 | 1819 |
| |
1820 |
| - | |
1821 |
| - | |
1822 |
| - | |
1823 |
| - | |
1824 |
| - | |
1825 |
| - | |
1826 |
| - | |
1827 |
| - | |
1828 |
| - | |
1829 |
| - | |
1830 |
| - | |
1831 |
| - | |
1832 |
| - | |
1833 |
| - | |
1834 |
| - | |
1835 |
| - | |
1836 |
| - | |
1837 |
| - | |
1838 |
| - | |
1839 |
| - | |
1840 |
| - | |
1841 | 1820 |
|
0 commit comments
Comments
(0)