1 /* Do not edit: automatically built by gen_rec.awk. */
2
3 #ifndef __heap_AUTO_H
4 #define __heap_AUTO_H
5 #ifdef HAVE_HEAP
6 #include "dbinc/log.h"
7 #define DB___heap_addrem 151
8 typedef struct ___heap_addrem_args {
9 u_int32_t type;
10 DB_TXN *txnp;
11 DB_LSN prev_lsn;
12 u_int32_t opcode;
13 int32_t fileid;
14 db_pgno_t pgno;
15 u_int32_t indx;
16 u_int32_t nbytes;
17 DBT hdr;
18 DBT dbt;
19 DB_LSN pagelsn;
20 } __heap_addrem_args;
21
22 extern __DB_IMPORT DB_LOG_RECSPEC __heap_addrem_desc[];
23 static inline int
__heap_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)24 __heap_addrem_log(DB *dbp, DB_TXN *txnp, DB_LSN *ret_lsnp, u_int32_t flags,
25 u_int32_t opcode, db_pgno_t pgno, u_int32_t indx, u_int32_t nbytes,
26 const DBT *hdr, const DBT *dbt, DB_LSN * pagelsn)
27 {
28 return (__log_put_record((dbp)->env, dbp, txnp, ret_lsnp,
29 flags, DB___heap_addrem, 1,
30 sizeof(u_int32_t) + sizeof(u_int32_t) + sizeof(DB_LSN) +
31 sizeof(u_int32_t) + sizeof(u_int32_t) + sizeof(u_int32_t) +
32 sizeof(u_int32_t) + sizeof(u_int32_t) + LOG_DBT_SIZE(hdr) +
33 LOG_DBT_SIZE(dbt) + sizeof(*pagelsn),
34 __heap_addrem_desc,
35 opcode, pgno, indx, nbytes, hdr, dbt, pagelsn));
36 }
37
__heap_addrem_read(ENV * env,DB ** dbpp,void * td,void * data,__heap_addrem_args ** arg)38 static inline int __heap_addrem_read(ENV *env,
39 DB **dbpp, void *td, void *data, __heap_addrem_args **arg)
40 {
41 *arg = NULL;
42 return (__log_read_record(env,
43 dbpp, td, data, __heap_addrem_desc, sizeof(__heap_addrem_args), (void**)arg));
44 }
45 #define DB___heap_addrem_60 151
46 typedef struct ___heap_addrem_60_args {
47 u_int32_t type;
48 DB_TXN *txnp;
49 DB_LSN prev_lsn;
50 u_int32_t opcode;
51 int32_t fileid;
52 db_pgno_t pgno;
53 u_int32_t indx;
54 u_int32_t nbytes;
55 DBT hdr;
56 DBT dbt;
57 DB_LSN pagelsn;
58 } __heap_addrem_60_args;
59
60 extern __DB_IMPORT DB_LOG_RECSPEC __heap_addrem_60_desc[];
__heap_addrem_60_read(ENV * env,DB ** dbpp,void * td,void * data,__heap_addrem_60_args ** arg)61 static inline int __heap_addrem_60_read(ENV *env,
62 DB **dbpp, void *td, void *data, __heap_addrem_60_args **arg)
63 {
64 *arg = NULL;
65 return (__log_read_record(env,
66 dbpp, td, data, __heap_addrem_60_desc, sizeof(__heap_addrem_60_args), (void**)arg));
67 }
68 #define DB___heap_addrem_50 151
69 typedef struct ___heap_addrem_50_args {
70 u_int32_t type;
71 DB_TXN *txnp;
72 DB_LSN prev_lsn;
73 u_int32_t opcode;
74 int32_t fileid;
75 db_pgno_t pgno;
76 u_int32_t indx;
77 u_int32_t nbytes;
78 DBT hdr;
79 DBT dbt;
80 DB_LSN pagelsn;
81 } __heap_addrem_50_args;
82
83 extern __DB_IMPORT DB_LOG_RECSPEC __heap_addrem_50_desc[];
__heap_addrem_50_read(ENV * env,DB ** dbpp,void * td,void * data,__heap_addrem_50_args ** arg)84 static inline int __heap_addrem_50_read(ENV *env,
85 DB **dbpp, void *td, void *data, __heap_addrem_50_args **arg)
86 {
87 *arg = NULL;
88 return (__log_read_record(env,
89 dbpp, td, data, __heap_addrem_50_desc, sizeof(__heap_addrem_50_args), (void**)arg));
90 }
91 #define DB___heap_pg_alloc 152
92 typedef struct ___heap_pg_alloc_args {
93 u_int32_t type;
94 DB_TXN *txnp;
95 DB_LSN prev_lsn;
96 int32_t fileid;
97 DB_LSN meta_lsn;
98 db_pgno_t meta_pgno;
99 db_pgno_t pgno;
100 u_int32_t ptype;
101 db_pgno_t last_pgno;
102 } __heap_pg_alloc_args;
103
104 extern __DB_IMPORT DB_LOG_RECSPEC __heap_pg_alloc_desc[];
105 static inline int
__heap_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_pgno_t pgno,u_int32_t ptype,db_pgno_t last_pgno)106 __heap_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_pgno_t pgno, u_int32_t ptype,
107 db_pgno_t last_pgno)
108 {
109 return (__log_put_record((dbp)->env, dbp, txnp, ret_lsnp,
110 flags, DB___heap_pg_alloc, 0,
111 sizeof(u_int32_t) + sizeof(u_int32_t) + sizeof(DB_LSN) +
112 sizeof(u_int32_t) + sizeof(*meta_lsn) + sizeof(u_int32_t) +
113 sizeof(u_int32_t) + sizeof(u_int32_t) + sizeof(u_int32_t),
114 __heap_pg_alloc_desc, meta_lsn, meta_pgno, pgno, ptype, last_pgno));
115 }
116
__heap_pg_alloc_read(ENV * env,DB ** dbpp,void * td,void * data,__heap_pg_alloc_args ** arg)117 static inline int __heap_pg_alloc_read(ENV *env,
118 DB **dbpp, void *td, void *data, __heap_pg_alloc_args **arg)
119 {
120 *arg = NULL;
121 return (__log_read_record(env,
122 dbpp, td, data, __heap_pg_alloc_desc, sizeof(__heap_pg_alloc_args), (void**)arg));
123 }
124 #define DB___heap_trunc_meta 153
125 typedef struct ___heap_trunc_meta_args {
126 u_int32_t type;
127 DB_TXN *txnp;
128 DB_LSN prev_lsn;
129 int32_t fileid;
130 db_pgno_t pgno;
131 u_int32_t last_pgno;
132 u_int32_t key_count;
133 u_int32_t record_count;
134 u_int32_t curregion;
135 u_int32_t nregions;
136 DB_LSN pagelsn;
137 } __heap_trunc_meta_args;
138
139 extern __DB_IMPORT DB_LOG_RECSPEC __heap_trunc_meta_desc[];
140 static inline int
__heap_trunc_meta_log(DB * dbp,DB_TXN * txnp,DB_LSN * ret_lsnp,u_int32_t flags,db_pgno_t pgno,u_int32_t last_pgno,u_int32_t key_count,u_int32_t record_count,u_int32_t curregion,u_int32_t nregions,DB_LSN * pagelsn)141 __heap_trunc_meta_log(DB *dbp, DB_TXN *txnp, DB_LSN *ret_lsnp, u_int32_t flags, db_pgno_t pgno, u_int32_t last_pgno, u_int32_t key_count, u_int32_t record_count,
142 u_int32_t curregion, u_int32_t nregions, DB_LSN * pagelsn)
143 {
144 return (__log_put_record((dbp)->env, dbp, txnp, ret_lsnp,
145 flags, DB___heap_trunc_meta, 0,
146 sizeof(u_int32_t) + sizeof(u_int32_t) + sizeof(DB_LSN) +
147 sizeof(u_int32_t) + sizeof(u_int32_t) + sizeof(u_int32_t) +
148 sizeof(u_int32_t) + sizeof(u_int32_t) + sizeof(u_int32_t) +
149 sizeof(u_int32_t) + sizeof(*pagelsn),
150 __heap_trunc_meta_desc, pgno, last_pgno, key_count, record_count, curregion, nregions, pagelsn));
151 }
152
__heap_trunc_meta_read(ENV * env,DB ** dbpp,void * td,void * data,__heap_trunc_meta_args ** arg)153 static inline int __heap_trunc_meta_read(ENV *env,
154 DB **dbpp, void *td, void *data, __heap_trunc_meta_args **arg)
155 {
156 *arg = NULL;
157 return (__log_read_record(env,
158 dbpp, td, data, __heap_trunc_meta_desc, sizeof(__heap_trunc_meta_args), (void**)arg));
159 }
160 #define DB___heap_trunc_page 154
161 typedef struct ___heap_trunc_page_args {
162 u_int32_t type;
163 DB_TXN *txnp;
164 DB_LSN prev_lsn;
165 int32_t fileid;
166 db_pgno_t pgno;
167 DBT old_data;
168 u_int32_t is_region;
169 DB_LSN pagelsn;
170 } __heap_trunc_page_args;
171
172 extern __DB_IMPORT DB_LOG_RECSPEC __heap_trunc_page_desc[];
173 static inline int
__heap_trunc_page_log(DB * dbp,DB_TXN * txnp,DB_LSN * ret_lsnp,u_int32_t flags,db_pgno_t pgno,const DBT * old_data,u_int32_t is_region,DB_LSN * pagelsn)174 __heap_trunc_page_log(DB *dbp, DB_TXN *txnp, DB_LSN *ret_lsnp, u_int32_t flags, db_pgno_t pgno, const DBT *old_data, u_int32_t is_region, DB_LSN * pagelsn)
175 {
176 return (__log_put_record((dbp)->env, dbp, txnp, ret_lsnp,
177 flags, DB___heap_trunc_page, 0,
178 sizeof(u_int32_t) + sizeof(u_int32_t) + sizeof(DB_LSN) +
179 sizeof(u_int32_t) + sizeof(u_int32_t) + LOG_DBT_SIZE(old_data) +
180 sizeof(u_int32_t) + sizeof(*pagelsn),
181 __heap_trunc_page_desc, pgno, old_data, is_region, pagelsn));
182 }
183
__heap_trunc_page_read(ENV * env,DB ** dbpp,void * td,void * data,__heap_trunc_page_args ** arg)184 static inline int __heap_trunc_page_read(ENV *env,
185 DB **dbpp, void *td, void *data, __heap_trunc_page_args **arg)
186 {
187 *arg = NULL;
188 return (__log_read_record(env,
189 dbpp, td, data, __heap_trunc_page_desc, sizeof(__heap_trunc_page_args), (void**)arg));
190 }
191 #endif /* HAVE_HEAP */
192 #endif
193