00001
00002
00003 #ifndef bam_AUTO_H
00004 #define bam_AUTO_H
00005
00006 #define DB_bam_pg_alloc1 51
00007 typedef struct _bam_pg_alloc1_args {
00008 u_int32_t type;
00009 DB_TXN *txnid;
00010 DB_LSN prev_lsn;
00011 int32_t fileid;
00012 DB_LSN meta_lsn;
00013 DB_LSN page_lsn;
00014 db_pgno_t pgno;
00015 u_int32_t ptype;
00016 db_pgno_t next;
00017 } __bam_pg_alloc1_args;
00018
00019 int CDB___bam_pg_alloc1_print __P((DB_ENV *, DBT *, DB_LSN *, db_recops, void *));
00020 int CDB___bam_pg_alloc1_read __P((DB_ENV *, void *, __bam_pg_alloc1_args **));
00021
00022 #define DB_bam_pg_alloc 60
00023 typedef struct _bam_pg_alloc_args {
00024 u_int32_t type;
00025 DB_TXN *txnid;
00026 DB_LSN prev_lsn;
00027 int32_t fileid;
00028 DB_LSN meta_lsn;
00029 DB_LSN alloc_lsn;
00030 DB_LSN page_lsn;
00031 db_pgno_t pgno;
00032 u_int32_t ptype;
00033 db_pgno_t next;
00034 } __bam_pg_alloc_args;
00035
00036 int CDB___bam_pg_alloc_log __P((DB_ENV *, DB_TXN *, DB_LSN *, u_int32_t, int32_t, DB_LSN *, DB_LSN *, DB_LSN *, db_pgno_t, u_int32_t, db_pgno_t));
00037 int CDB___bam_pg_alloc_print __P((DB_ENV *, DBT *, DB_LSN *, db_recops, void *));
00038 int CDB___bam_pg_alloc_read __P((DB_ENV *, void *, __bam_pg_alloc_args **));
00039
00040 #define DB_bam_pg_free1 52
00041 typedef struct _bam_pg_free1_args {
00042 u_int32_t type;
00043 DB_TXN *txnid;
00044 DB_LSN prev_lsn;
00045 int32_t fileid;
00046 db_pgno_t pgno;
00047 DB_LSN meta_lsn;
00048 DBT header;
00049 db_pgno_t next;
00050 } __bam_pg_free1_args;
00051
00052 int CDB___bam_pg_free1_print __P((DB_ENV *, DBT *, DB_LSN *, db_recops, void *));
00053 int CDB___bam_pg_free1_read __P((DB_ENV *, void *, __bam_pg_free1_args **));
00054
00055 #define DB_bam_pg_free 61
00056 typedef struct _bam_pg_free_args {
00057 u_int32_t type;
00058 DB_TXN *txnid;
00059 DB_LSN prev_lsn;
00060 int32_t fileid;
00061 db_pgno_t pgno;
00062 DB_LSN meta_lsn;
00063 DB_LSN alloc_lsn;
00064 DBT header;
00065 db_pgno_t next;
00066 } __bam_pg_free_args;
00067
00068 int CDB___bam_pg_free_log __P((DB_ENV *, DB_TXN *, DB_LSN *, u_int32_t, int32_t, db_pgno_t, DB_LSN *, DB_LSN *, const DBT *, db_pgno_t));
00069 int CDB___bam_pg_free_print __P((DB_ENV *, DBT *, DB_LSN *, db_recops, void *));
00070 int CDB___bam_pg_free_read __P((DB_ENV *, void *, __bam_pg_free_args **));
00071
00072 #define DB_bam_split1 53
00073 typedef struct _bam_split1_args {
00074 u_int32_t type;
00075 DB_TXN *txnid;
00076 DB_LSN prev_lsn;
00077 int32_t fileid;
00078 db_pgno_t left;
00079 DB_LSN llsn;
00080 db_pgno_t right;
00081 DB_LSN rlsn;
00082 u_int32_t indx;
00083 db_pgno_t npgno;
00084 DB_LSN nlsn;
00085 DBT pg;
00086 } __bam_split1_args;
00087
00088 int CDB___bam_split1_print __P((DB_ENV *, DBT *, DB_LSN *, db_recops, void *));
00089 int CDB___bam_split1_read __P((DB_ENV *, void *, __bam_split1_args **));
00090
00091 #define DB_bam_split 62
00092 typedef struct _bam_split_args {
00093 u_int32_t type;
00094 DB_TXN *txnid;
00095 DB_LSN prev_lsn;
00096 int32_t fileid;
00097 db_pgno_t left;
00098 DB_LSN llsn;
00099 db_pgno_t right;
00100 DB_LSN rlsn;
00101 u_int32_t indx;
00102 db_pgno_t npgno;
00103 DB_LSN nlsn;
00104 db_pgno_t root_pgno;
00105 DBT pg;
00106 u_int32_t opflags;
00107 } __bam_split_args;
00108
00109 int CDB___bam_split_log __P((DB_ENV *, DB_TXN *, DB_LSN *, u_int32_t, int32_t, db_pgno_t, DB_LSN *, db_pgno_t, DB_LSN *, u_int32_t, db_pgno_t, DB_LSN *, db_pgno_t, const DBT *, u_int32_t));
00110 int CDB___bam_split_print __P((DB_ENV *, DBT *, DB_LSN *, db_recops, void *));
00111 int CDB___bam_split_read __P((DB_ENV *, void *, __bam_split_args **));
00112
00113 #define DB_bam_rsplit1 54
00114 typedef struct _bam_rsplit1_args {
00115 u_int32_t type;
00116 DB_TXN *txnid;
00117 DB_LSN prev_lsn;
00118 int32_t fileid;
00119 db_pgno_t pgno;
00120 DBT pgdbt;
00121 db_pgno_t nrec;
00122 DBT rootent;
00123 DB_LSN rootlsn;
00124 } __bam_rsplit1_args;
00125
00126 int CDB___bam_rsplit1_print __P((DB_ENV *, DBT *, DB_LSN *, db_recops, void *));
00127 int CDB___bam_rsplit1_read __P((DB_ENV *, void *, __bam_rsplit1_args **));
00128
00129 #define DB_bam_rsplit 63
00130 typedef struct _bam_rsplit_args {
00131 u_int32_t type;
00132 DB_TXN *txnid;
00133 DB_LSN prev_lsn;
00134 int32_t fileid;
00135 db_pgno_t pgno;
00136 DBT pgdbt;
00137 db_pgno_t root_pgno;
00138 db_pgno_t nrec;
00139 DBT rootent;
00140 DB_LSN rootlsn;
00141 } __bam_rsplit_args;
00142
00143 int CDB___bam_rsplit_log __P((DB_ENV *, DB_TXN *, DB_LSN *, u_int32_t, int32_t, db_pgno_t, const DBT *, db_pgno_t, db_pgno_t, const DBT *, DB_LSN *));
00144 int CDB___bam_rsplit_print __P((DB_ENV *, DBT *, DB_LSN *, db_recops, void *));
00145 int CDB___bam_rsplit_read __P((DB_ENV *, void *, __bam_rsplit_args **));
00146
00147 #define DB_bam_adj 55
00148 typedef struct _bam_adj_args {
00149 u_int32_t type;
00150 DB_TXN *txnid;
00151 DB_LSN prev_lsn;
00152 int32_t fileid;
00153 db_pgno_t pgno;
00154 DB_LSN lsn;
00155 u_int32_t indx;
00156 u_int32_t indx_copy;
00157 u_int32_t is_insert;
00158 } __bam_adj_args;
00159
00160 int CDB___bam_adj_log __P((DB_ENV *, DB_TXN *, DB_LSN *, u_int32_t, int32_t, db_pgno_t, DB_LSN *, u_int32_t, u_int32_t, u_int32_t));
00161 int CDB___bam_adj_print __P((DB_ENV *, DBT *, DB_LSN *, db_recops, void *));
00162 int CDB___bam_adj_read __P((DB_ENV *, void *, __bam_adj_args **));
00163
00164 #define DB_bam_cadjust 56
00165 typedef struct _bam_cadjust_args {
00166 u_int32_t type;
00167 DB_TXN *txnid;
00168 DB_LSN prev_lsn;
00169 int32_t fileid;
00170 db_pgno_t pgno;
00171 DB_LSN lsn;
00172 u_int32_t indx;
00173 int32_t adjust;
00174 u_int32_t opflags;
00175 } __bam_cadjust_args;
00176
00177 int CDB___bam_cadjust_log __P((DB_ENV *, DB_TXN *, DB_LSN *, u_int32_t, int32_t, db_pgno_t, DB_LSN *, u_int32_t, int32_t, u_int32_t));
00178 int CDB___bam_cadjust_print __P((DB_ENV *, DBT *, DB_LSN *, db_recops, void *));
00179 int CDB___bam_cadjust_read __P((DB_ENV *, void *, __bam_cadjust_args **));
00180
00181 #define DB_bam_cdel 57
00182 typedef struct _bam_cdel_args {
00183 u_int32_t type;
00184 DB_TXN *txnid;
00185 DB_LSN prev_lsn;
00186 int32_t fileid;
00187 db_pgno_t pgno;
00188 DB_LSN lsn;
00189 u_int32_t indx;
00190 } __bam_cdel_args;
00191
00192 int CDB___bam_cdel_log __P((DB_ENV *, DB_TXN *, DB_LSN *, u_int32_t, int32_t, db_pgno_t, DB_LSN *, u_int32_t));
00193 int CDB___bam_cdel_print __P((DB_ENV *, DBT *, DB_LSN *, db_recops, void *));
00194 int CDB___bam_cdel_read __P((DB_ENV *, void *, __bam_cdel_args **));
00195
00196 #define DB_bam_repl 58
00197 typedef struct _bam_repl_args {
00198 u_int32_t type;
00199 DB_TXN *txnid;
00200 DB_LSN prev_lsn;
00201 int32_t fileid;
00202 db_pgno_t pgno;
00203 DB_LSN lsn;
00204 u_int32_t indx;
00205 u_int32_t isdeleted;
00206 DBT orig;
00207 DBT repl;
00208 u_int32_t prefix;
00209 u_int32_t suffix;
00210 } __bam_repl_args;
00211
00212 int CDB___bam_repl_log __P((DB_ENV *, DB_TXN *, DB_LSN *, u_int32_t, int32_t, db_pgno_t, DB_LSN *, u_int32_t, u_int32_t, const DBT *, const DBT *, u_int32_t, u_int32_t));
00213 int CDB___bam_repl_print __P((DB_ENV *, DBT *, DB_LSN *, db_recops, void *));
00214 int CDB___bam_repl_read __P((DB_ENV *, void *, __bam_repl_args **));
00215
00216 #define DB_bam_root 59
00217 typedef struct _bam_root_args {
00218 u_int32_t type;
00219 DB_TXN *txnid;
00220 DB_LSN prev_lsn;
00221 int32_t fileid;
00222 db_pgno_t meta_pgno;
00223 db_pgno_t root_pgno;
00224 DB_LSN meta_lsn;
00225 } __bam_root_args;
00226
00227 int CDB___bam_root_log __P((DB_ENV *, DB_TXN *, DB_LSN *, u_int32_t, int32_t, db_pgno_t, db_pgno_t, DB_LSN *));
00228 int CDB___bam_root_print __P((DB_ENV *, DBT *, DB_LSN *, db_recops, void *));
00229 int CDB___bam_root_read __P((DB_ENV *, void *, __bam_root_args **));
00230 int CDB___bam_init_print __P((DB_ENV *));
00231 int CDB___bam_init_recover __P((DB_ENV *));
00232 #endif