Simplify GetLockNameFromTagType.
Robert Haas <rhaas@postgresql.org>
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
| Path | Change | +/− |
|---|---|---|
| src/backend/storage/lmgr/lmgr.c | modified | +3 −13 |