]> granicus.if.org Git - postgresql/commitdiff
RecordTransactionAbort() shouldn't log XLOG_XACT_ABORT
authorHiroshi Inoue <inoue@tpf.co.jp>
Thu, 7 Dec 2000 10:03:46 +0000 (10:03 +0000)
committerHiroshi Inoue <inoue@tpf.co.jp>
Thu, 7 Dec 2000 10:03:46 +0000 (10:03 +0000)
if the transaction has already been committed ?

src/backend/access/transam/xact.c

index 129c0e263a57e25ea03747517f82b014556d2c73..6cd089fd9594e5f5b48022c3dbf629ca7a66accf 100644 (file)
@@ -8,7 +8,7 @@
  *
  *
  * IDENTIFICATION
- *       $Header: /cvsroot/pgsql/src/backend/access/transam/xact.c,v 1.87 2000/12/03 10:27:26 vadim Exp $
+ *       $Header: /cvsroot/pgsql/src/backend/access/transam/xact.c,v 1.88 2000/12/07 10:03:46 inoue Exp $
  *
  * NOTES
  *             Transaction aborts can now occur two ways:
@@ -783,7 +783,7 @@ RecordTransactionAbort(void)
 {
        TransactionId xid = GetCurrentTransactionId();
 
-       if (MyLastRecPtr.xrecoff != 0)
+       if (MyLastRecPtr.xrecoff != 0 && !TransactionIdDidCommit(xid))
        {
                xl_xact_abort   xlrec;
                XLogRecPtr              recptr;