Commit 4af7f162 authored by Bradley C. Kuszmaul's avatar Bradley C. Kuszmaul

compute 32-bit offsets for {{{set_lg_max}}} and {{{get_lg_max}}}. Addresses #79.

git-svn-id: file:///svn/tokudb@2622 c7de825b-a66e-492c-adef-691d508d4ae1
parent 33805e6f
...@@ -75,6 +75,7 @@ void sample_db_env_offsets (void) { ...@@ -75,6 +75,7 @@ void sample_db_env_offsets (void) {
STRUCT_SETUP(DB_ENV, get_cachesize, "int (*%s) (DB_ENV *, u_int32_t *, u_int32_t *, int *)"); STRUCT_SETUP(DB_ENV, get_cachesize, "int (*%s) (DB_ENV *, u_int32_t *, u_int32_t *, int *)");
STRUCT_SETUP(DB_ENV, get_flags, "int (*%s) (DB_ENV *, u_int32_t *)"); STRUCT_SETUP(DB_ENV, get_flags, "int (*%s) (DB_ENV *, u_int32_t *)");
STRUCT_SETUP(DB_ENV, get_lk_max_locks, "int (*%s) (DB_ENV *, u_int32_t *)"); STRUCT_SETUP(DB_ENV, get_lk_max_locks, "int (*%s) (DB_ENV *, u_int32_t *)");
STRUCT_SETUP(DB_ENV, get_lg_max, "int (*%s) (DB_ENV *, u_int32_t*)");
#endif #endif
STRUCT_SETUP(DB_ENV, log_archive, "int (*%s) (DB_ENV *, char **[], u_int32_t)"); STRUCT_SETUP(DB_ENV, log_archive, "int (*%s) (DB_ENV *, char **[], u_int32_t)");
STRUCT_SETUP(DB_ENV, log_flush, "int (*%s) (DB_ENV *, const DB_LSN *)"); STRUCT_SETUP(DB_ENV, log_flush, "int (*%s) (DB_ENV *, const DB_LSN *)");
......
...@@ -23,6 +23,7 @@ struct fieldinfo db_env_fields64[] = { ...@@ -23,6 +23,7 @@ struct fieldinfo db_env_fields64[] = {
{"int (*set_verbose) (DB_ENV *, u_int32_t, int)", 784, 8}, {"int (*set_verbose) (DB_ENV *, u_int32_t, int)", 784, 8},
{"int (*set_lg_bsize) (DB_ENV *, u_int32_t)", 808, 8}, {"int (*set_lg_bsize) (DB_ENV *, u_int32_t)", 808, 8},
{"int (*set_lg_dir) (DB_ENV *, const char *)", 824, 8}, {"int (*set_lg_dir) (DB_ENV *, const char *)", 824, 8},
{"int (*get_lg_max) (DB_ENV *, u_int32_t*)", 832, 8},
{"int (*set_lg_max) (DB_ENV *, u_int32_t)", 840, 8}, {"int (*set_lg_max) (DB_ENV *, u_int32_t)", 840, 8},
{"int (*log_archive) (DB_ENV *, char **[], u_int32_t)", 864, 8}, {"int (*log_archive) (DB_ENV *, char **[], u_int32_t)", 864, 8},
{"int (*log_flush) (DB_ENV *, const DB_LSN *)", 888, 8}, {"int (*log_flush) (DB_ENV *, const DB_LSN *)", 888, 8},
......
...@@ -14,6 +14,7 @@ struct fieldinfo db_env_fields64[] = { ...@@ -14,6 +14,7 @@ struct fieldinfo db_env_fields64[] = {
{"void (*err) (const DB_ENV *, int, const char *, ...)", 632, 8}, {"void (*err) (const DB_ENV *, int, const char *, ...)", 632, 8},
{"int (*get_cachesize) (DB_ENV *, u_int32_t *, u_int32_t *, int *)", 664, 8}, {"int (*get_cachesize) (DB_ENV *, u_int32_t *, u_int32_t *, int *)", 664, 8},
{"int (*get_flags) (DB_ENV *, u_int32_t *)", 704, 8}, {"int (*get_flags) (DB_ENV *, u_int32_t *)", 704, 8},
{"int (*get_lg_max) (DB_ENV *, u_int32_t*)", 744, 8},
{"int (*get_lk_max_locks) (DB_ENV *, u_int32_t *)", 784, 8}, {"int (*get_lk_max_locks) (DB_ENV *, u_int32_t *)", 784, 8},
{"int (*log_archive) (DB_ENV *, char **[], u_int32_t)", 968, 8}, {"int (*log_archive) (DB_ENV *, char **[], u_int32_t)", 968, 8},
{"int (*log_flush) (DB_ENV *, const DB_LSN *)", 992, 8}, {"int (*log_flush) (DB_ENV *, const DB_LSN *)", 992, 8},
......
...@@ -14,6 +14,7 @@ struct fieldinfo db_env_fields64[] = { ...@@ -14,6 +14,7 @@ struct fieldinfo db_env_fields64[] = {
{"void (*err) (const DB_ENV *, int, const char *, ...)", 640, 8}, {"void (*err) (const DB_ENV *, int, const char *, ...)", 640, 8},
{"int (*get_cachesize) (DB_ENV *, u_int32_t *, u_int32_t *, int *)", 672, 8}, {"int (*get_cachesize) (DB_ENV *, u_int32_t *, u_int32_t *, int *)", 672, 8},
{"int (*get_flags) (DB_ENV *, u_int32_t *)", 712, 8}, {"int (*get_flags) (DB_ENV *, u_int32_t *)", 712, 8},
{"int (*get_lg_max) (DB_ENV *, u_int32_t*)", 752, 8},
{"int (*get_lk_max_locks) (DB_ENV *, u_int32_t *)", 792, 8}, {"int (*get_lk_max_locks) (DB_ENV *, u_int32_t *)", 792, 8},
{"int (*log_archive) (DB_ENV *, char **[], u_int32_t)", 968, 8}, {"int (*log_archive) (DB_ENV *, char **[], u_int32_t)", 968, 8},
{"int (*log_flush) (DB_ENV *, const DB_LSN *)", 992, 8}, {"int (*log_flush) (DB_ENV *, const DB_LSN *)", 992, 8},
......
...@@ -14,6 +14,7 @@ struct fieldinfo db_env_fields64[] = { ...@@ -14,6 +14,7 @@ struct fieldinfo db_env_fields64[] = {
{"void (*err) (const DB_ENV *, int, const char *, ...)", 664, 8}, {"void (*err) (const DB_ENV *, int, const char *, ...)", 664, 8},
{"int (*get_cachesize) (DB_ENV *, u_int32_t *, u_int32_t *, int *)", 696, 8}, {"int (*get_cachesize) (DB_ENV *, u_int32_t *, u_int32_t *, int *)", 696, 8},
{"int (*get_flags) (DB_ENV *, u_int32_t *)", 744, 8}, {"int (*get_flags) (DB_ENV *, u_int32_t *)", 744, 8},
{"int (*get_lg_max) (DB_ENV *, u_int32_t*)", 784, 8},
{"int (*get_lk_max_locks) (DB_ENV *, u_int32_t *)", 824, 8}, {"int (*get_lk_max_locks) (DB_ENV *, u_int32_t *)", 824, 8},
{"int (*log_archive) (DB_ENV *, char **[], u_int32_t)", 1008, 8}, {"int (*log_archive) (DB_ENV *, char **[], u_int32_t)", 1008, 8},
{"int (*log_flush) (DB_ENV *, const DB_LSN *)", 1032, 8}, {"int (*log_flush) (DB_ENV *, const DB_LSN *)", 1032, 8},
......
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