* Portions Copyright (c) 1996-2005, PostgreSQL Global Development Group
* Portions Copyright (c) 1994, Regents of the University of California
*
- * $PostgreSQL: pgsql/src/backend/access/transam/multixact.c,v 1.2 2005/05/03 19:42:40 tgl Exp $
+ * $PostgreSQL: pgsql/src/backend/access/transam/multixact.c,v 1.3 2005/05/07 18:14:25 tgl Exp $
*
*-------------------------------------------------------------------------
*/
{
if (TransactionIdEquals(members[i], xid))
{
- pfree(members);
debug_elog4(DEBUG2, "Expand: %u is already a member of %u",
xid, multi);
+ pfree(members);
return multi;
}
}
{
if (TransactionIdEquals(members[i], myXid))
{
- pfree(members);
debug_elog3(DEBUG2, "IsRunning: I (%d) am running!", i);
+ pfree(members);
return true;
}
}
{
if (TransactionIdIsInProgress(members[i]))
{
- pfree(members);
debug_elog4(DEBUG2, "IsRunning: member %d (%u) is running",
- i, members[i]);
+ i, members[i]);
+ pfree(members);
return true;
}
}
pfree(members);
+
debug_elog3(DEBUG2, "IsRunning: %u is not running", multi);
return false;
/* Store the new MultiXactId in the local cache, too */
mXactCachePut(multi, nxids, xids);
+
debug_elog2(DEBUG2, "Create: all done");
return multi;