Fix minor bug in XLogFileRead() that accidentally worked.
authorSimon Riggs
Wed, 8 Aug 2012 20:28:41 +0000 (21:28 +0100)
committerSimon Riggs
Wed, 8 Aug 2012 20:28:41 +0000 (21:28 +0100)
commitdf09dbbcaa546350a78ce9f096b872fa3a28cafb
treed39c8bfbb7fc8f693b9f3a5c733632347e10ef48
parent4bf70f22296596a1b67eac92aa6a5fc367b37cb3
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
src/backend/access/transam/xlog.c