pgsql: Only log 'process acquired lock' if we actually did get the lock.

From: tgl(at)postgresql(dot)org (Tom Lane)
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: Only log 'process acquired lock' if we actually did get the lock.
Date: 2007-06-19 22:01:15
Message-ID: 20070619220115.214319FB717@postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

Log Message:
-----------
Only log 'process acquired lock' if we actually did get the lock. This
test seems inessential right now since the only control path for not
getting the lock is via CHECK_FOR_INTERRUPTS which won't return control
to ProcSleep, but it would be important if we ever allow the deadlock
code to kill someone else's transaction instead of our own.

Modified Files:
--------------
pgsql/src/backend/storage/lmgr:
proc.c (r1.189 -> r1.190)
(http://developer.postgresql.org/cvsweb.cgi/pgsql/src/backend/storage/lmgr/proc.c.diff?r1=1.189&r2=1.190)

Browse pgsql-committers by date

  From Date Subject
Next Message User Pgunittest 2007-06-20 00:03:12 pgunittest - GeneratorParser: New Directory
Previous Message Neil Conway 2007-06-19 21:24:49 pgsql: Remove duplicate #include.