diff options
Diffstat (limited to 'db/dbinc/db_dispatch.h')
-rw-r--r-- | db/dbinc/db_dispatch.h | 28 |
1 files changed, 15 insertions, 13 deletions
diff --git a/db/dbinc/db_dispatch.h b/db/dbinc/db_dispatch.h index bbaff69db..c86f2c999 100644 --- a/db/dbinc/db_dispatch.h +++ b/db/dbinc/db_dispatch.h @@ -1,8 +1,8 @@ /*- * See the file LICENSE for redistribution information. * - * Copyright (c) 1996-2004 - * Sleepycat Software. All rights reserved. + * Copyright (c) 1996-2006 + * Oracle Corporation. All rights reserved. */ /* * Copyright (c) 1995, 1996 @@ -32,12 +32,16 @@ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * - * $Id: db_dispatch.h,v 11.38 2004/07/26 19:54:08 margo Exp $ + * $Id: db_dispatch.h,v 12.8 2006/08/24 14:45:29 bostic Exp $ */ #ifndef _DB_DISPATCH_H_ #define _DB_DISPATCH_H_ +#if defined(__cplusplus) +extern "C" { +#endif + /* * Declarations and typedefs for the list of transaction IDs used during * recovery. This is a generic list used to pass along whatever information @@ -68,6 +72,7 @@ struct __db_txnhead { LIST_HEAD(__db_headlink, __db_txnlist) head[1]; }; +#define DB_LSN_STACK_SIZE 4 struct __db_txnlist { db_txnlist_type type; LIST_ENTRY(__db_txnlist) links; @@ -78,9 +83,9 @@ struct __db_txnlist { u_int32_t status; } t; struct { - u_int32_t ntxns; - u_int32_t maxn; - DB_LSN *lsn_array; + u_int32_t stack_size; + u_int32_t stack_indx; + DB_LSN *lsn_stack; } l; struct { u_int32_t nentries; @@ -95,15 +100,8 @@ struct __db_txnlist { }; /* - * Flag value for __db_txnlist_lsnadd. Distinguish whether we are replacing - * an entry in the transaction list or adding a new one. - */ -#define TXNLIST_NEW 0x1 - -/* * States for limbo list processing. */ - typedef enum { LIMBO_NORMAL, /* Normal processing. */ LIMBO_PREPARE, /* We are preparing a transaction. */ @@ -112,4 +110,8 @@ typedef enum { LIMBO_COMPENSATE /* After recover to ts, generate log records. */ } db_limbo_state; +#if defined(__cplusplus) +} +#endif + #endif /* !_DB_DISPATCH_H_ */ |