2
* See the file LICENSE for redistribution information.
4
* Copyright (c) 1996-2001
5
* Sleepycat Software. All rights reserved.
8
* Copyright (c) 1995, 1996
9
* The President and Fellows of Harvard University. All rights reserved.
11
* Redistribution and use in source and binary forms, with or without
12
* modification, are permitted provided that the following conditions
14
* 1. Redistributions of source code must retain the above copyright
15
* notice, this list of conditions and the following disclaimer.
16
* 2. Redistributions in binary form must reproduce the above copyright
17
* notice, this list of conditions and the following disclaimer in the
18
* documentation and/or other materials provided with the distribution.
19
* 3. Neither the name of the University nor the names of its contributors
20
* may be used to endorse or promote products derived from this software
21
* without specific prior written permission.
23
* THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
24
* ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
25
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
26
* ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
27
* FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
28
* DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
29
* OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
30
* HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
31
* LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
32
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
35
* $Id: db_dispatch.h,v 11.19 2001/05/03 18:58:48 ubell Exp $
38
#ifndef _DB_DISPATCH_H_
39
#define _DB_DISPATCH_H_
42
* Declarations and typedefs for the list of transaction IDs used during
43
* recovery. This is a generic list used to pass along whatever information
44
* we need during recovery.
47
LIST_HEAD(__db_headlink, __db_txnlist) head;
52
#define TXNLIST_INVALID_ID 0xffffffff
55
LIST_ENTRY(__db_txnlist) links;
63
#define TXNLIST_FLAG_DELETED 0x1
64
#define TXNLIST_FLAG_CLOSED 0x2
80
db_pgno_t *pgno_array;
81
u_int8_t uid[DB_FILE_ID_LEN];
87
* Flag value for __db_txnlist_lsnadd. Distinguish whether we are replacing
88
* an entry in the transaction list or adding a new one.
91
#define TXNLIST_NEW 0x1
93
#define DB_user_BEGIN 10000