#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 "hash.h"
#include "db_am.h"
/*
* PUBLIC: int __ham_insdel_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: DB_LSN *, const DBT *, const DBT *));
*/
data)
{
int ret;
} else
+ sizeof(opcode)
+ sizeof(fileid)
+ sizeof(pgno)
+ sizeof(ndx)
+ sizeof(*pagelsn)
return (ret);
else
zero = 0;
} else {
}
zero = 0;
} else {
}
#ifdef DIAGNOSTIC
#endif
return (ret);
}
/*
* PUBLIC: int __ham_insdel_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]ham_insdel: rec: %lu txnid %lx prevlsn [%lu][%lu]\n",
printf("\tpagelsn: [%lu][%lu]\n",
printf("\tkey: ");
else
}
printf("\n");
printf("\tdata: ");
else
}
printf("\n");
printf("\n");
return (0);
}
/*
* PUBLIC: int __ham_insdel_read __P((void *, __ham_insdel_args **));
*/
int
void *recbuf;
{
int ret;
if (ret != 0)
return (ret);
return (0);
}
/*
* PUBLIC: int __ham_newpage_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(prev_pgno)
+ sizeof(*prevlsn)
+ sizeof(new_pgno)
+ sizeof(*pagelsn)
+ sizeof(next_pgno)
+ sizeof(*nextlsn);
return (ret);
else
else
else
#ifdef DIAGNOSTIC
#endif
return (ret);
}
/*
* PUBLIC: int __ham_newpage_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]ham_newpage: rec: %lu txnid %lx prevlsn [%lu][%lu]\n",
printf("\tprevlsn: [%lu][%lu]\n",
printf("\tpagelsn: [%lu][%lu]\n",
printf("\tnextlsn: [%lu][%lu]\n",
printf("\n");
return (0);
}
/*
* PUBLIC: int __ham_newpage_read __P((void *, __ham_newpage_args **));
*/
int
void *recbuf;
{
int ret;
if (ret != 0)
return (ret);
return (0);
}
/*
* PUBLIC: int __ham_splitmeta_log
* PUBLIC: __P((DB_LOG *, DB_TXN *, DB_LSN *, u_int32_t,
* PUBLIC: u_int32_t, u_int32_t, u_int32_t, u_int32_t,
* PUBLIC: DB_LSN *));
*/
{
int ret;
} else
+ sizeof(fileid)
+ sizeof(bucket)
+ sizeof(ovflpoint)
+ sizeof(spares)
+ sizeof(*metalsn);
return (ret);
else
#ifdef DIAGNOSTIC
#endif
return (ret);
}
/*
* PUBLIC: int __ham_splitmeta_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]ham_splitmeta: rec: %lu txnid %lx prevlsn [%lu][%lu]\n",
printf("\tmetalsn: [%lu][%lu]\n",
printf("\n");
return (0);
}
/*
* PUBLIC: int __ham_splitmeta_read __P((void *, __ham_splitmeta_args **));
*/
int
void *recbuf;
{
int ret;
if (ret != 0)
return (ret);
return (0);
}
/*
* PUBLIC: int __ham_splitdata_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(fileid)
+ sizeof(opcode)
+ sizeof(pgno)
+ sizeof(*pagelsn);
return (ret);
zero = 0;
} else {
}
else
#ifdef DIAGNOSTIC
#endif
return (ret);
}
/*
* PUBLIC: int __ham_splitdata_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]ham_splitdata: rec: %lu txnid %lx prevlsn [%lu][%lu]\n",
printf("\tpageimage: ");
else
}
printf("\n");
printf("\tpagelsn: [%lu][%lu]\n",
printf("\n");
return (0);
}
/*
* PUBLIC: int __ham_splitdata_read __P((void *, __ham_splitdata_args **));
*/
int
void *recbuf;
{
int ret;
if (ret != 0)
return (ret);
return (0);
}
/*
* PUBLIC: int __ham_replace_log
* PUBLIC: __P((DB_LOG *, DB_TXN *, DB_LSN *, u_int32_t,
* PUBLIC: u_int32_t, db_pgno_t, u_int32_t, DB_LSN *,
* PUBLIC: int32_t, const DBT *, const DBT *, u_int32_t));
*/
{
int ret;
} else
+ sizeof(fileid)
+ sizeof(pgno)
+ sizeof(ndx)
+ sizeof(*pagelsn)
+ sizeof(off)
+ sizeof(makedup);
return (ret);
else
zero = 0;
} else {
}
zero = 0;
} else {
}
#ifdef DIAGNOSTIC
#endif
return (ret);
}
/*
* PUBLIC: int __ham_replace_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]ham_replace: rec: %lu txnid %lx prevlsn [%lu][%lu]\n",
printf("\tpagelsn: [%lu][%lu]\n",
printf("\tolditem: ");
else
}
printf("\n");
printf("\tnewitem: ");
else
}
printf("\n");
printf("\n");
return (0);
}
/*
* PUBLIC: int __ham_replace_read __P((void *, __ham_replace_args **));
*/
int
void *recbuf;
{
int ret;
if (ret != 0)
return (ret);
return (0);
}
/*
* PUBLIC: int __ham_newpgno_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: u_int32_t, db_pgno_t, u_int32_t, DB_LSN *,
* PUBLIC: DB_LSN *));
*/
{
int ret;
} else
+ sizeof(opcode)
+ sizeof(fileid)
+ sizeof(pgno)
+ sizeof(free_pgno)
+ sizeof(old_type)
+ sizeof(old_pgno)
+ sizeof(new_type)
+ sizeof(*pagelsn)
+ sizeof(*metalsn);
return (ret);
else
else
#ifdef DIAGNOSTIC
#endif
return (ret);
}
/*
* PUBLIC: int __ham_newpgno_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]ham_newpgno: rec: %lu txnid %lx prevlsn [%lu][%lu]\n",
printf("\tpagelsn: [%lu][%lu]\n",
printf("\tmetalsn: [%lu][%lu]\n",
printf("\n");
return (0);
}
/*
* PUBLIC: int __ham_newpgno_read __P((void *, __ham_newpgno_args **));
*/
int
void *recbuf;
{
int ret;
if (ret != 0)
return (ret);
return (0);
}
/*
* PUBLIC: int __ham_ovfl_log
* PUBLIC: __P((DB_LOG *, DB_TXN *, DB_LSN *, u_int32_t,
* PUBLIC: u_int32_t, db_pgno_t, u_int32_t, db_pgno_t,
* PUBLIC: u_int32_t, DB_LSN *));
*/
{
int ret;
} else
+ sizeof(fileid)
+ sizeof(start_pgno)
+ sizeof(npages)
+ sizeof(free_pgno)
+ sizeof(ovflpoint)
+ sizeof(*metalsn);
return (ret);
bp += sizeof(start_pgno);
else
#ifdef DIAGNOSTIC
#endif
return (ret);
}
/*
* PUBLIC: int __ham_ovfl_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]ham_ovfl: rec: %lu txnid %lx prevlsn [%lu][%lu]\n",
printf("\tmetalsn: [%lu][%lu]\n",
printf("\n");
return (0);
}
/*
* PUBLIC: int __ham_ovfl_read __P((void *, __ham_ovfl_args **));
*/
int
void *recbuf;
{
int ret;
if (ret != 0)
return (ret);
return (0);
}
/*
* PUBLIC: int __ham_copypage_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 *, db_pgno_t, DB_LSN *, const DBT *));
*/
{
int ret;
} else
+ sizeof(fileid)
+ sizeof(pgno)
+ sizeof(*pagelsn)
+ sizeof(next_pgno)
+ sizeof(*nextlsn)
+ sizeof(nnext_pgno)
+ sizeof(*nnextlsn)
return (ret);
else
else
bp += sizeof(nnext_pgno);
else
zero = 0;
} else {
}
#ifdef DIAGNOSTIC
#endif
return (ret);
}
/*
* PUBLIC: int __ham_copypage_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]ham_copypage: rec: %lu txnid %lx prevlsn [%lu][%lu]\n",
printf("\tpagelsn: [%lu][%lu]\n",
printf("\tnextlsn: [%lu][%lu]\n",
printf("\tnnextlsn: [%lu][%lu]\n",
printf("\tpage: ");
else
}
printf("\n");
printf("\n");
return (0);
}
/*
* PUBLIC: int __ham_copypage_read __P((void *, __ham_copypage_args **));
*/
int
void *recbuf;
{
int ret;
if (ret != 0)
return (ret);
return (0);
}
/*
* PUBLIC: int __ham_init_print __P((DB_ENV *));
*/
int
{
int ret;
__ham_insdel_print, DB_ham_insdel)) != 0)
return (ret);
__ham_newpage_print, DB_ham_newpage)) != 0)
return (ret);
__ham_splitmeta_print, DB_ham_splitmeta)) != 0)
return (ret);
__ham_splitdata_print, DB_ham_splitdata)) != 0)
return (ret);
__ham_replace_print, DB_ham_replace)) != 0)
return (ret);
__ham_newpgno_print, DB_ham_newpgno)) != 0)
return (ret);
__ham_ovfl_print, DB_ham_ovfl)) != 0)
return (ret);
__ham_copypage_print, DB_ham_copypage)) != 0)
return (ret);
return (0);
}
/*
* PUBLIC: int __ham_init_recover __P((DB_ENV *));
*/
int
{
int ret;
__ham_insdel_recover, DB_ham_insdel)) != 0)
return (ret);
__ham_newpage_recover, DB_ham_newpage)) != 0)
return (ret);
__ham_splitmeta_recover, DB_ham_splitmeta)) != 0)
return (ret);
__ham_splitdata_recover, DB_ham_splitdata)) != 0)
return (ret);
__ham_replace_recover, DB_ham_replace)) != 0)
return (ret);
__ham_newpgno_recover, DB_ham_newpgno)) != 0)
return (ret);
__ham_ovfl_recover, DB_ham_ovfl)) != 0)
return (ret);
__ham_copypage_recover, DB_ham_copypage)) != 0)
return (ret);
return (0);
}