2
* See the file LICENSE for redistribution information.
4
* Copyright (c) 1996-2002
5
* Sleepycat Software. All rights reserved.
13
INCLUDE #include "db_config.h"
15
INCLUDE #ifndef NO_SYSTEM_INCLUDES
16
INCLUDE #include <sys/types.h>
18
INCLUDE #include <ctype.h>
19
INCLUDE #include <string.h>
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"
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.
39
ARG opcode u_int32_t lu
40
ARG timestamp int32_t ld
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
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.
53
* The previous checkpoint.
55
* See comment in commit about timestamps.
58
POINTER ckp_lsn DB_LSN * lu
59
POINTER last_ckp DB_LSN * lu
60
ARG timestamp int32_t ld
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.
70
ARG child u_int32_t lx
71
POINTER c_lsn DB_LSN * lu
76
* This is the standard log operation for prepare.
79
ARG opcode u_int32_t lu
81
ARG formatID int32_t ld
84
POINTER begin_lsn DB_LSN * lu
88
* Log the fact that we are recycling txnids.