Managing Rollback
Hi,
What do we mean in the last two lines of the following comment?
/* ----------------
* Here we are in the middle of a
transaction block but
* one of the commands caused an abort so
we do nothing
* but remain in the abort state.
Eventually we will get
* to the "END TRANSACTION" which will set
things straight.
* ----------------
*/
case TBLOCK_ABORT:
s->blockState = TBLOCK_INPROGRESS;
AbortTransaction();
StartTransaction();
break;
Haroldo.
--
----------------------+------------------------
Haroldo Stenger | hstenger@ieee.org
Montevideo, Uruguay. | hstenger@adinet.com.uy
----------------------+------------------------
Visit UYLUG Web Site: http://www.linux.org.uy
-----------------------------------------------
hstenger@adinet.com.uy writes:
What do we mean in the last two lines of the following comment?
/* ----------------
* Here we are in the middle of a
transaction block but
* one of the commands caused an abort so
we do nothing
* but remain in the abort state.
Eventually we will get
* to the "END TRANSACTION" which will set
things straight.
* ----------------
*/
case TBLOCK_ABORT:
It just means that nothing's going to happen until the user sends
COMMIT or ROLLBACK --- the xact.c state will remain the same until
then.
regards, tom lane