mirror of
https://github.com/postgres/postgres.git
synced 2025-05-29 00:03:09 -04:00
IsTransactionBlock() should return true in TBLOCK_ABORT state.
This commit is contained in:
parent
4fa1eeb826
commit
6645a73863
@ -7,7 +7,7 @@
|
|||||||
*
|
*
|
||||||
*
|
*
|
||||||
* IDENTIFICATION
|
* IDENTIFICATION
|
||||||
* $Header: /cvsroot/pgsql/src/backend/access/transam/xact.c,v 1.49 1999/09/04 19:55:48 momjian Exp $
|
* $Header: /cvsroot/pgsql/src/backend/access/transam/xact.c,v 1.50 1999/09/05 17:12:34 tgl Exp $
|
||||||
*
|
*
|
||||||
* NOTES
|
* NOTES
|
||||||
* Transaction aborts can now occur two ways:
|
* Transaction aborts can now occur two ways:
|
||||||
@ -1530,6 +1530,7 @@ IsTransactionBlock()
|
|||||||
TransactionState s = CurrentTransactionState;
|
TransactionState s = CurrentTransactionState;
|
||||||
|
|
||||||
if (s->blockState == TBLOCK_INPROGRESS
|
if (s->blockState == TBLOCK_INPROGRESS
|
||||||
|
|| s->blockState == TBLOCK_ABORT
|
||||||
|| s->blockState == TBLOCK_ENDABORT)
|
|| s->blockState == TBLOCK_ENDABORT)
|
||||||
return true;
|
return true;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user