pgsql: Fix minor bug in XLogFileRead() that accidentally worked. - Mailing list pgsql-committers

From Simon Riggs
Subject pgsql: Fix minor bug in XLogFileRead() that accidentally worked.
Date
Msg-id E1SzCrc-0000Ml-IP@gemulon.postgresql.org
Whole thread Raw
List pgsql-committers
Fix minor bug in XLogFileRead() that accidentally worked.
Cascading replication copied the incoming file into pg_xlog but
didn't set path correctly, so the first attempt to open file failed
causing it to loop around and look for file in pg_xlog. So the
earlier coding worked, but accidentally rather than by design.

Spotted by Fujii Masao, fix by Fujii Masao and Simon Riggs

Branch
------
master

Details
-------
http://git.postgresql.org/pg/commitdiff/8143a56854a4f46968b12badb5b008f448e08ef5

Modified Files
--------------
src/backend/access/transam/xlog.c |    5 +++++
1 files changed, 5 insertions(+), 0 deletions(-)


pgsql-committers by date:

Previous
From: Simon Riggs
Date:
Subject: pgsql: fsync backup_label after pg_start_backup()
Next
From: Simon Riggs
Date:
Subject: pgsql: Fix minor bug in XLogFileRead() that accidentally worked.