Commit d817c605 authored by Barry Perlman's avatar Barry Perlman Committed by Yoni Fogel

Addresses #2075 refs[t:2075] Give all ydb-level test programs the ability to...

Addresses #2075 refs[t:2075] Give all ydb-level test programs the ability to print engine status (when verbose).

git-svn-id: file:///svn/toku/tokudb.2037b@15654 c7de825b-a66e-492c-adef-691d508d4ae1
parent 469926e4
...@@ -65,6 +65,20 @@ parse_args (int argc, char *argv[]) { ...@@ -65,6 +65,20 @@ parse_args (int argc, char *argv[]) {
toku_os_initialize_settings(1); toku_os_initialize_settings(1);
} }
static __attribute__((__unused__)) void
print_engine_status(DB_ENV * UU(env)) {
#ifdef USE_TDB
if (verbose) { // verbose declared statically in this file
int buffsize = 1024 * 32;
char buff[buffsize];
env->get_engine_status_text(env, buff, buffsize);
printf("Engine status:\n");
printf(buff);
}
#endif
}
static __attribute__((__unused__)) DBT * static __attribute__((__unused__)) DBT *
dbt_init(DBT *dbt, void *data, u_int32_t size) { dbt_init(DBT *dbt, void *data, u_int32_t size) {
memset(dbt, 0, sizeof *dbt); memset(dbt, 0, sizeof *dbt);
......
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