Simplify GetLockNameFromTagType.

Robert Haas <rhaas@postgresql.org>

Commit: a414d96ad2b001cddf10e3dedb0bde96d0af6a0b
Author: Robert Haas <rhaas@postgresql.org>
Date: 2016-03-11T02:37:22Z
Releases: 9.6.0
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.

Files

PathChange+/−
src/backend/storage/lmgr/lmgr.c modified +3 −13