aboutsummaryrefslogtreecommitdiff
path: root/db2/txn/txn.src
diff options
context:
space:
mode:
Diffstat (limited to 'db2/txn/txn.src')
-rw-r--r--db2/txn/txn.src36
1 files changed, 31 insertions, 5 deletions
diff --git a/db2/txn/txn.src b/db2/txn/txn.src
index 04809b69d6..c9614f6d6b 100644
--- a/db2/txn/txn.src
+++ b/db2/txn/txn.src
@@ -4,26 +4,52 @@
* Copyright (c) 1996, 1997, 1998
* Sleepycat Software. All rights reserved.
*
- * @(#)txn.src 10.3 (Sleepycat) 4/10/98
+ * @(#)txn.src 10.6 (Sleepycat) 1/3/99
*/
PREFIX txn
/*
- * Everything except for checkpointing takes the same logging routine.
+ * This is the standard log operation for commit.
*/
BEGIN regop
ARG opcode u_int32_t lu
END
/*
- * This is the checkpoint record. It contains the lsn that the checkpoint
- * guarantees and a pointer to the last checkpoint so that we can walk
- * backwards by checkpoint.
+ * This is the checkpoint record. It contains the lsn that the checkpoint
+ * guarantees and a pointer to the last checkpoint so we can walk backwards
+ * by checkpoint.
+ *
* ckp_lsn:
+ * The lsn in the log of the most recent point at which all begun
+ * transactions have been aborted. This is the point for which
+ * the checkpoint is relevant.
* last_ckp:
+ * The previous checkpoint.
*/
BEGIN ckp
POINTER ckp_lsn DB_LSN * lu
POINTER last_ckp DB_LSN * lu
END
+
+/*
+ * This is the standard log operation for prepare (since right now
+ * we only use prepare in an XA environment).
+ */
+BEGIN xa_regop
+ARG opcode u_int32_t lu
+DBT xid DBT s
+ARG formatID int32_t ld
+ARG gtrid u_int32_t u
+ARG bqual u_int32_t u
+POINTER begin_lsn DB_LSN * lu
+END
+
+/*
+ * This is the log operation for a child commit.
+ */
+BEGIN child
+ARG opcode u_int32_t lu
+ARG parent u_int32_t lu
+END