]> granicus.if.org Git - postgresql/commit
Fix minor bug in XLogFileRead() that accidentally worked.
authorSimon Riggs <simon@2ndQuadrant.com>
Wed, 8 Aug 2012 20:25:23 +0000 (21:25 +0100)
committerSimon Riggs <simon@2ndQuadrant.com>
Wed, 8 Aug 2012 20:25:23 +0000 (21:25 +0100)
commit8143a56854a4f46968b12badb5b008f448e08ef5
tree6ef3a53d351e96f9fed6bd192329e00cfc41f900
parent21786db81fca3fca0a17da3f58cc6590615e1580
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