Skip to content

Commit 8bb4dab

Browse files
author
Hiroshi Inoue
committed
RecordTransactionAbort() shouldn't log XLOG_XACT_ABORT
if the transaction has already been committed ?
1 parent 5cf81b3 commit 8bb4dab

File tree

1 file changed

+2
-2
lines changed
  • src/backend/access/transam

1 file changed

+2
-2
lines changed

src/backend/access/transam/xact.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
*
99
*
1010
* IDENTIFICATION
11-
* $Header: /cvsroot/pgsql/src/backend/access/transam/xact.c,v 1.87 2000/12/03 10:27:26 vadim Exp $
11+
* $Header: /cvsroot/pgsql/src/backend/access/transam/xact.c,v 1.88 2000/12/07 10:03:46 inoue Exp $
1212
*
1313
* NOTES
1414
* Transaction aborts can now occur two ways:
@@ -783,7 +783,7 @@ RecordTransactionAbort(void)
783783
{
784784
TransactionId xid = GetCurrentTransactionId();
785785

786-
if (MyLastRecPtr.xrecoff != 0)
786+
if (MyLastRecPtr.xrecoff != 0 && !TransactionIdDidCommit(xid))
787787
{
788788
xl_xact_abort xlrec;
789789
XLogRecPtr recptr;

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy