Commit 8bb4dab9 authored by Hiroshi Inoue's avatar Hiroshi Inoue

RecordTransactionAbort() shouldn't log XLOG_XACT_ABORT

if the transaction has already been committed ?
parent 5cf81b3c
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment