Commit 34fd0f1a authored by Bradley C. Kuszmaul's avatar Bradley C. Kuszmaul

Add set_errfile to samples. Addresses #72.

git-svn-id: file:///svn/tokudb@1258 c7de825b-a66e-492c-adef-691d508d4ae1
parent bbe1bb7a
......@@ -190,16 +190,18 @@ struct __toku_db {
int (*set_bt_compare) (DB *, int (*)(DB *, const DBT *, const DBT *)); /* 32-bit offset=440 size=4, 64=bit offset=784 size=8 */
void* __toku_dummy10[3];
int (*set_dup_compare) (DB *, int (*)(DB *, const DBT *, const DBT *)); /* 32-bit offset=456 size=4, 64=bit offset=816 size=8 */
void* __toku_dummy11[5];
void* __toku_dummy11[2];
void (*set_errfile) (DB_ENV *, FILE*); /* 32-bit offset=468 size=4, 64=bit offset=840 size=8 */
void* __toku_dummy12[2];
int (*set_flags) (DB *, u_int32_t); /* 32-bit offset=480 size=4, 64=bit offset=864 size=8 */
void* __toku_dummy12[6];
int (*set_pagesize) (DB *, u_int32_t); /* 32-bit offset=508 size=4, 64=bit offset=920 size=8 */
void* __toku_dummy13[6];
int (*set_pagesize) (DB *, u_int32_t); /* 32-bit offset=508 size=4, 64=bit offset=920 size=8 */
void* __toku_dummy14[6];
int (*stat) (DB *, void *, u_int32_t); /* 32-bit offset=536 size=4, 64=bit offset=976 size=8 */
void* __toku_dummy14[4];
void* __toku_dummy15[4];
int (*verify) (DB *, const char *, const char *, FILE *, u_int32_t); /* 32-bit offset=556 size=4, 64=bit offset=1016 size=8 */
void* __toku_dummy15[5]; /* Padding at the end */
char __toku_dummy16[16]; /* Padding at the end */
void* __toku_dummy16[5]; /* Padding at the end */
char __toku_dummy17[16]; /* Padding at the end */
};
struct __toku_db_txn_active {
u_int32_t txnid; /* 32-bit offset=0 size=4, 64=bit offset=0 size=4 */
......
......@@ -136,7 +136,7 @@ void sample_db_offsets (void) {
STRUCT_SETUP(DB, rename, "int (*%s) (DB *, const char *, const char *, const char *, u_int32_t)");
STRUCT_SETUP(DB, set_bt_compare, "int (*%s) (DB *, int (*)(DB *, const DBT *, const DBT *))");
STRUCT_SETUP(DB, set_dup_compare, "int (*%s) (DB *, int (*)(DB *, const DBT *, const DBT *))");
STRUCT_SETUP(DB, set_errfile, "void (*%s) (DB_ENV *, FILE*)");
STRUCT_SETUP(DB, set_errfile, "void (*%s) (DB *, FILE*)");
STRUCT_SETUP(DB, set_flags, "int (*%s) (DB *, u_int32_t)");
STRUCT_SETUP(DB, set_pagesize, "int (*%s) (DB *, u_int32_t)");
STRUCT_SETUP(DB, stat, "int (*%s) (DB *, void *, u_int32_t)");
......
......@@ -58,7 +58,7 @@ struct fieldinfo db_fields32[] = {
{"int (*remove) (DB *, const char *, const char *, u_int32_t)", 316, 4},
{"int (*rename) (DB *, const char *, const char *, const char *, u_int32_t)", 320, 4},
{"int (*set_dup_compare) (DB *, int (*)(DB *, const DBT *, const DBT *))", 344, 4},
{"void (*set_errfile) (DB_ENV *, FILE*)", 356, 4},
{"void (*set_errfile) (DB *, FILE*)", 356, 4},
{"int (*set_flags) (DB *, u_int32_t)", 368, 4},
{"int (*set_pagesize) (DB *, u_int32_t)", 376, 4},
{"int (*stat) (DB *, void *, u_int32_t)", 384, 4},
......
......@@ -62,7 +62,7 @@ struct fieldinfo db_fields32[] = {
{"int (*remove) (DB *, const char *, const char *, u_int32_t)", 376, 4},
{"int (*rename) (DB *, const char *, const char *, const char *, u_int32_t)", 380, 4},
{"int (*set_dup_compare) (DB *, int (*)(DB *, const DBT *, const DBT *))", 400, 4},
{"void (*set_errfile) (DB_ENV *, FILE*)", 412, 4},
{"void (*set_errfile) (DB *, FILE*)", 412, 4},
{"int (*set_flags) (DB *, u_int32_t)", 424, 4},
{"int (*set_pagesize) (DB *, u_int32_t)", 444, 4},
{"int (*stat) (DB *, void *, u_int32_t)", 452, 4},
......
......@@ -63,7 +63,7 @@ struct fieldinfo db_fields32[] = {
{"int (*rename) (DB *, const char *, const char *, const char *, u_int32_t)", 428, 4},
{"int (*set_bt_compare) (DB *, int (*)(DB *, const DBT *, const DBT *))", 440, 4},
{"int (*set_dup_compare) (DB *, int (*)(DB *, const DBT *, const DBT *))", 456, 4},
{"void (*set_errfile) (DB_ENV *, FILE*)", 468, 4},
{"void (*set_errfile) (DB *, FILE*)", 468, 4},
{"int (*set_flags) (DB *, u_int32_t)", 480, 4},
{"int (*set_pagesize) (DB *, u_int32_t)", 508, 4},
{"int (*stat) (DB *, void *, u_int32_t)", 536, 4},
......
......@@ -62,7 +62,7 @@ struct fieldinfo db_fields32[] = {
{"int (*rename) (DB *, const char *, const char *, const char *, u_int32_t)", 440, 4},
{"int (*set_bt_compare) (DB *, int (*)(DB *, const DBT *, const DBT *))", 452, 4},
{"int (*set_dup_compare) (DB *, int (*)(DB *, const DBT *, const DBT *))", 468, 4},
{"void (*set_errfile) (DB_ENV *, FILE*)", 480, 4},
{"void (*set_errfile) (DB *, FILE*)", 480, 4},
{"int (*set_flags) (DB *, u_int32_t)", 492, 4},
{"int (*set_pagesize) (DB *, u_int32_t)", 520, 4},
{"int (*stat) (DB *, void *, u_int32_t)", 548, 4},
......
......@@ -62,7 +62,7 @@ struct fieldinfo db_fields32[] = {
{"int (*rename) (DB *, const char *, const char *, const char *, u_int32_t)", 460, 4},
{"int (*set_bt_compare) (DB *, int (*)(DB *, const DBT *, const DBT *))", 472, 4},
{"int (*set_dup_compare) (DB *, int (*)(DB *, const DBT *, const DBT *))", 488, 4},
{"void (*set_errfile) (DB_ENV *, FILE*)", 500, 4},
{"void (*set_errfile) (DB *, FILE*)", 500, 4},
{"int (*set_flags) (DB *, u_int32_t)", 512, 4},
{"int (*set_pagesize) (DB *, u_int32_t)", 544, 4},
{"int (*stat) (DB *, void *, u_int32_t)", 576, 4},
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment