head	1.2;
access;
symbols
	RPM_4_2_1:1.1.1.5
	RPM_4_2:1.1.1.5
	RPM_4_1_1:1.1.1.5
	RPM_4_1:1.1.1.4
	RPM_4_0_5:1.1.1.3
	RPM_4_0_4:1.1.1.2
	RPM_4_0_3:1.1.1.1
	RPM:1.1.1;
locks; strict;
comment	@# @;


1.2
date	2008.01.02.10.00.35;	author rse;	state dead;
branches;
next	1.1;
commitid	z4cpSiAhOCXk5PLs;

1.1
date	2001.07.23.20.45.49;	author rse;	state Exp;
branches
	1.1.1.1;
next	;

1.1.1.1
date	2001.07.23.20.45.49;	author rse;	state Exp;
branches;
next	1.1.1.2;

1.1.1.2
date	2002.01.08.02.20.21;	author rse;	state Exp;
branches;
next	1.1.1.3;

1.1.1.3
date	2003.01.18.13.49.13;	author rse;	state Exp;
branches;
next	1.1.1.4;

1.1.1.4
date	2001.10.15.03.47.29;	author rse;	state Exp;
branches;
next	1.1.1.5;

1.1.1.5
date	2003.01.18.14.05.16;	author rse;	state Exp;
branches;
next	;


desc
@@


1.2
log
@remove the ancient RPM 4.2.1 source tree copy
@
text
@/*-
 * See the file LICENSE for redistribution information.
 *
 * Copyright (c) 1996-2001
 *	Sleepycat Software.  All rights reserved.
 *
 * $Id: txn.src,v 1.1 2001/07/23 20:45:49 rse Exp $
 */

PREFIX	txn

INCLUDE	#include "db_config.h"
INCLUDE
INCLUDE #ifndef NO_SYSTEM_INCLUDES
INCLUDE #include <sys/types.h>
INCLUDE
INCLUDE #include <ctype.h>
INCLUDE #include <string.h>
INCLUDE #endif
INCLUDE
INCLUDE #include "db_int.h"
INCLUDE #include "db_page.h"
INCLUDE #include "db_dispatch.h"
INCLUDE #include "db_am.h"
INCLUDE #include "txn.h"
INCLUDE

/*
 * DEPRECATED in 3.1 to add timestamps.
 */
DEPRECATED old_regop		6
ARG	opcode		u_int32_t	lu
END

/*
 * This is the standard log operation for commit.
 * Note that we are using an int32_t for the timestamp.  This means that
 * in 2039 we will need to deprecate this log record and create one that
 * either changes the Epoch or has a 64-bit offset.
 */
BEGIN regop		10
ARG	opcode		u_int32_t	lu
ARG	timestamp	int32_t		ld
END

DEPRECATED old_ckp		7
POINTER	ckp_lsn		DB_LSN *	lu
POINTER	last_ckp	DB_LSN *	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.
 * timestamp:
 *	See comment in commit about timestamps.
 */
BEGIN ckp		11
POINTER	ckp_lsn		DB_LSN *	lu
POINTER	last_ckp	DB_LSN *	lu
ARG	timestamp	int32_t		ld
END

/*
 * This is the standard log operation for prepare (since right now
 * we only use prepare in an XA environment).
 */
DEPRECATED xa_regop_old		8
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
END

/*
 * This is the standard log operation for prepare (since right now
 * we only use prepare in an XA environment).
 */
BEGIN xa_regop		13
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.
 */
DEPRECATED child_old		9
ARG	opcode		u_int32_t	lu
ARG	parent		u_int32_t	lx
END

/*
 * This is the (new) log operation for a child commit.  It is
 * logged as a record in the PARENT.  The child field contains
 * the transaction ID of the child committing and the c_lsn is
 * the last LSN of the child's log trail.
 */
BEGIN child	12
ARG	child	u_int32_t	lx
POINTER	c_lsn	DB_LSN *	lu
END
@


1.1
log
@Initial revision
@
text
@d7 1
a7 1
 * $Id: txn.src,v 11.12 2001/04/05 18:58:39 bostic Exp $
@


1.1.1.1
log
@Import: RPM 4.0.3
@
text
@@


1.1.1.2
log
@Import: RPM 4.0.4
@
text
@d7 1
a7 1
 * Id: txn.src,v 11.14 2001/07/27 19:07:18 krinsky Exp 
a24 2
INCLUDE #include "log.h"
INCLUDE #include "rep.h"
d29 7
d46 5
d72 14
a85 1
 * This is the standard log operation for prepare.
d94 8
@


1.1.1.3
log
@Import: RPM 4.0.5
@
text
@d4 1
a4 1
 * Copyright (c) 1996-2002
d7 1
a7 1
 * Id: txn.src,v 11.19 2002/03/27 04:33:15 bostic Exp 
d10 1
a10 2
PREFIX	__txn
DBPRIVATE
d22 6
a27 7
INCLUDE #include "dbinc/crypto.h"
INCLUDE #include "dbinc/db_page.h"
INCLUDE #include "dbinc/db_dispatch.h"
INCLUDE #include "dbinc/db_am.h"
INCLUDE #include "dbinc/log.h"
INCLUDE #include "dbinc/rep.h"
INCLUDE #include "dbinc/txn.h"
a61 12
 * This is the (new) log operation for a child commit.  It is
 * logged as a record in the PARENT.  The child field contains
 * the transaction ID of the child committing and the c_lsn is
 * the last LSN of the child's log trail.
 */
BEGIN child		12
ARG	child	u_int32_t	lx
POINTER	c_lsn	DB_LSN *	lu
END


/*
d74 4
a77 1
 * Log the fact that we are recycling txnids.
d79 3
a81 3
BEGIN recycle		14
ARG	min		u_int32_t	u
ARG	max		u_int32_t	u
@


1.1.1.4
log
@Import: RPM 4.1
@
text
@d4 1
a4 1
 * Copyright (c) 1996-2001
d7 1
a7 1
 * Id: txn.src,v 11.14 2001/07/27 19:07:18 krinsky Exp 
d10 2
a11 1
PREFIX	txn
d23 7
a29 6
INCLUDE #include "db_page.h"
INCLUDE #include "db_dispatch.h"
INCLUDE #include "db_am.h"
INCLUDE #include "log.h"
INCLUDE #include "rep.h"
INCLUDE #include "txn.h"
d64 12
d88 1
a88 4
 * This is the (new) log operation for a child commit.  It is
 * logged as a record in the PARENT.  The child field contains
 * the transaction ID of the child committing and the c_lsn is
 * the last LSN of the child's log trail.
d90 3
a92 3
BEGIN child	12
ARG	child	u_int32_t	lx
POINTER	c_lsn	DB_LSN *	lu
@


1.1.1.5
log
@Import: RPM 4.1.1
@
text
@d4 1
a4 1
 * Copyright (c) 1996-2002
d7 1
a7 1
 * Id: txn.src,v 11.19 2002/03/27 04:33:15 bostic Exp 
d10 1
a10 2
PREFIX	__txn
DBPRIVATE
d22 6
a27 7
INCLUDE #include "dbinc/crypto.h"
INCLUDE #include "dbinc/db_page.h"
INCLUDE #include "dbinc/db_dispatch.h"
INCLUDE #include "dbinc/db_am.h"
INCLUDE #include "dbinc/log.h"
INCLUDE #include "dbinc/rep.h"
INCLUDE #include "dbinc/txn.h"
a61 12
 * This is the (new) log operation for a child commit.  It is
 * logged as a record in the PARENT.  The child field contains
 * the transaction ID of the child committing and the c_lsn is
 * the last LSN of the child's log trail.
 */
BEGIN child		12
ARG	child	u_int32_t	lx
POINTER	c_lsn	DB_LSN *	lu
END


/*
d74 4
a77 1
 * Log the fact that we are recycling txnids.
d79 3
a81 3
BEGIN recycle		14
ARG	min		u_int32_t	u
ARG	max		u_int32_t	u
@


