pgsql: Fix some issues in pg_rewind.

From: Fujii Masao <fujii(at)postgresql(dot)org>
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: Fix some issues in pg_rewind.
Date: 2015-06-11 13:37:03
Message-ID: E1Z32fH-0005MB-82@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

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.

Branch
------
master

Details
-------
http://git.postgresql.org/pg/commitdiff/966c37fdb5ed9b87f3e91eace4dbbed7909f6769

Modified Files
--------------
src/bin/pg_rewind/copy_fetch.c | 4 ++--
src/bin/pg_rewind/datapagemap.c | 4 ++--
src/bin/pg_rewind/file_ops.c | 6 ++++++
src/bin/pg_rewind/filemap.c | 8 ++++----
src/bin/pg_rewind/libpq_fetch.c | 4 ++--
src/bin/pg_rewind/logging.h | 2 +-
src/bin/pg_rewind/pg_rewind.c | 6 +++---
7 files changed, 20 insertions(+), 14 deletions(-)

Browse pgsql-committers by date

  From Date Subject
Next Message pgsql 2015-06-11 13:51:31 pgsql: Tag refs/tags/REL9_0_22 was created
Previous Message Amit Kapila 2015-06-11 04:25:58 Re: Re: [COMMITTERS] pgsql: Map basebackup tablespaces using a tablespace_map file