aboutsummaryrefslogtreecommitdiff
path: root/db2/txn/txn.src
blob: c9614f6d6b27d1393ba6c9d1ac203d6671b6e5bd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
/*-
 * See the file LICENSE for redistribution information.
 *
 * Copyright (c) 1996, 1997, 1998
 *	Sleepycat Software.  All rights reserved.
 *
 *	@(#)txn.src	10.6 (Sleepycat) 1/3/99
 */

PREFIX	txn

/*
 * 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 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