]> granicus.if.org Git - postgresql/commit
Back-patch assorted latch-related fixes.
authorTom Lane <tgl@sss.pgh.pa.us>
Wed, 10 Aug 2011 16:20:45 +0000 (12:20 -0400)
committerTom Lane <tgl@sss.pgh.pa.us>
Wed, 10 Aug 2011 16:20:45 +0000 (12:20 -0400)
commit989f530d3f793ed1c990d705d0958bfd2a533b85
treea6676b9e587c9caf40b0e8dfd99bbd6bab4dd35f
parent74d099494c5853a44188316ba117a8909b299d40
Back-patch assorted latch-related fixes.

Fix a whole bunch of signal handlers that had been hacked to do things that
might change errno, without adding the necessary save/restore logic for
errno.  Also make some minor fixes in unix_latch.c, and clean up bizarre
and unsafe scheme for disowning the process's latch.  While at it, rename
the PGPROC latch field to procLatch for consistency with 9.2.

Issues noted while reviewing a patch by Peter Geoghegan.
src/backend/access/transam/xlog.c
src/backend/port/unix_latch.c
src/backend/replication/syncrep.c
src/backend/replication/walreceiver.c
src/backend/replication/walsender.c
src/backend/storage/lmgr/proc.c
src/backend/tcop/postgres.c
src/include/replication/syncrep.h
src/include/storage/proc.h