~ubuntu-branches/ubuntu/maverick/evolution-data-server/maverick-proposed

« back to all changes in this revision

Viewing changes to libdb/txn/txn.src

  • Committer: Bazaar Package Importer
  • Author(s): Didier Roche
  • Date: 2010-05-17 17:02:06 UTC
  • mfrom: (1.1.79 upstream) (1.6.12 experimental)
  • Revision ID: james.westby@ubuntu.com-20100517170206-4ufr52vwrhh26yh0
Tags: 2.30.1-1ubuntu1
* Merge from debian experimental. Remaining change:
  (LP: #42199, #229669, #173703, #360344, #508494)
  + debian/control:
    - add Vcs-Bzr tag
    - don't use libgnome
    - Use Breaks instead of Conflicts against evolution 2.25 and earlier.
  + debian/evolution-data-server.install,
    debian/patches/45_libcamel_providers_version.patch:
    - use the upstream versioning, not a Debian-specific one 
  + debian/libedata-book1.2-dev.install, debian/libebackend-1.2-dev.install,
    debian/libcamel1.2-dev.install, debian/libedataserverui1.2-dev.install:
    - install html documentation
  + debian/rules:
    - don't build documentation it's shipped with the tarball

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/*-
2
 
 * See the file LICENSE for redistribution information.
3
 
 *
4
 
 * Copyright (c) 1996-2002
5
 
 *      Sleepycat Software.  All rights reserved.
6
 
 *
7
 
 * $Id$
8
 
 */
9
 
 
10
 
PREFIX  __txn
11
 
DBPRIVATE
12
 
 
13
 
INCLUDE #include "db_config.h"
14
 
INCLUDE
15
 
INCLUDE #ifndef NO_SYSTEM_INCLUDES
16
 
INCLUDE #include <sys/types.h>
17
 
INCLUDE
18
 
INCLUDE #include <ctype.h>
19
 
INCLUDE #include <string.h>
20
 
INCLUDE #endif
21
 
INCLUDE
22
 
INCLUDE #include "db_int.h"
23
 
INCLUDE #include "dbinc/crypto.h"
24
 
INCLUDE #include "dbinc/db_page.h"
25
 
INCLUDE #include "dbinc/db_dispatch.h"
26
 
INCLUDE #include "dbinc/db_am.h"
27
 
INCLUDE #include "dbinc/log.h"
28
 
INCLUDE #include "dbinc/rep.h"
29
 
INCLUDE #include "dbinc/txn.h"
30
 
INCLUDE
31
 
 
32
 
/*
33
 
 * This is the standard log operation for commit.
34
 
 * Note that we are using an int32_t for the timestamp.  This means that
35
 
 * in 2039 we will need to deprecate this log record and create one that
36
 
 * either changes the Epoch or has a 64-bit offset.
37
 
 */
38
 
BEGIN regop             10
39
 
ARG     opcode          u_int32_t       lu
40
 
ARG     timestamp       int32_t         ld
41
 
END
42
 
 
43
 
/*
44
 
 * This is the checkpoint record.  It contains the lsn that the checkpoint
45
 
 * guarantees and a pointer to the last checkpoint so we can walk backwards
46
 
 * by checkpoint.
47
 
 *
48
 
 * ckp_lsn:
49
 
 *      The lsn in the log of the most recent point at which all begun
50
 
 *      transactions have been aborted.  This is the point for which
51
 
 *      the checkpoint is relevant.
52
 
 * last_ckp:
53
 
 *      The previous checkpoint.
54
 
 * timestamp:
55
 
 *      See comment in commit about timestamps.
56
 
 */
57
 
BEGIN ckp               11
58
 
POINTER ckp_lsn         DB_LSN *        lu
59
 
POINTER last_ckp        DB_LSN *        lu
60
 
ARG     timestamp       int32_t         ld
61
 
END
62
 
 
63
 
/*
64
 
 * This is the (new) log operation for a child commit.  It is
65
 
 * logged as a record in the PARENT.  The child field contains
66
 
 * the transaction ID of the child committing and the c_lsn is
67
 
 * the last LSN of the child's log trail.
68
 
 */
69
 
BEGIN child             12
70
 
ARG     child   u_int32_t       lx
71
 
POINTER c_lsn   DB_LSN *        lu
72
 
END
73
 
 
74
 
 
75
 
/*
76
 
 * This is the standard log operation for prepare.
77
 
 */
78
 
BEGIN xa_regop          13
79
 
ARG     opcode          u_int32_t       lu
80
 
DBT     xid             DBT             s
81
 
ARG     formatID        int32_t         ld
82
 
ARG     gtrid           u_int32_t       u
83
 
ARG     bqual           u_int32_t       u
84
 
POINTER begin_lsn       DB_LSN *        lu
85
 
END
86
 
 
87
 
/*
88
 
 * Log the fact that we are recycling txnids.
89
 
 */
90
 
BEGIN recycle           14
91
 
ARG     min             u_int32_t       u
92
 
ARG     max             u_int32_t       u
93
 
END