]> git.ipfire.org Git - thirdparty/postgresql.git/commit
Fix bug in %r handling in recovery_end_command, it always came out as 0
authorHeikki Linnakangas <heikki.linnakangas@iki.fi>
Thu, 18 Mar 2010 09:18:54 +0000 (09:18 +0000)
committerHeikki Linnakangas <heikki.linnakangas@iki.fi>
Thu, 18 Mar 2010 09:18:54 +0000 (09:18 +0000)
commit9c563b6fd0f08fa140459cc825e365514f2dcc2d
tree01a8f6040c267737035e86f5907afa2e2ddfc288
parentc487a9540cb13c344e1830beb3b149308725171f
Fix bug in %r handling in recovery_end_command, it always came out as 0
because InRedo was cleared before recovery_end_command was executed.
Also, always take ControlFileLock when reading checkpoint location for
%r. That didn't matter before, but in 8.4 bgwriter is active during
recovery and can modify the control file concurrently.
src/backend/access/transam/xlog.c