Loading src/tests/Makefile +4 −3 Original line number Diff line number Diff line Loading @@ -121,6 +121,7 @@ BDB_DONTRUN_TESTS = \ cursor-isolation \ cursor-set-del-rmw \ cursor-set-range-rmw \ db-put-simple-deadlock \ del-simple \ del-multiple \ del-multiple-huge-primary-row \ Loading src/tests/simple.c +2 −0 Original line number Diff line number Diff line Loading @@ -51,7 +51,9 @@ test_main (int argc, char * const argv[]) { parse_args(argc, argv); setup(FLAGS_LOG); env->txn_checkpoint(env, 0, 0, 0); #ifdef USE_TDB print_engine_status(env); #endif test_shutdown(); return 0; } src/tests/test.h +5 −6 Original line number Diff line number Diff line Loading @@ -113,9 +113,9 @@ parse_args (int argc, char * const argv[]) { } } #ifdef USE_TDB static __attribute__((__unused__)) void print_engine_status(DB_ENV * UU(env)) { #ifdef USE_TDB if (verbose) { // verbose declared statically in this file uint64_t nrows; env->get_engine_status_num_rows(env, &nrows); Loading @@ -125,13 +125,14 @@ print_engine_status(DB_ENV * UU(env)) { printf("Engine status:\n"); printf("%s", buff); } #endif } #endif #ifdef USE_TDB static __attribute__((__unused__)) uint64_t get_engine_status_val(DB_ENV * UU(env), char * keyname) { uint64_t rval = 0; #ifdef USE_TDB uint64_t nrows; env->get_engine_status_num_rows(env, &nrows); TOKU_ENGINE_STATUS_ROW_S mystat[nrows]; Loading @@ -149,11 +150,9 @@ get_engine_status_val(DB_ENV * UU(env), char * keyname) { } } CKERR2(found, 1); #endif return rval; } #endif static __attribute__((__unused__)) DBT * dbt_init(DBT *dbt, const void *data, u_int32_t size) { Loading Loading
src/tests/Makefile +4 −3 Original line number Diff line number Diff line Loading @@ -121,6 +121,7 @@ BDB_DONTRUN_TESTS = \ cursor-isolation \ cursor-set-del-rmw \ cursor-set-range-rmw \ db-put-simple-deadlock \ del-simple \ del-multiple \ del-multiple-huge-primary-row \ Loading
src/tests/simple.c +2 −0 Original line number Diff line number Diff line Loading @@ -51,7 +51,9 @@ test_main (int argc, char * const argv[]) { parse_args(argc, argv); setup(FLAGS_LOG); env->txn_checkpoint(env, 0, 0, 0); #ifdef USE_TDB print_engine_status(env); #endif test_shutdown(); return 0; }
src/tests/test.h +5 −6 Original line number Diff line number Diff line Loading @@ -113,9 +113,9 @@ parse_args (int argc, char * const argv[]) { } } #ifdef USE_TDB static __attribute__((__unused__)) void print_engine_status(DB_ENV * UU(env)) { #ifdef USE_TDB if (verbose) { // verbose declared statically in this file uint64_t nrows; env->get_engine_status_num_rows(env, &nrows); Loading @@ -125,13 +125,14 @@ print_engine_status(DB_ENV * UU(env)) { printf("Engine status:\n"); printf("%s", buff); } #endif } #endif #ifdef USE_TDB static __attribute__((__unused__)) uint64_t get_engine_status_val(DB_ENV * UU(env), char * keyname) { uint64_t rval = 0; #ifdef USE_TDB uint64_t nrows; env->get_engine_status_num_rows(env, &nrows); TOKU_ENGINE_STATUS_ROW_S mystat[nrows]; Loading @@ -149,11 +150,9 @@ get_engine_status_val(DB_ENV * UU(env), char * keyname) { } } CKERR2(found, 1); #endif return rval; } #endif static __attribute__((__unused__)) DBT * dbt_init(DBT *dbt, const void *data, u_int32_t size) { Loading