#include "config.h"
#ifndef NO_SYSTEM_INCLUDES
#include <ctype.h>
#include <errno.h>
#include <stddef.h>
#include <stdlib.h>
#include <string.h>
#endif
#include "db_int.h"
#include "db_page.h"
#include "db_dispatch.h"
#include "db_am.h"
/*
* PUBLIC: int __db_addrem_log
* PUBLIC: __P((DB_LOG *, DB_TXN *, DB_LSN *, u_int32_t,
* PUBLIC: u_int32_t, u_int32_t, db_pgno_t, u_int32_t,
* PUBLIC: size_t, const DBT *, const DBT *, DB_LSN *));
*/
{
int ret;
} else
+ sizeof(opcode)
+ sizeof(fileid)
+ sizeof(pgno)
+ sizeof(indx)
+ sizeof(nbytes)
+ sizeof(*pagelsn);
return (ret);
zero = 0;
} else {
}
zero = 0;
} else {
}
else
#ifdef DIAGNOSTIC
#endif
return (ret);
}
/*
* PUBLIC: int __db_addrem_print
* PUBLIC: __P((DB_LOG *, DBT *, DB_LSN *, int, void *));
*/
int
int notused2;
void *notused3;
{
u_int32_t i;
int ret;
i = 0;
ch = 0;
notused2 = 0;
return (ret);
printf("[%lu][%lu]db_addrem: rec: %lu txnid %lx prevlsn [%lu][%lu]\n",
printf("\thdr: ");
else
}
printf("\n");
printf("\tdbt: ");
else
}
printf("\n");
printf("\tpagelsn: [%lu][%lu]\n",
printf("\n");
return (0);
}
/*
* PUBLIC: int __db_addrem_read __P((void *, __db_addrem_args **));
*/
int
void *recbuf;
{
int ret;
if (ret != 0)
return (ret);
return (0);
}
/*
* PUBLIC: int __db_split_log
* PUBLIC: __P((DB_LOG *, DB_TXN *, DB_LSN *, u_int32_t,
* PUBLIC: u_int32_t, u_int32_t, db_pgno_t, const DBT *,
* PUBLIC: DB_LSN *));
*/
{
int ret;
} else
+ sizeof(opcode)
+ sizeof(fileid)
+ sizeof(pgno)
+ sizeof(*pagelsn);
return (ret);
zero = 0;
} else {
}
else
#ifdef DIAGNOSTIC
#endif
return (ret);
}
/*
* PUBLIC: int __db_split_print
* PUBLIC: __P((DB_LOG *, DBT *, DB_LSN *, int, void *));
*/
int
int notused2;
void *notused3;
{
u_int32_t i;
int ret;
i = 0;
ch = 0;
notused2 = 0;
return (ret);
printf("[%lu][%lu]db_split: rec: %lu txnid %lx prevlsn [%lu][%lu]\n",
printf("\tpageimage: ");
else
}
printf("\n");
printf("\tpagelsn: [%lu][%lu]\n",
printf("\n");
return (0);
}
/*
* PUBLIC: int __db_split_read __P((void *, __db_split_args **));
*/
int
void *recbuf;
{
int ret;
if (ret != 0)
return (ret);
return (0);
}
/*
* PUBLIC: int __db_big_log
* PUBLIC: __P((DB_LOG *, DB_TXN *, DB_LSN *, u_int32_t,
* PUBLIC: u_int32_t, u_int32_t, db_pgno_t, db_pgno_t,
* PUBLIC: db_pgno_t, const DBT *, DB_LSN *, DB_LSN *,
* PUBLIC: DB_LSN *));
*/
{
int ret;
} else
+ sizeof(opcode)
+ sizeof(fileid)
+ sizeof(pgno)
+ sizeof(prev_pgno)
+ sizeof(next_pgno)
+ sizeof(*pagelsn)
+ sizeof(*prevlsn)
+ sizeof(*nextlsn);
return (ret);
zero = 0;
} else {
}
else
else
else
#ifdef DIAGNOSTIC
#endif
return (ret);
}
/*
* PUBLIC: int __db_big_print
* PUBLIC: __P((DB_LOG *, DBT *, DB_LSN *, int, void *));
*/
int
int notused2;
void *notused3;
{
u_int32_t i;
int ret;
i = 0;
ch = 0;
notused2 = 0;
return (ret);
printf("[%lu][%lu]db_big: rec: %lu txnid %lx prevlsn [%lu][%lu]\n",
printf("\tdbt: ");
else
}
printf("\n");
printf("\tpagelsn: [%lu][%lu]\n",
printf("\tprevlsn: [%lu][%lu]\n",
printf("\tnextlsn: [%lu][%lu]\n",
printf("\n");
return (0);
}
/*
* PUBLIC: int __db_big_read __P((void *, __db_big_args **));
*/
int
void *recbuf;
{
int ret;
if (ret != 0)
return (ret);
return (0);
}
/*
* PUBLIC: int __db_ovref_log
* PUBLIC: __P((DB_LOG *, DB_TXN *, DB_LSN *, u_int32_t,
* PUBLIC: u_int32_t, db_pgno_t, int32_t, DB_LSN *));
*/
{
int ret;
} else
+ sizeof(fileid)
+ sizeof(pgno)
+ sizeof(adjust)
+ sizeof(*lsn);
return (ret);
else
#ifdef DIAGNOSTIC
#endif
return (ret);
}
/*
* PUBLIC: int __db_ovref_print
* PUBLIC: __P((DB_LOG *, DBT *, DB_LSN *, int, void *));
*/
int
int notused2;
void *notused3;
{
u_int32_t i;
int ret;
i = 0;
ch = 0;
notused2 = 0;
return (ret);
printf("[%lu][%lu]db_ovref: rec: %lu txnid %lx prevlsn [%lu][%lu]\n",
printf("\tlsn: [%lu][%lu]\n",
printf("\n");
return (0);
}
/*
* PUBLIC: int __db_ovref_read __P((void *, __db_ovref_args **));
*/
int
void *recbuf;
{
int ret;
if (ret != 0)
return (ret);
return (0);
}
/*
* PUBLIC: int __db_relink_log
* PUBLIC: __P((DB_LOG *, DB_TXN *, DB_LSN *, u_int32_t,
* PUBLIC: u_int32_t, u_int32_t, db_pgno_t, DB_LSN *,
* PUBLIC: db_pgno_t, DB_LSN *, db_pgno_t, DB_LSN *));
*/
{
int ret;
} else
+ sizeof(opcode)
+ sizeof(fileid)
+ sizeof(pgno)
+ sizeof(*lsn)
+ sizeof(prev)
+ sizeof(*lsn_prev)
+ sizeof(next)
+ sizeof(*lsn_next);
return (ret);
else
else
else
#ifdef DIAGNOSTIC
#endif
return (ret);
}
/*
* PUBLIC: int __db_relink_print
* PUBLIC: __P((DB_LOG *, DBT *, DB_LSN *, int, void *));
*/
int
int notused2;
void *notused3;
{
u_int32_t i;
int ret;
i = 0;
ch = 0;
notused2 = 0;
return (ret);
printf("[%lu][%lu]db_relink: rec: %lu txnid %lx prevlsn [%lu][%lu]\n",
printf("\tlsn: [%lu][%lu]\n",
printf("\tlsn_prev: [%lu][%lu]\n",
printf("\tlsn_next: [%lu][%lu]\n",
printf("\n");
return (0);
}
/*
* PUBLIC: int __db_relink_read __P((void *, __db_relink_args **));
*/
int
void *recbuf;
{
int ret;
if (ret != 0)
return (ret);
return (0);
}
/*
* PUBLIC: int __db_addpage_log
* PUBLIC: __P((DB_LOG *, DB_TXN *, DB_LSN *, u_int32_t,
* PUBLIC: u_int32_t, db_pgno_t, DB_LSN *, db_pgno_t,
* PUBLIC: DB_LSN *));
*/
{
int ret;
} else
+ sizeof(fileid)
+ sizeof(pgno)
+ sizeof(*lsn)
+ sizeof(nextpgno)
+ sizeof(*nextlsn);
return (ret);
else
else
#ifdef DIAGNOSTIC
#endif
return (ret);
}
/*
* PUBLIC: int __db_addpage_print
* PUBLIC: __P((DB_LOG *, DBT *, DB_LSN *, int, void *));
*/
int
int notused2;
void *notused3;
{
u_int32_t i;
int ret;
i = 0;
ch = 0;
notused2 = 0;
return (ret);
printf("[%lu][%lu]db_addpage: rec: %lu txnid %lx prevlsn [%lu][%lu]\n",
printf("\tlsn: [%lu][%lu]\n",
printf("\tnextlsn: [%lu][%lu]\n",
printf("\n");
return (0);
}
/*
* PUBLIC: int __db_addpage_read __P((void *, __db_addpage_args **));
*/
int
void *recbuf;
{
int ret;
if (ret != 0)
return (ret);
return (0);
}
/*
* PUBLIC: int __db_debug_log
* PUBLIC: __P((DB_LOG *, DB_TXN *, DB_LSN *, u_int32_t,
* PUBLIC: const DBT *, u_int32_t, const DBT *, const DBT *,
* PUBLIC: u_int32_t));
*/
{
int ret;
} else
+ sizeof(fileid)
+ sizeof(arg_flags);
return (ret);
zero = 0;
} else {
}
zero = 0;
} else {
}
zero = 0;
} else {
}
#ifdef DIAGNOSTIC
#endif
return (ret);
}
/*
* PUBLIC: int __db_debug_print
* PUBLIC: __P((DB_LOG *, DBT *, DB_LSN *, int, void *));
*/
int
int notused2;
void *notused3;
{
u_int32_t i;
int ret;
i = 0;
ch = 0;
notused2 = 0;
return (ret);
printf("[%lu][%lu]db_debug: rec: %lu txnid %lx prevlsn [%lu][%lu]\n",
printf("\top: ");
else
}
printf("\n");
printf("\tkey: ");
else
}
printf("\n");
printf("\tdata: ");
else
}
printf("\n");
printf("\n");
return (0);
}
/*
* PUBLIC: int __db_debug_read __P((void *, __db_debug_args **));
*/
int
void *recbuf;
{
int ret;
if (ret != 0)
return (ret);
return (0);
}
/*
* PUBLIC: int __db_init_print __P((DB_ENV *));
*/
int
{
int ret;
__db_addrem_print, DB_db_addrem)) != 0)
return (ret);
__db_split_print, DB_db_split)) != 0)
return (ret);
__db_big_print, DB_db_big)) != 0)
return (ret);
__db_ovref_print, DB_db_ovref)) != 0)
return (ret);
__db_relink_print, DB_db_relink)) != 0)
return (ret);
__db_addpage_print, DB_db_addpage)) != 0)
return (ret);
__db_debug_print, DB_db_debug)) != 0)
return (ret);
return (0);
}
/*
* PUBLIC: int __db_init_recover __P((DB_ENV *));
*/
int
{
int ret;
__db_addrem_recover, DB_db_addrem)) != 0)
return (ret);
__db_split_recover, DB_db_split)) != 0)
return (ret);
__db_big_recover, DB_db_big)) != 0)
return (ret);
__db_ovref_recover, DB_db_ovref)) != 0)
return (ret);
__db_relink_recover, DB_db_relink)) != 0)
return (ret);
__db_addpage_recover, DB_db_addpage)) != 0)
return (ret);
__db_debug_recover, DB_db_debug)) != 0)
return (ret);
return (0);
}