pgsql: Fix overly-complicated usage of errcode_for_file_access(). - Mailing list pgsql-committers

From Heikki Linnakangas
Subject pgsql: Fix overly-complicated usage of errcode_for_file_access().
Date
Msg-id E1RHfMf-0000TM-Vu@gemulon.postgresql.org
Whole thread Raw
List pgsql-committers
Fix overly-complicated usage of errcode_for_file_access().

No need to do  "errcode(errcode_for_file_access())", just
"errcode_for_file_access()" is enough. The extra errcode() call is useless
but harmless, so there's no user-visible bug here. Nevertheless, backpatch
to 9.1 where this code were added.

Branch
------
master

Details
-------
http://git.postgresql.org/pg/commitdiff/b436c72f61adf5efab435c282bfb13a29508d475

Modified Files
--------------
src/backend/replication/basebackup.c |    6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)


pgsql-committers by date:

Previous
From: Heikki Linnakangas
Date:
Subject: pgsql: Fix overly-complicated usage of errcode_for_file_access().
Next
From: Tom Lane
Date:
Subject: pgsql: Support synchronization of snapshots through an export/import pr