]> granicus.if.org Git - postgresql/commit
Fix reversed check of return value from sync
authorMagnus Hagander <magnus@hagander.net>
Wed, 12 Apr 2017 11:43:59 +0000 (13:43 +0200)
committerMagnus Hagander <magnus@hagander.net>
Wed, 12 Apr 2017 11:46:38 +0000 (13:46 +0200)
commitb935eb7da37254a18c48acc7b07517c8dfbb2339
treeddd83d540271276e3aad3a7ff72c47c945572a47
parent587d62d8562d658a2a9be60bc4574b6f9e592cb1
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.
src/bin/pg_basebackup/receivelog.c
src/bin/pg_basebackup/walmethods.c
src/bin/pg_basebackup/walmethods.h