|
7 | 7 | * Portions Copyright (c) 1994, Regents of the University of California
|
8 | 8 | *
|
9 | 9 | * IDENTIFICATION
|
10 |
| - *$PostgreSQL: pgsql/src/backend/access/transam/twophase.c,v 1.33 2007/09/0518:10:47 tgl Exp $ |
| 10 | + *$PostgreSQL: pgsql/src/backend/access/transam/twophase.c,v 1.34 2007/09/0520:53:17 tgl Exp $ |
11 | 11 | *
|
12 | 12 | * NOTES
|
13 | 13 | *Each global transaction is associated with a global transaction
|
@@ -274,7 +274,8 @@ MarkAsPreparing(TransactionId xid, const char *gid,
|
274 | 274 | MemSet(&gxact->proc,0,sizeof(PGPROC));
|
275 | 275 | SHMQueueElemInit(&(gxact->proc.links));
|
276 | 276 | gxact->proc.waitStatus=STATUS_OK;
|
277 |
| -gxact->proc.lxid=InvalidLocalTransactionId; |
| 277 | +/* We set up the gxact's VXID as InvalidBackendId/XID */ |
| 278 | +gxact->proc.lxid= (LocalTransactionId)xid; |
278 | 279 | gxact->proc.xid=xid;
|
279 | 280 | gxact->proc.xmin=InvalidTransactionId;
|
280 | 281 | gxact->proc.pid=0;
|
|