pgsql: Simplify GetLockNameFromTagType.

From: Robert Haas <rhaas(at)postgresql(dot)org>
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: Simplify GetLockNameFromTagType.
Date: 2016-03-11 02:38:23
Message-ID: E1aeCy7-0006pw-K3@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

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.

Branch
------
master

Details
-------
http://git.postgresql.org/pg/commitdiff/a414d96ad2b001cddf10e3dedb0bde96d0af6a0b

Modified Files
--------------
src/backend/storage/lmgr/lmgr.c | 16 +++-------------
1 file changed, 3 insertions(+), 13 deletions(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Michael Paquier 2016-03-11 03:46:31 Re: pgsql: Checkpoint sorting and balancing.
Previous Message Robert Haas 2016-03-11 02:36:14 Re: [COMMITTERS] pgsql: Provide much better wait information in pg_stat_activity.