Fix reversed check of return value from sync
Magnus Hagander <magnus@hagander.net>
Fix reversed check of return value from sync While at it also update the comments in walmethods.h to make it less likely for mistakes like this to appear in the future (thanks to Tom for improvements to the comments). And finally, in passing change the return type of walmethod.getlasterror to being const, also per suggestion from Tom.
Files
| Path | Change | +/− |
|---|---|---|
| src/bin/pg_basebackup/receivelog.c | modified | +4 −1 |
| src/bin/pg_basebackup/walmethods.c | modified | +2 −2 |
| src/bin/pg_basebackup/walmethods.h | modified | +45 −1 |