Simplify GetLockNameFromTagType.
authorRobert Haas <rhaas@postgresql.org>
Fri, 11 Mar 2016 02:37:22 +0000 (21:37 -0500)
committerRobert Haas <rhaas@postgresql.org>
Fri, 11 Mar 2016 02:37:22 +0000 (21:37 -0500)
commita414d96ad2b001cddf10e3dedb0bde96d0af6a0b
treef62de63f072ee37af9cf088ff781a332f1360332
parentc94f0c29cecc7944a14aa645c8a97a7250bf146b
Simplify GetLockNameFromTagType.

The old code is wrong, because it returns a pointer to an automatic
variable.  And it's also more clever than we really need to be
considering that the case it's worrying about should never happen.
src/backend/storage/lmgr/lmgr.c