3131 * Portions Copyright (c) 1996-2005, PostgreSQL Global Development Group
3232 * Portions Copyright (c) 1994, Regents of the University of California
3333 *
34- * $PostgreSQL: pgsql/src/backend/access/transam/multixact.c,v 1.2 2005/05/03 19:42:40 tgl Exp $
34+ * $PostgreSQL: pgsql/src/backend/access/transam/multixact.c,v 1.3 2005/05/07 18:14:25 tgl Exp $
3535 *
3636 *-------------------------------------------------------------------------
3737 */
@@ -310,9 +310,9 @@ MultiXactIdExpand(MultiXactId multi, TransactionId xid)
310310{
311311if (TransactionIdEquals (members [i ],xid ))
312312{
313- pfree (members );
314313debug_elog4 (DEBUG2 ,"Expand: %u is already a member of %u" ,
315314xid ,multi );
315+ pfree (members );
316316return multi ;
317317}
318318}
@@ -376,8 +376,8 @@ MultiXactIdIsRunning(MultiXactId multi)
376376{
377377if (TransactionIdEquals (members [i ],myXid ))
378378{
379- pfree (members );
380379debug_elog3 (DEBUG2 ,"IsRunning: I (%d) am running!" ,i );
380+ pfree (members );
381381return true;
382382}
383383}
@@ -391,14 +391,15 @@ MultiXactIdIsRunning(MultiXactId multi)
391391{
392392if (TransactionIdIsInProgress (members [i ]))
393393{
394- pfree (members );
395394debug_elog4 (DEBUG2 ,"IsRunning: member %d (%u) is running" ,
396- i ,members [i ]);
395+ i ,members [i ]);
396+ pfree (members );
397397return true;
398398}
399399}
400400
401401pfree (members );
402+
402403debug_elog3 (DEBUG2 ,"IsRunning: %u is not running" ,multi );
403404
404405return false;
@@ -646,6 +647,7 @@ CreateMultiXactId(int nxids, TransactionId *xids)
646647
647648/* Store the new MultiXactId in the local cache, too */
648649mXactCachePut (multi ,nxids ,xids );
650+
649651debug_elog2 (DEBUG2 ,"Create: all done" );
650652
651653return multi ;