Mercurial > hg > openjdk > jigsaw > bdb
view src/dbinc_auto/db_auto.h @ 0:a1985f14b030
Initial load
author | chegar |
---|---|
date | Fri, 11 May 2012 10:42:02 +0100 |
parents | |
children |
line wrap: on
line source
/* Do not edit: automatically built by gen_rec.awk. * * Copyright (c) 2012 Oracle and/or its affiliates. All rights reserved. * * * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License version 2 only, as * published by the Free Software Foundation. Oracle designates this * particular file as subject to the "Classpath" exception as provided * by Oracle in the LICENSE file that accompanied this code. * * This code is distributed in the hope that it will be useful, but WITHOUT * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License * version 2 for more details (a copy is included in the LICENSE file that * accompanied this code). * * You should have received a copy of the GNU General Public License version * 2 along with this work; if not, write to the Free Software Foundation, * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. * * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA * or visit www.oracle.com if you need additional information or have any * questions. */ #ifndef __db_AUTO_H #define __db_AUTO_H #include "dbinc/log.h" #define DB___db_addrem 41 typedef struct ___db_addrem_args { u_int32_t type; DB_TXN *txnp; DB_LSN prev_lsn; u_int32_t opcode; int32_t fileid; db_pgno_t pgno; u_int32_t indx; u_int32_t nbytes; DBT hdr; DBT dbt; DB_LSN pagelsn; } __db_addrem_args; extern __DB_IMPORT DB_LOG_RECSPEC __db_addrem_desc[]; static inline int __db_addrem_log(DB *dbp, DB_TXN *txnp, DB_LSN *ret_lsnp, u_int32_t flags, u_int32_t opcode, db_pgno_t pgno, u_int32_t indx, u_int32_t nbytes, const DBT *hdr, const DBT *dbt, DB_LSN * pagelsn) { return (__log_put_record((dbp)->env, dbp, txnp, ret_lsnp, flags, DB___db_addrem, 0, sizeof(u_int32_t) + sizeof(u_int32_t) + sizeof(DB_LSN) + sizeof(u_int32_t) + sizeof(u_int32_t) + sizeof(u_int32_t) + sizeof(u_int32_t) + sizeof(u_int32_t) + LOG_DBT_SIZE(hdr) + LOG_DBT_SIZE(dbt) + sizeof(*pagelsn), __db_addrem_desc, opcode, pgno, indx, nbytes, hdr, dbt, pagelsn)); } static inline int __db_addrem_read(ENV *env, DB **dbpp, void *td, void *data, __db_addrem_args **arg) { *arg = NULL; return (__log_read_record(env, dbpp, td, data, __db_addrem_desc, sizeof(__db_addrem_args), (void**)arg)); } #define DB___db_addrem_42 41 typedef struct ___db_addrem_42_args { u_int32_t type; DB_TXN *txnp; DB_LSN prev_lsn; u_int32_t opcode; int32_t fileid; db_pgno_t pgno; u_int32_t indx; u_int32_t nbytes; DBT hdr; DBT dbt; DB_LSN pagelsn; } __db_addrem_42_args; extern __DB_IMPORT DB_LOG_RECSPEC __db_addrem_42_desc[]; static inline int __db_addrem_42_read(ENV *env, DB **dbpp, void *td, void *data, __db_addrem_42_args **arg) { *arg = NULL; return (__log_read_record(env, dbpp, td, data, __db_addrem_42_desc, sizeof(__db_addrem_42_args), (void**)arg)); } #define DB___db_big 43 typedef struct ___db_big_args { u_int32_t type; DB_TXN *txnp; DB_LSN prev_lsn; u_int32_t opcode; int32_t fileid; db_pgno_t pgno; db_pgno_t prev_pgno; db_pgno_t next_pgno; DBT dbt; DB_LSN pagelsn; DB_LSN prevlsn; DB_LSN nextlsn; } __db_big_args; extern __DB_IMPORT DB_LOG_RECSPEC __db_big_desc[]; static inline int __db_big_log(DB *dbp, DB_TXN *txnp, DB_LSN *ret_lsnp, u_int32_t flags, u_int32_t opcode, db_pgno_t pgno, db_pgno_t prev_pgno, db_pgno_t next_pgno, const DBT *dbt, DB_LSN * pagelsn, DB_LSN * prevlsn, DB_LSN * nextlsn) { return (__log_put_record((dbp)->env, dbp, txnp, ret_lsnp, flags, DB___db_big, 0, sizeof(u_int32_t) + sizeof(u_int32_t) + sizeof(DB_LSN) + sizeof(u_int32_t) + sizeof(u_int32_t) + sizeof(u_int32_t) + sizeof(u_int32_t) + sizeof(u_int32_t) + LOG_DBT_SIZE(dbt) + sizeof(*pagelsn) + sizeof(*prevlsn) + sizeof(*nextlsn), __db_big_desc, opcode, pgno, prev_pgno, next_pgno, dbt, pagelsn, prevlsn, nextlsn)); } static inline int __db_big_read(ENV *env, DB **dbpp, void *td, void *data, __db_big_args **arg) { *arg = NULL; return (__log_read_record(env, dbpp, td, data, __db_big_desc, sizeof(__db_big_args), (void**)arg)); } #define DB___db_big_42 43 typedef struct ___db_big_42_args { u_int32_t type; DB_TXN *txnp; DB_LSN prev_lsn; u_int32_t opcode; int32_t fileid; db_pgno_t pgno; db_pgno_t prev_pgno; db_pgno_t next_pgno; DBT dbt; DB_LSN pagelsn; DB_LSN prevlsn; DB_LSN nextlsn; } __db_big_42_args; extern __DB_IMPORT DB_LOG_RECSPEC __db_big_42_desc[]; static inline int __db_big_42_read(ENV *env, DB **dbpp, void *td, void *data, __db_big_42_args **arg) { *arg = NULL; return (__log_read_record(env, dbpp, td, data, __db_big_42_desc, sizeof(__db_big_42_args), (void**)arg)); } #define DB___db_ovref 44 typedef struct ___db_ovref_args { u_int32_t type; DB_TXN *txnp; DB_LSN prev_lsn; int32_t fileid; db_pgno_t pgno; int32_t adjust; DB_LSN lsn; } __db_ovref_args; extern __DB_IMPORT DB_LOG_RECSPEC __db_ovref_desc[]; static inline int __db_ovref_log(DB *dbp, DB_TXN *txnp, DB_LSN *ret_lsnp, u_int32_t flags, db_pgno_t pgno, int32_t adjust, DB_LSN * lsn) { return (__log_put_record((dbp)->env, dbp, txnp, ret_lsnp, flags, DB___db_ovref, 0, sizeof(u_int32_t) + sizeof(u_int32_t) + sizeof(DB_LSN) + sizeof(u_int32_t) + sizeof(u_int32_t) + sizeof(u_int32_t) + sizeof(*lsn), __db_ovref_desc, pgno, adjust, lsn)); } static inline int __db_ovref_read(ENV *env, DB **dbpp, void *td, void *data, __db_ovref_args **arg) { *arg = NULL; return (__log_read_record(env, dbpp, td, data, __db_ovref_desc, sizeof(__db_ovref_args), (void**)arg)); } #define DB___db_relink_42 45 typedef struct ___db_relink_42_args { u_int32_t type; DB_TXN *txnp; DB_LSN prev_lsn; u_int32_t opcode; int32_t fileid; db_pgno_t pgno; DB_LSN lsn; db_pgno_t prev; DB_LSN lsn_prev; db_pgno_t next; DB_LSN lsn_next; } __db_relink_42_args; extern __DB_IMPORT DB_LOG_RECSPEC __db_relink_42_desc[]; static inline int __db_relink_42_read(ENV *env, DB **dbpp, void *td, void *data, __db_relink_42_args **arg) { *arg = NULL; return (__log_read_record(env, dbpp, td, data, __db_relink_42_desc, sizeof(__db_relink_42_args), (void**)arg)); } #define DB___db_debug 47 typedef struct ___db_debug_args { u_int32_t type; DB_TXN *txnp; DB_LSN prev_lsn; DBT op; int32_t fileid; DBT key; DBT data; u_int32_t arg_flags; } __db_debug_args; extern __DB_IMPORT DB_LOG_RECSPEC __db_debug_desc[]; static inline int __db_debug_log(ENV *env, DB_TXN *txnp, DB_LSN *ret_lsnp, u_int32_t flags, const DBT *op, int32_t fileid, const DBT *key, const DBT *data, u_int32_t arg_flags) { return (__log_put_record(env, NULL, txnp, ret_lsnp, flags, DB___db_debug, 0, sizeof(u_int32_t) + sizeof(u_int32_t) + sizeof(DB_LSN) + LOG_DBT_SIZE(op) + sizeof(u_int32_t) + LOG_DBT_SIZE(key) + LOG_DBT_SIZE(data) + sizeof(u_int32_t), __db_debug_desc, op, fileid, key, data, arg_flags)); } static inline int __db_debug_read(ENV *env, void *data, __db_debug_args **arg) { *arg = NULL; return (__log_read_record(env, NULL, NULL, data, __db_debug_desc, sizeof(__db_debug_args), (void**)arg)); } #define DB___db_noop 48 typedef struct ___db_noop_args { u_int32_t type; DB_TXN *txnp; DB_LSN prev_lsn; int32_t fileid; db_pgno_t pgno; DB_LSN prevlsn; } __db_noop_args; extern __DB_IMPORT DB_LOG_RECSPEC __db_noop_desc[]; static inline int __db_noop_log(DB *dbp, DB_TXN *txnp, DB_LSN *ret_lsnp, u_int32_t flags, db_pgno_t pgno, DB_LSN * prevlsn) { return (__log_put_record((dbp)->env, dbp, txnp, ret_lsnp, flags, DB___db_noop, 0, sizeof(u_int32_t) + sizeof(u_int32_t) + sizeof(DB_LSN) + sizeof(u_int32_t) + sizeof(u_int32_t) + sizeof(*prevlsn), __db_noop_desc, pgno, prevlsn)); } static inline int __db_noop_read(ENV *env, DB **dbpp, void *td, void *data, __db_noop_args **arg) { *arg = NULL; return (__log_read_record(env, dbpp, td, data, __db_noop_desc, sizeof(__db_noop_args), (void**)arg)); } #define DB___db_pg_alloc_42 49 typedef struct ___db_pg_alloc_42_args { u_int32_t type; DB_TXN *txnp; DB_LSN prev_lsn; int32_t fileid; DB_LSN meta_lsn; db_pgno_t meta_pgno; DB_LSN page_lsn; db_pgno_t pgno; u_int32_t ptype; db_pgno_t next; } __db_pg_alloc_42_args; extern __DB_IMPORT DB_LOG_RECSPEC __db_pg_alloc_42_desc[]; static inline int __db_pg_alloc_42_read(ENV *env, DB **dbpp, void *td, void *data, __db_pg_alloc_42_args **arg) { *arg = NULL; return (__log_read_record(env, dbpp, td, data, __db_pg_alloc_42_desc, sizeof(__db_pg_alloc_42_args), (void**)arg)); } #define DB___db_pg_alloc 49 typedef struct ___db_pg_alloc_args { u_int32_t type; DB_TXN *txnp; DB_LSN prev_lsn; int32_t fileid; DB_LSN meta_lsn; db_pgno_t meta_pgno; DB_LSN page_lsn; db_pgno_t pgno; u_int32_t ptype; db_pgno_t next; db_pgno_t last_pgno; } __db_pg_alloc_args; extern __DB_IMPORT DB_LOG_RECSPEC __db_pg_alloc_desc[]; static inline int __db_pg_alloc_log(DB *dbp, DB_TXN *txnp, DB_LSN *ret_lsnp, u_int32_t flags, DB_LSN * meta_lsn, db_pgno_t meta_pgno, DB_LSN * page_lsn, db_pgno_t pgno, u_int32_t ptype, db_pgno_t next, db_pgno_t last_pgno) { return (__log_put_record((dbp)->env, dbp, txnp, ret_lsnp, flags, DB___db_pg_alloc, 0, sizeof(u_int32_t) + sizeof(u_int32_t) + sizeof(DB_LSN) + sizeof(u_int32_t) + sizeof(*meta_lsn) + sizeof(u_int32_t) + sizeof(*page_lsn) + sizeof(u_int32_t) + sizeof(u_int32_t) + sizeof(u_int32_t) + sizeof(u_int32_t), __db_pg_alloc_desc, meta_lsn, meta_pgno, page_lsn, pgno, ptype, next, last_pgno)); } static inline int __db_pg_alloc_read(ENV *env, DB **dbpp, void *td, void *data, __db_pg_alloc_args **arg) { *arg = NULL; return (__log_read_record(env, dbpp, td, data, __db_pg_alloc_desc, sizeof(__db_pg_alloc_args), (void**)arg)); } #define DB___db_pg_free_42 50 typedef struct ___db_pg_free_42_args { u_int32_t type; DB_TXN *txnp; DB_LSN prev_lsn; int32_t fileid; db_pgno_t pgno; DB_LSN meta_lsn; db_pgno_t meta_pgno; DBT header; db_pgno_t next; } __db_pg_free_42_args; extern __DB_IMPORT DB_LOG_RECSPEC __db_pg_free_42_desc[]; static inline int __db_pg_free_42_read(ENV *env, DB **dbpp, void *td, void *data, __db_pg_free_42_args **arg) { *arg = NULL; return (__log_read_record(env, dbpp, td, data, __db_pg_free_42_desc, sizeof(__db_pg_free_42_args), (void**)arg)); } #define DB___db_pg_free 50 typedef struct ___db_pg_free_args { u_int32_t type; DB_TXN *txnp; DB_LSN prev_lsn; int32_t fileid; db_pgno_t pgno; DB_LSN meta_lsn; db_pgno_t meta_pgno; DBT header; db_pgno_t next; db_pgno_t last_pgno; } __db_pg_free_args; extern __DB_IMPORT DB_LOG_RECSPEC __db_pg_free_desc[]; static inline int __db_pg_free_log(DB *dbp, DB_TXN *txnp, DB_LSN *ret_lsnp, u_int32_t flags, db_pgno_t pgno, DB_LSN * meta_lsn, db_pgno_t meta_pgno, const DBT *header, db_pgno_t next, db_pgno_t last_pgno) { return (__log_put_record((dbp)->env, dbp, txnp, ret_lsnp, flags, DB___db_pg_free, 0, sizeof(u_int32_t) + sizeof(u_int32_t) + sizeof(DB_LSN) + sizeof(u_int32_t) + sizeof(u_int32_t) + sizeof(*meta_lsn) + sizeof(u_int32_t) + LOG_DBT_SIZE(header) + sizeof(u_int32_t) + sizeof(u_int32_t), __db_pg_free_desc, pgno, meta_lsn, meta_pgno, header, next, last_pgno)); } static inline int __db_pg_free_read(ENV *env, DB **dbpp, void *td, void *data, __db_pg_free_args **arg) { *arg = NULL; return (__log_read_record(env, dbpp, td, data, __db_pg_free_desc, sizeof(__db_pg_free_args), (void**)arg)); } #define DB___db_cksum 51 typedef struct ___db_cksum_args { u_int32_t type; DB_TXN *txnp; DB_LSN prev_lsn; } __db_cksum_args; extern __DB_IMPORT DB_LOG_RECSPEC __db_cksum_desc[]; static inline int __db_cksum_log(ENV *env, DB_TXN *txnp, DB_LSN *ret_lsnp, u_int32_t flags) { return (__log_put_record(env, NULL, txnp, ret_lsnp, flags, DB___db_cksum, 0, sizeof(u_int32_t) + sizeof(u_int32_t) + sizeof(DB_LSN), __db_cksum_desc)); } static inline int __db_cksum_read(ENV *env, void *data, __db_cksum_args **arg) { *arg = NULL; return (__log_read_record(env, NULL, NULL, data, __db_cksum_desc, sizeof(__db_cksum_args), (void**)arg)); } #define DB___db_pg_freedata_42 52 typedef struct ___db_pg_freedata_42_args { u_int32_t type; DB_TXN *txnp; DB_LSN prev_lsn; int32_t fileid; db_pgno_t pgno; DB_LSN meta_lsn; db_pgno_t meta_pgno; DBT header; db_pgno_t next; DBT data; } __db_pg_freedata_42_args; extern __DB_IMPORT DB_LOG_RECSPEC __db_pg_freedata_42_desc[]; static inline int __db_pg_freedata_42_read(ENV *env, DB **dbpp, void *td, void *data, __db_pg_freedata_42_args **arg) { *arg = NULL; return (__log_read_record(env, dbpp, td, data, __db_pg_freedata_42_desc, sizeof(__db_pg_freedata_42_args), (void**)arg)); } #define DB___db_pg_freedata 52 typedef struct ___db_pg_freedata_args { u_int32_t type; DB_TXN *txnp; DB_LSN prev_lsn; int32_t fileid; db_pgno_t pgno; DB_LSN meta_lsn; db_pgno_t meta_pgno; DBT header; db_pgno_t next; db_pgno_t last_pgno; DBT data; } __db_pg_freedata_args; extern __DB_IMPORT DB_LOG_RECSPEC __db_pg_freedata_desc[]; static inline int __db_pg_freedata_log(DB *dbp, DB_TXN *txnp, DB_LSN *ret_lsnp, u_int32_t flags, db_pgno_t pgno, DB_LSN * meta_lsn, db_pgno_t meta_pgno, const DBT *header, db_pgno_t next, db_pgno_t last_pgno, const DBT *data) { return (__log_put_record((dbp)->env, dbp, txnp, ret_lsnp, flags, DB___db_pg_freedata, 1, sizeof(u_int32_t) + sizeof(u_int32_t) + sizeof(DB_LSN) + sizeof(u_int32_t) + sizeof(u_int32_t) + sizeof(*meta_lsn) + sizeof(u_int32_t) + LOG_DBT_SIZE(header) + sizeof(u_int32_t) + sizeof(u_int32_t) + LOG_DBT_SIZE(data), __db_pg_freedata_desc, pgno, meta_lsn, meta_pgno, header, next, last_pgno, data)); } static inline int __db_pg_freedata_read(ENV *env, DB **dbpp, void *td, void *data, __db_pg_freedata_args **arg) { *arg = NULL; return (__log_read_record(env, dbpp, td, data, __db_pg_freedata_desc, sizeof(__db_pg_freedata_args), (void**)arg)); } #define DB___db_pg_init 60 typedef struct ___db_pg_init_args { u_int32_t type; DB_TXN *txnp; DB_LSN prev_lsn; int32_t fileid; db_pgno_t pgno; DBT header; DBT data; } __db_pg_init_args; extern __DB_IMPORT DB_LOG_RECSPEC __db_pg_init_desc[]; static inline int __db_pg_init_log(DB *dbp, DB_TXN *txnp, DB_LSN *ret_lsnp, u_int32_t flags, db_pgno_t pgno, const DBT *header, const DBT *data) { return (__log_put_record((dbp)->env, dbp, txnp, ret_lsnp, flags, DB___db_pg_init, 1, sizeof(u_int32_t) + sizeof(u_int32_t) + sizeof(DB_LSN) + sizeof(u_int32_t) + sizeof(u_int32_t) + LOG_DBT_SIZE(header) + LOG_DBT_SIZE(data), __db_pg_init_desc, pgno, header, data)); } static inline int __db_pg_init_read(ENV *env, DB **dbpp, void *td, void *data, __db_pg_init_args **arg) { *arg = NULL; return (__log_read_record(env, dbpp, td, data, __db_pg_init_desc, sizeof(__db_pg_init_args), (void**)arg)); } #define DB___db_pg_sort_44 61 typedef struct ___db_pg_sort_44_args { u_int32_t type; DB_TXN *txnp; DB_LSN prev_lsn; int32_t fileid; db_pgno_t meta; DB_LSN meta_lsn; db_pgno_t last_free; DB_LSN last_lsn; db_pgno_t last_pgno; DBT list; } __db_pg_sort_44_args; extern __DB_IMPORT DB_LOG_RECSPEC __db_pg_sort_44_desc[]; static inline int __db_pg_sort_44_read(ENV *env, DB **dbpp, void *td, void *data, __db_pg_sort_44_args **arg) { *arg = NULL; return (__log_read_record(env, dbpp, td, data, __db_pg_sort_44_desc, sizeof(__db_pg_sort_44_args), (void**)arg)); } #define DB___db_pg_trunc 66 typedef struct ___db_pg_trunc_args { u_int32_t type; DB_TXN *txnp; DB_LSN prev_lsn; int32_t fileid; db_pgno_t meta; DB_LSN meta_lsn; db_pgno_t last_free; DB_LSN last_lsn; db_pgno_t next_free; db_pgno_t last_pgno; DBT list; } __db_pg_trunc_args; extern __DB_IMPORT DB_LOG_RECSPEC __db_pg_trunc_desc[]; static inline int __db_pg_trunc_log(DB *dbp, DB_TXN *txnp, DB_LSN *ret_lsnp, u_int32_t flags, db_pgno_t meta, DB_LSN * meta_lsn, db_pgno_t last_free, DB_LSN * last_lsn, db_pgno_t next_free, db_pgno_t last_pgno, const DBT *list) { return (__log_put_record((dbp)->env, dbp, txnp, ret_lsnp, flags, DB___db_pg_trunc, 0, sizeof(u_int32_t) + sizeof(u_int32_t) + sizeof(DB_LSN) + sizeof(u_int32_t) + sizeof(u_int32_t) + sizeof(*meta_lsn) + sizeof(u_int32_t) + sizeof(*last_lsn) + sizeof(u_int32_t) + sizeof(u_int32_t) + LOG_DBT_SIZE(list), __db_pg_trunc_desc, meta, meta_lsn, last_free, last_lsn, next_free, last_pgno, list)); } static inline int __db_pg_trunc_read(ENV *env, DB **dbpp, void *td, void *data, __db_pg_trunc_args **arg) { *arg = NULL; return (__log_read_record(env, dbpp, td, data, __db_pg_trunc_desc, sizeof(__db_pg_trunc_args), (void**)arg)); } #define DB___db_realloc 36 typedef struct ___db_realloc_args { u_int32_t type; DB_TXN *txnp; DB_LSN prev_lsn; int32_t fileid; db_pgno_t prev_pgno; DB_LSN page_lsn; db_pgno_t next_free; u_int32_t ptype; DBT list; } __db_realloc_args; extern __DB_IMPORT DB_LOG_RECSPEC __db_realloc_desc[]; static inline int __db_realloc_log(DB *dbp, DB_TXN *txnp, DB_LSN *ret_lsnp, u_int32_t flags, db_pgno_t prev_pgno, DB_LSN * page_lsn, db_pgno_t next_free, u_int32_t ptype, const DBT *list) { return (__log_put_record((dbp)->env, dbp, txnp, ret_lsnp, flags, DB___db_realloc, 0, sizeof(u_int32_t) + sizeof(u_int32_t) + sizeof(DB_LSN) + sizeof(u_int32_t) + sizeof(u_int32_t) + sizeof(*page_lsn) + sizeof(u_int32_t) + sizeof(u_int32_t) + LOG_DBT_SIZE(list), __db_realloc_desc, prev_pgno, page_lsn, next_free, ptype, list)); } static inline int __db_realloc_read(ENV *env, DB **dbpp, void *td, void *data, __db_realloc_args **arg) { *arg = NULL; return (__log_read_record(env, dbpp, td, data, __db_realloc_desc, sizeof(__db_realloc_args), (void**)arg)); } #define DB___db_relink 147 typedef struct ___db_relink_args { u_int32_t type; DB_TXN *txnp; DB_LSN prev_lsn; int32_t fileid; db_pgno_t pgno; db_pgno_t new_pgno; db_pgno_t prev_pgno; DB_LSN lsn_prev; db_pgno_t next_pgno; DB_LSN lsn_next; } __db_relink_args; extern __DB_IMPORT DB_LOG_RECSPEC __db_relink_desc[]; static inline int __db_relink_log(DB *dbp, DB_TXN *txnp, DB_LSN *ret_lsnp, u_int32_t flags, db_pgno_t pgno, db_pgno_t new_pgno, db_pgno_t prev_pgno, DB_LSN * lsn_prev, db_pgno_t next_pgno, DB_LSN * lsn_next) { return (__log_put_record((dbp)->env, dbp, txnp, ret_lsnp, flags, DB___db_relink, 0, sizeof(u_int32_t) + sizeof(u_int32_t) + sizeof(DB_LSN) + sizeof(u_int32_t) + sizeof(u_int32_t) + sizeof(u_int32_t) + sizeof(u_int32_t) + sizeof(*lsn_prev) + sizeof(u_int32_t) + sizeof(*lsn_next), __db_relink_desc, pgno, new_pgno, prev_pgno, lsn_prev, next_pgno, lsn_next)); } static inline int __db_relink_read(ENV *env, DB **dbpp, void *td, void *data, __db_relink_args **arg) { *arg = NULL; return (__log_read_record(env, dbpp, td, data, __db_relink_desc, sizeof(__db_relink_args), (void**)arg)); } #define DB___db_merge 148 typedef struct ___db_merge_args { u_int32_t type; DB_TXN *txnp; DB_LSN prev_lsn; int32_t fileid; db_pgno_t pgno; DB_LSN lsn; db_pgno_t npgno; DB_LSN nlsn; DBT hdr; DBT data; int32_t pg_copy; } __db_merge_args; extern __DB_IMPORT DB_LOG_RECSPEC __db_merge_desc[]; static inline int __db_merge_log(DB *dbp, DB_TXN *txnp, DB_LSN *ret_lsnp, u_int32_t flags, db_pgno_t pgno, DB_LSN * lsn, db_pgno_t npgno, DB_LSN * nlsn, const DBT *hdr, const DBT *data, int32_t pg_copy) { return (__log_put_record((dbp)->env, dbp, txnp, ret_lsnp, flags, DB___db_merge, 1, sizeof(u_int32_t) + sizeof(u_int32_t) + sizeof(DB_LSN) + sizeof(u_int32_t) + sizeof(u_int32_t) + sizeof(*lsn) + sizeof(u_int32_t) + sizeof(*nlsn) + LOG_DBT_SIZE(hdr) + LOG_DBT_SIZE(data) + sizeof(u_int32_t), __db_merge_desc, pgno, lsn, npgno, nlsn, hdr, data, pg_copy)); } static inline int __db_merge_read(ENV *env, DB **dbpp, void *td, void *data, __db_merge_args **arg) { *arg = NULL; return (__log_read_record(env, dbpp, td, data, __db_merge_desc, sizeof(__db_merge_args), (void**)arg)); } #define DB___db_pgno 149 typedef struct ___db_pgno_args { u_int32_t type; DB_TXN *txnp; DB_LSN prev_lsn; int32_t fileid; db_pgno_t pgno; DB_LSN lsn; u_int32_t indx; db_pgno_t opgno; db_pgno_t npgno; } __db_pgno_args; extern __DB_IMPORT DB_LOG_RECSPEC __db_pgno_desc[]; static inline int __db_pgno_log(DB *dbp, DB_TXN *txnp, DB_LSN *ret_lsnp, u_int32_t flags, db_pgno_t pgno, DB_LSN * lsn, u_int32_t indx, db_pgno_t opgno, db_pgno_t npgno) { return (__log_put_record((dbp)->env, dbp, txnp, ret_lsnp, flags, DB___db_pgno, 0, sizeof(u_int32_t) + sizeof(u_int32_t) + sizeof(DB_LSN) + sizeof(u_int32_t) + sizeof(u_int32_t) + sizeof(*lsn) + sizeof(u_int32_t) + sizeof(u_int32_t) + sizeof(u_int32_t), __db_pgno_desc, pgno, lsn, indx, opgno, npgno)); } static inline int __db_pgno_read(ENV *env, DB **dbpp, void *td, void *data, __db_pgno_args **arg) { *arg = NULL; return (__log_read_record(env, dbpp, td, data, __db_pgno_desc, sizeof(__db_pgno_args), (void**)arg)); } #endif