From: Hiroshi Inoue Date: Thu, 7 Dec 2000 10:03:46 +0000 (+0000) Subject: RecordTransactionAbort() shouldn't log XLOG_XACT_ABORT X-Git-Tag: REL7_1_BETA2~236 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=8bb4dab94d26e330cc1f0327b99753d89f5c90ee;p=postgresql RecordTransactionAbort() shouldn't log XLOG_XACT_ABORT if the transaction has already been committed ? --- diff --git a/src/backend/access/transam/xact.c b/src/backend/access/transam/xact.c index 129c0e263a..6cd089fd95 100644 --- a/src/backend/access/transam/xact.c +++ b/src/backend/access/transam/xact.c @@ -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;