pgsql: Use malloc() in GetLockConflicts() when called InHotStandby to

From: sriggs(at)postgresql(dot)org (Simon Riggs)
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: Use malloc() in GetLockConflicts() when called InHotStandby to
Date: 2010-01-28 10:05:38
Message-ID: 20100128100538.14F757541B9@cvs.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

Log Message:
-----------
Use malloc() in GetLockConflicts() when called InHotStandby to avoid repeated
palloc calls. Current code assumed this was already true, so this is a bug fix.

Modified Files:
--------------
pgsql/src/backend/storage/lmgr:
lock.c (r1.191 -> r1.192)
(http://anoncvs.postgresql.org/cvsweb.cgi/pgsql/src/backend/storage/lmgr/lock.c?r1=1.191&r2=1.192)

Responses

Browse pgsql-committers by date

  From Date Subject
Next Message Magnus Hagander 2010-01-28 11:36:14 pgsql: Define INADDR_NONE on Solaris when it's missing.
Previous Message Heikki Linnakangas 2010-01-28 07:31:42 pgsql: Change a few remaining calls of XLogArchivingActive() to use