Skip to content

Commit 6645a73

Browse files
committed
IsTransactionBlock() should return true in TBLOCK_ABORT state.
1 parent 4fa1eeb commit 6645a73

File tree

1 file changed

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

1 file changed

+2
-1
lines changed

src/backend/access/transam/xact.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
*
88
*
99
* IDENTIFICATION
10-
* $Header: /cvsroot/pgsql/src/backend/access/transam/xact.c,v 1.49 1999/09/04 19:55:48 momjian Exp $
10+
* $Header: /cvsroot/pgsql/src/backend/access/transam/xact.c,v 1.50 1999/09/05 17:12:34 tgl Exp $
1111
*
1212
* NOTES
1313
* Transaction aborts can now occur two ways:
@@ -1530,6 +1530,7 @@ IsTransactionBlock()
15301530
TransactionState s = CurrentTransactionState;
15311531

15321532
if (s->blockState == TBLOCK_INPROGRESS
1533+
|| s->blockState == TBLOCK_ABORT
15331534
|| s->blockState == TBLOCK_ENDABORT)
15341535
return true;
15351536

0 commit comments

Comments
 (0)