1 /* Do not edit: automatically built by gen_rec.awk. */
6 #include "dbinc/crypto.h"
7 #include "dbinc/db_page.h"
8 #include "dbinc/db_am.h"
10 #include "dbinc/txn.h"
11 #include "dbinc/fop.h"
14 * PUBLIC: int __fop_create_42_print __P((ENV *, DBT *, DB_LSN *,
15 * PUBLIC: db_recops, void *));
18 __fop_create_42_print(env, dbtp, lsnp, notused2, notused3)
25 __fop_create_42_args *argp;
30 notused2 = DB_TXN_PRINT;
33 if ((ret = __fop_create_42_read(env, dbtp->data, &argp)) != 0)
36 "[%lu][%lu]__fop_create_42%s: rec: %lu txnp %lx prevlsn [%lu][%lu]\n",
37 (u_long)lsnp->file, (u_long)lsnp->offset,
38 (argp->type & DB_debug_FLAG) ? "_debug" : "",
40 (u_long)argp->txnp->txnid,
41 (u_long)argp->prev_lsn.file, (u_long)argp->prev_lsn.offset);
42 (void)printf("\tname: ");
43 for (i = 0; i < argp->name.size; i++) {
44 ch = ((u_int8_t *)argp->name.data)[i];
45 printf(isprint(ch) || ch == 0x0a ? "%c" : "%#x ", ch);
48 (void)printf("\tappname: %lu\n", (u_long)argp->appname);
49 (void)printf("\tmode: %o\n", argp->mode);
56 * PUBLIC: int __fop_create_print __P((ENV *, DBT *, DB_LSN *,
57 * PUBLIC: db_recops, void *));
60 __fop_create_print(env, dbtp, lsnp, notused2, notused3)
67 __fop_create_args *argp;
72 notused2 = DB_TXN_PRINT;
75 if ((ret = __fop_create_read(env, dbtp->data, &argp)) != 0)
78 "[%lu][%lu]__fop_create%s: rec: %lu txnp %lx prevlsn [%lu][%lu]\n",
79 (u_long)lsnp->file, (u_long)lsnp->offset,
80 (argp->type & DB_debug_FLAG) ? "_debug" : "",
82 (u_long)argp->txnp->txnid,
83 (u_long)argp->prev_lsn.file, (u_long)argp->prev_lsn.offset);
84 (void)printf("\tname: ");
85 for (i = 0; i < argp->name.size; i++) {
86 ch = ((u_int8_t *)argp->name.data)[i];
87 printf(isprint(ch) || ch == 0x0a ? "%c" : "%#x ", ch);
90 (void)printf("\tdirname: ");
91 for (i = 0; i < argp->dirname.size; i++) {
92 ch = ((u_int8_t *)argp->dirname.data)[i];
93 printf(isprint(ch) || ch == 0x0a ? "%c" : "%#x ", ch);
96 (void)printf("\tappname: %lu\n", (u_long)argp->appname);
97 (void)printf("\tmode: %o\n", argp->mode);
104 * PUBLIC: int __fop_remove_print __P((ENV *, DBT *, DB_LSN *,
105 * PUBLIC: db_recops, void *));
108 __fop_remove_print(env, dbtp, lsnp, notused2, notused3)
115 __fop_remove_args *argp;
120 notused2 = DB_TXN_PRINT;
123 if ((ret = __fop_remove_read(env, dbtp->data, &argp)) != 0)
126 "[%lu][%lu]__fop_remove%s: rec: %lu txnp %lx prevlsn [%lu][%lu]\n",
127 (u_long)lsnp->file, (u_long)lsnp->offset,
128 (argp->type & DB_debug_FLAG) ? "_debug" : "",
130 (u_long)argp->txnp->txnid,
131 (u_long)argp->prev_lsn.file, (u_long)argp->prev_lsn.offset);
132 (void)printf("\tname: ");
133 for (i = 0; i < argp->name.size; i++) {
134 ch = ((u_int8_t *)argp->name.data)[i];
135 printf(isprint(ch) || ch == 0x0a ? "%c" : "%#x ", ch);
138 (void)printf("\tfid: ");
139 for (i = 0; i < argp->fid.size; i++) {
140 ch = ((u_int8_t *)argp->fid.data)[i];
141 printf(isprint(ch) || ch == 0x0a ? "%c" : "%#x ", ch);
144 (void)printf("\tappname: %lu\n", (u_long)argp->appname);
146 __os_free(env, argp);
151 * PUBLIC: int __fop_write_42_print __P((ENV *, DBT *, DB_LSN *,
152 * PUBLIC: db_recops, void *));
155 __fop_write_42_print(env, dbtp, lsnp, notused2, notused3)
162 __fop_write_42_args *argp;
167 notused2 = DB_TXN_PRINT;
170 if ((ret = __fop_write_42_read(env, dbtp->data, &argp)) != 0)
173 "[%lu][%lu]__fop_write_42%s: rec: %lu txnp %lx prevlsn [%lu][%lu]\n",
174 (u_long)lsnp->file, (u_long)lsnp->offset,
175 (argp->type & DB_debug_FLAG) ? "_debug" : "",
177 (u_long)argp->txnp->txnid,
178 (u_long)argp->prev_lsn.file, (u_long)argp->prev_lsn.offset);
179 (void)printf("\tname: ");
180 for (i = 0; i < argp->name.size; i++) {
181 ch = ((u_int8_t *)argp->name.data)[i];
182 printf(isprint(ch) || ch == 0x0a ? "%c" : "%#x ", ch);
185 (void)printf("\tappname: %lu\n", (u_long)argp->appname);
186 (void)printf("\tpgsize: %lu\n", (u_long)argp->pgsize);
187 (void)printf("\tpageno: %lu\n", (u_long)argp->pageno);
188 (void)printf("\toffset: %lu\n", (u_long)argp->offset);
189 (void)printf("\tpage: ");
190 for (i = 0; i < argp->page.size; i++) {
191 ch = ((u_int8_t *)argp->page.data)[i];
192 printf(isprint(ch) || ch == 0x0a ? "%c" : "%#x ", ch);
195 (void)printf("\tflag: %lu\n", (u_long)argp->flag);
197 __os_free(env, argp);
202 * PUBLIC: int __fop_write_print __P((ENV *, DBT *, DB_LSN *,
203 * PUBLIC: db_recops, void *));
206 __fop_write_print(env, dbtp, lsnp, notused2, notused3)
213 __fop_write_args *argp;
218 notused2 = DB_TXN_PRINT;
221 if ((ret = __fop_write_read(env, dbtp->data, &argp)) != 0)
224 "[%lu][%lu]__fop_write%s: rec: %lu txnp %lx prevlsn [%lu][%lu]\n",
225 (u_long)lsnp->file, (u_long)lsnp->offset,
226 (argp->type & DB_debug_FLAG) ? "_debug" : "",
228 (u_long)argp->txnp->txnid,
229 (u_long)argp->prev_lsn.file, (u_long)argp->prev_lsn.offset);
230 (void)printf("\tname: ");
231 for (i = 0; i < argp->name.size; i++) {
232 ch = ((u_int8_t *)argp->name.data)[i];
233 printf(isprint(ch) || ch == 0x0a ? "%c" : "%#x ", ch);
236 (void)printf("\tdirname: ");
237 for (i = 0; i < argp->dirname.size; i++) {
238 ch = ((u_int8_t *)argp->dirname.data)[i];
239 printf(isprint(ch) || ch == 0x0a ? "%c" : "%#x ", ch);
242 (void)printf("\tappname: %lu\n", (u_long)argp->appname);
243 (void)printf("\tpgsize: %lu\n", (u_long)argp->pgsize);
244 (void)printf("\tpageno: %lu\n", (u_long)argp->pageno);
245 (void)printf("\toffset: %lu\n", (u_long)argp->offset);
246 (void)printf("\tpage: ");
247 for (i = 0; i < argp->page.size; i++) {
248 ch = ((u_int8_t *)argp->page.data)[i];
249 printf(isprint(ch) || ch == 0x0a ? "%c" : "%#x ", ch);
252 (void)printf("\tflag: %lu\n", (u_long)argp->flag);
254 __os_free(env, argp);
259 * PUBLIC: int __fop_rename_42_print __P((ENV *, DBT *, DB_LSN *,
260 * PUBLIC: db_recops, void *));
263 __fop_rename_42_print(env, dbtp, lsnp, notused2, notused3)
270 __fop_rename_42_args *argp;
275 notused2 = DB_TXN_PRINT;
278 if ((ret = __fop_rename_42_read(env, dbtp->data, &argp)) != 0)
281 "[%lu][%lu]__fop_rename_42%s: rec: %lu txnp %lx prevlsn [%lu][%lu]\n",
282 (u_long)lsnp->file, (u_long)lsnp->offset,
283 (argp->type & DB_debug_FLAG) ? "_debug" : "",
285 (u_long)argp->txnp->txnid,
286 (u_long)argp->prev_lsn.file, (u_long)argp->prev_lsn.offset);
287 (void)printf("\toldname: ");
288 for (i = 0; i < argp->oldname.size; i++) {
289 ch = ((u_int8_t *)argp->oldname.data)[i];
290 printf(isprint(ch) || ch == 0x0a ? "%c" : "%#x ", ch);
293 (void)printf("\tnewname: ");
294 for (i = 0; i < argp->newname.size; i++) {
295 ch = ((u_int8_t *)argp->newname.data)[i];
296 printf(isprint(ch) || ch == 0x0a ? "%c" : "%#x ", ch);
299 (void)printf("\tfileid: ");
300 for (i = 0; i < argp->fileid.size; i++) {
301 ch = ((u_int8_t *)argp->fileid.data)[i];
302 printf(isprint(ch) || ch == 0x0a ? "%c" : "%#x ", ch);
305 (void)printf("\tappname: %lu\n", (u_long)argp->appname);
307 __os_free(env, argp);
312 * PUBLIC: int __fop_rename_print __P((ENV *, DBT *, DB_LSN *,
313 * PUBLIC: db_recops, void *));
316 __fop_rename_print(env, dbtp, lsnp, notused2, notused3)
323 __fop_rename_args *argp;
328 notused2 = DB_TXN_PRINT;
331 if ((ret = __fop_rename_read(env, dbtp->data, &argp)) != 0)
334 "[%lu][%lu]__fop_rename%s: rec: %lu txnp %lx prevlsn [%lu][%lu]\n",
335 (u_long)lsnp->file, (u_long)lsnp->offset,
336 (argp->type & DB_debug_FLAG) ? "_debug" : "",
338 (u_long)argp->txnp->txnid,
339 (u_long)argp->prev_lsn.file, (u_long)argp->prev_lsn.offset);
340 (void)printf("\toldname: ");
341 for (i = 0; i < argp->oldname.size; i++) {
342 ch = ((u_int8_t *)argp->oldname.data)[i];
343 printf(isprint(ch) || ch == 0x0a ? "%c" : "%#x ", ch);
346 (void)printf("\tnewname: ");
347 for (i = 0; i < argp->newname.size; i++) {
348 ch = ((u_int8_t *)argp->newname.data)[i];
349 printf(isprint(ch) || ch == 0x0a ? "%c" : "%#x ", ch);
352 (void)printf("\tdirname: ");
353 for (i = 0; i < argp->dirname.size; i++) {
354 ch = ((u_int8_t *)argp->dirname.data)[i];
355 printf(isprint(ch) || ch == 0x0a ? "%c" : "%#x ", ch);
358 (void)printf("\tfileid: ");
359 for (i = 0; i < argp->fileid.size; i++) {
360 ch = ((u_int8_t *)argp->fileid.data)[i];
361 printf(isprint(ch) || ch == 0x0a ? "%c" : "%#x ", ch);
364 (void)printf("\tappname: %lu\n", (u_long)argp->appname);
366 __os_free(env, argp);
371 * PUBLIC: int __fop_file_remove_print __P((ENV *, DBT *, DB_LSN *,
372 * PUBLIC: db_recops, void *));
375 __fop_file_remove_print(env, dbtp, lsnp, notused2, notused3)
382 __fop_file_remove_args *argp;
387 notused2 = DB_TXN_PRINT;
390 if ((ret = __fop_file_remove_read(env, dbtp->data, &argp)) != 0)
393 "[%lu][%lu]__fop_file_remove%s: rec: %lu txnp %lx prevlsn [%lu][%lu]\n",
394 (u_long)lsnp->file, (u_long)lsnp->offset,
395 (argp->type & DB_debug_FLAG) ? "_debug" : "",
397 (u_long)argp->txnp->txnid,
398 (u_long)argp->prev_lsn.file, (u_long)argp->prev_lsn.offset);
399 (void)printf("\treal_fid: ");
400 for (i = 0; i < argp->real_fid.size; i++) {
401 ch = ((u_int8_t *)argp->real_fid.data)[i];
402 printf(isprint(ch) || ch == 0x0a ? "%c" : "%#x ", ch);
405 (void)printf("\ttmp_fid: ");
406 for (i = 0; i < argp->tmp_fid.size; i++) {
407 ch = ((u_int8_t *)argp->tmp_fid.data)[i];
408 printf(isprint(ch) || ch == 0x0a ? "%c" : "%#x ", ch);
411 (void)printf("\tname: ");
412 for (i = 0; i < argp->name.size; i++) {
413 ch = ((u_int8_t *)argp->name.data)[i];
414 printf(isprint(ch) || ch == 0x0a ? "%c" : "%#x ", ch);
417 (void)printf("\tappname: %lu\n", (u_long)argp->appname);
418 (void)printf("\tchild: 0x%lx\n", (u_long)argp->child);
420 __os_free(env, argp);
425 * PUBLIC: int __fop_init_print __P((ENV *, DB_DISTAB *));
428 __fop_init_print(env, dtabp)
434 if ((ret = __db_add_recovery_int(env, dtabp,
435 __fop_create_print, DB___fop_create)) != 0)
437 if ((ret = __db_add_recovery_int(env, dtabp,
438 __fop_remove_print, DB___fop_remove)) != 0)
440 if ((ret = __db_add_recovery_int(env, dtabp,
441 __fop_write_print, DB___fop_write)) != 0)
443 if ((ret = __db_add_recovery_int(env, dtabp,
444 __fop_rename_print, DB___fop_rename)) != 0)
446 if ((ret = __db_add_recovery_int(env, dtabp,
447 __fop_rename_print, DB___fop_rename_noundo)) != 0)
449 if ((ret = __db_add_recovery_int(env, dtabp,
450 __fop_file_remove_print, DB___fop_file_remove)) != 0)