]> granicus.if.org Git - postgresql/commit
Unbreak lock conflict detection for Hot Standby.
authorRobert Haas <rhaas@postgresql.org>
Fri, 18 Jan 2013 16:49:52 +0000 (11:49 -0500)
committerRobert Haas <rhaas@postgresql.org>
Fri, 18 Jan 2013 17:03:10 +0000 (12:03 -0500)
commit8d1fbf947dca155f6a1ad24c80c6152e65208969
treed4b663f3b10d412d002f7c8d3dae743b240e89bb
parent71c53d528568a2ee1e250d452dc5fde3f9e619b6
Unbreak lock conflict detection for Hot Standby.

This got broken in the original fast-path locking patch, because
I failed to account for the fact that Hot Standby startup process
might take a strong relation lock on a relation in a database to
which it is not bound, and confused MyDatabaseId with the database
ID of the relation being locked.

Report and diagnosis by Andres Freund.  Final form of patch by me.
src/backend/storage/lmgr/lock.c