📄 txn.src
字号:
/*- * See the file LICENSE for redistribution information. * * Copyright (c) 1996-2002 * Sleepycat Software. All rights reserved. * * $Id: txn.src,v 11.19 2002/03/27 04:33:15 bostic Exp $ */PREFIX __txnDBPRIVATEINCLUDE #include "db_config.h"INCLUDEINCLUDE #ifndef NO_SYSTEM_INCLUDESINCLUDE #include <sys/types.h>INCLUDEINCLUDE #include <ctype.h>INCLUDE #include <string.h>INCLUDE #endifINCLUDEINCLUDE #include "db_int.h"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"INCLUDE/* * 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 10ARG opcode u_int32_t luARG timestamp int32_t ldEND/* * 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 11POINTER ckp_lsn DB_LSN * luPOINTER last_ckp DB_LSN * luARG timestamp int32_t ldEND/* * 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 12ARG child u_int32_t lxPOINTER c_lsn DB_LSN * luEND/* * This is the standard log operation for prepare. */BEGIN xa_regop 13ARG opcode u_int32_t luDBT xid DBT sARG formatID int32_t ldARG gtrid u_int32_t uARG bqual u_int32_t uPOINTER begin_lsn DB_LSN * luEND/* * Log the fact that we are recycling txnids. */BEGIN recycle 14ARG min u_int32_t uARG max u_int32_t uEND
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -