Some refinement for the "fast path" lock patch.
authorRobert Haas <rhaas@postgresql.org>
Tue, 19 Jul 2011 16:10:15 +0000 (12:10 -0400)
committerRobert Haas <rhaas@postgresql.org>
Fri, 1 Jun 2012 12:29:52 +0000 (08:29 -0400)
commit72bfe6221b23982044038d461698b1939948ce5a
tree4ca0882706cfc85ce94b3298db57de251f3087eb
parent27c6d50e83647af688740e75ca1b9f62900507f1
Some refinement for the "fast path" lock patch.

1. In GetLockStatusData, avoid initializing instance before we've ensured
that the array is large enough.  Otherwise, if repalloc moves the block
around, we're hosed.

2. Add the word "Relation" to the name of some identifiers, to avoid
assuming that the fast-path mechanism will only ever apply to relations
(though these particular parts certainly will).  Some of the macros
could possibly use similar treatment, but the names are getting awfully
long already.

3. Add a missing word to comment in AtPrepare_Locks().
src/backend/storage/lmgr/lock.c