diff options
author | Tom Lane <tgl@sss.pgh.pa.us> | 2005-05-03 19:42:41 +0000 |
---|---|---|
committer | Tom Lane <tgl@sss.pgh.pa.us> | 2005-05-03 19:42:41 +0000 |
commit | 126eaef651ec96a48b18a111aa888b9be46e16fa (patch) | |
tree | 99fef9389f22acac49ac47f43431a849d5639f72 /src/backend/access/heap/heapam.c | |
parent | 893b57c871b97c9324e3eea77409e487a1e22ae8 (diff) | |
download | postgresql-126eaef651ec96a48b18a111aa888b9be46e16fa.tar.gz postgresql-126eaef651ec96a48b18a111aa888b9be46e16fa.zip |
Clean up MultiXactIdExpand's API by separating out the case where we
are creating a new MultiXactId from two regular XIDs. The original
coding was unnecessarily complicated and didn't save any code anyway.
Diffstat (limited to 'src/backend/access/heap/heapam.c')
-rw-r--r-- | src/backend/access/heap/heapam.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/backend/access/heap/heapam.c b/src/backend/access/heap/heapam.c index 06b1fdb6440..60f744001fd 100644 --- a/src/backend/access/heap/heapam.c +++ b/src/backend/access/heap/heapam.c @@ -8,7 +8,7 @@ * * * IDENTIFICATION - * $PostgreSQL: pgsql/src/backend/access/heap/heapam.c,v 1.189 2005/04/30 19:03:32 tgl Exp $ + * $PostgreSQL: pgsql/src/backend/access/heap/heapam.c,v 1.190 2005/05/03 19:42:40 tgl Exp $ * * * INTERFACE ROUTINES @@ -2137,7 +2137,7 @@ l3: * If the XMAX is already a MultiXactId, then we need to * expand it to include our own TransactionId. */ - xid = MultiXactIdExpand(xmax, true, xid); + xid = MultiXactIdExpand((MultiXactId) xmax, xid); new_infomask |= HEAP_XMAX_IS_MULTI; } else if (TransactionIdIsInProgress(xmax)) @@ -2165,7 +2165,7 @@ l3: * create a new MultiXactId that includes both the old * locker and our own TransactionId. */ - xid = MultiXactIdExpand(xmax, false, xid); + xid = MultiXactIdCreate(xmax, xid); new_infomask |= HEAP_XMAX_IS_MULTI; } } |