]> granicus.if.org Git - postgresql/commit
Remove redundant PGPROC.lockGroupLeaderIdentifier field.
authorTom Lane <tgl@sss.pgh.pa.us>
Mon, 22 Feb 2016 16:20:35 +0000 (11:20 -0500)
committerTom Lane <tgl@sss.pgh.pa.us>
Mon, 22 Feb 2016 16:20:35 +0000 (11:20 -0500)
commit73bf8715aa7430bd003516bde448507fbe789c05
tree1ddf2a5fb9d5df842bb6446c3dd43b882ee2b32c
parentea56b06cf77a6932a74f9d4ec6c950a333d1527d
Remove redundant PGPROC.lockGroupLeaderIdentifier field.

We don't really need this field, because it's either zero or redundant with
PGPROC.pid.  The use of zero to mark "not a group leader" is not necessary
since we can just as well test whether lockGroupLeader is NULL.  This does
not save very much, either as to code or data, but the simplification seems
worthwhile anyway.
src/backend/storage/lmgr/README
src/backend/storage/lmgr/proc.c
src/include/storage/proc.h