Fix some issues in pg_rewind.
authorFujii Masao <fujii@postgresql.org>
Thu, 11 Jun 2015 13:31:18 +0000 (22:31 +0900)
committerFujii Masao <fujii@postgresql.org>
Thu, 11 Jun 2015 13:31:18 +0000 (22:31 +0900)
commit966c37fdb5ed9b87f3e91eace4dbbed7909f6769
tree65304d1c1ddc9b0aaeebf933e168221d2a1d77ae
parentaacb8b9277ec63ee848442ccc1aa4b3f6eab1893
Fix some issues in pg_rewind.

* Remove invalid option character "N" from the third argument (valid option
string) of getopt_long().

* Use pg_free() or pfree() to free the memory allocated by pg_malloc() or
palloc() instead of always using free().

* Assume problem is no disk space if write() fails but doesn't set errno.

* Fix several typos.

Patch by me. Review by Michael Paquier.
src/bin/pg_rewind/copy_fetch.c
src/bin/pg_rewind/datapagemap.c
src/bin/pg_rewind/file_ops.c
src/bin/pg_rewind/filemap.c
src/bin/pg_rewind/libpq_fetch.c
src/bin/pg_rewind/logging.h
src/bin/pg_rewind/pg_rewind.c