postgresql/src/backend/storage
Heikki Linnakangas dad1f46382 TransferPredicateLocksToNewTarget should initialize a new lock
entry's commitSeqNo to that of the old one being transferred, or take
the minimum commitSeqNo if it is merging two lock entries.

Also, CreatePredicateLock should initialize commitSeqNo for to
InvalidSerCommitSeqNo instead of to 0. (I don't think using 0 would
actually affect anything, but we should be consistent.)

I also added a couple of assertions I used to track this down: a
lock's commitSeqNo should never be zero, and it should be
InvalidSerCommitSeqNo if and only if the lock is not held by
OldCommittedSxact.

Dan Ports, to fix leak of predicate locks reported by YAMAMOTO Takashi.
2011-04-11 13:46:37 +03:00
..
buffer pgindent run before PG 9.1 beta 1. 2011-04-10 11:42:00 -04:00
file pgindent run before PG 9.1 beta 1. 2011-04-10 11:42:00 -04:00
freespace Stamp copyrights for year 2011. 2011-01-01 13:18:15 -05:00
ipc pgindent run before PG 9.1 beta 1. 2011-04-10 11:42:00 -04:00
large_object pgindent run before PG 9.1 beta 1. 2011-04-10 11:42:00 -04:00
lmgr TransferPredicateLocksToNewTarget should initialize a new lock 2011-04-11 13:46:37 +03:00
page Stamp copyrights for year 2011. 2011-01-01 13:18:15 -05:00
smgr pgindent run before PG 9.1 beta 1. 2011-04-10 11:42:00 -04:00
Makefile Remove cvs keywords from all files. 2010-09-20 22:08:53 +02:00