Commit 2483237c authored by Rich Prohaska's avatar Rich Prohaska Committed by Yoni Fogel

#4869 remove trace_mem since it is not used and it can easily be resurrected if needed refs[t:4869]

git-svn-id: file:///svn/toku/tokudb@43537 c7de825b-a66e-492c-adef-691d508d4ae1
parent bc7a6ba9
...@@ -18,9 +18,6 @@ ...@@ -18,9 +18,6 @@
# include <sys/malloc.h> # include <sys/malloc.h>
#endif #endif
#include <dlfcn.h> #include <dlfcn.h>
#if defined(TOKUDB)
#include <newbrt/trace_mem.h>
#endif
#if !defined(DB_PRELOCKED_WRITE) #if !defined(DB_PRELOCKED_WRITE)
#define NO_DB_PRELOCKED #define NO_DB_PRELOCKED
...@@ -406,12 +403,6 @@ static void fill_array (unsigned char *data, int size) { ...@@ -406,12 +403,6 @@ static void fill_array (unsigned char *data, int size) {
} }
} }
static void trace(const char *UU(s), int UU(n)) {
#if defined(TOKUDB)
toku_add_trace_mem(s, n);
#endif
}
static void insert (long long v) { static void insert (long long v) {
int r; int r;
unsigned char *kc = toku_malloc(keysize); unsigned char *kc = toku_malloc(keysize);
...@@ -437,9 +428,7 @@ static void insert (long long v) { ...@@ -437,9 +428,7 @@ static void insert (long long v) {
else { else {
for (which = 0; which < num_dbs; which++) { for (which = 0; which < num_dbs; which++) {
DB *db = dbs[which]; DB *db = dbs[which];
trace("pstart", __LINE__);
r = db->put(db, tid, &kt, &vt, put_flags); r = db->put(db, tid, &kt, &vt, put_flags);
trace("pdone", __LINE__);
if (unique_checks) if (unique_checks)
assert(r == 0 || r == DB_KEYEXIST); assert(r == 0 || r == DB_KEYEXIST);
else else
...@@ -449,13 +438,9 @@ static void insert (long long v) { ...@@ -449,13 +438,9 @@ static void insert (long long v) {
if (do_transactions) { if (do_transactions) {
if (n_insertions_since_txn_began>=items_per_transaction && !singlex) { if (n_insertions_since_txn_began>=items_per_transaction && !singlex) {
n_insertions_since_txn_began=0; n_insertions_since_txn_began=0;
trace("cstart", __LINE__);
r = tid->commit(tid, commitflags); assert(r==0); r = tid->commit(tid, commitflags); assert(r==0);
trace("cdone", __LINE__);
tid = NULL; tid = NULL;
trace("txn", __LINE__);
r=dbenv->txn_begin(dbenv, 0, &tid, 0); assert(r==0); r=dbenv->txn_begin(dbenv, 0, &tid, 0); assert(r==0);
trace("txndone", __LINE__);
for (which = 0; which < num_dbs; which++) { for (which = 0; which < num_dbs; which++) {
DB *db = dbs[which]; DB *db = dbs[which];
do_prelock(db, tid); do_prelock(db, tid);
...@@ -813,10 +798,6 @@ static int test_main (int argc, char *const argv[]) { ...@@ -813,10 +798,6 @@ static int test_main (int argc, char *const argv[]) {
print_hash_histogram(); print_hash_histogram();
} }
#endif #endif
#if defined(TOKUDB)
// if tokudb has tracing enabled (see trace_mem.h) then this will dump the trace data
if (1) toku_print_trace_mem(stderr);
#endif
return 0; return 0;
} }
...@@ -13,7 +13,6 @@ ...@@ -13,7 +13,6 @@
#ifdef TOKUDB #ifdef TOKUDB
#include <newbrt/key.h> #include <newbrt/key.h>
#include <newbrt/cachetable.h> #include <newbrt/cachetable.h>
#include <newbrt/trace_mem.h>
#endif #endif
static const char *pname; static const char *pname;
...@@ -467,10 +466,6 @@ static int test_main (int argc, char *const argv[]) { ...@@ -467,10 +466,6 @@ static int test_main (int argc, char *const argv[]) {
} }
scanscan_shutdown(); scanscan_shutdown();
#if defined(TOKUDB)
// if tokudb has tracing enabled (see trace_mem.h) then this will dump the trace data
if (1) toku_print_trace_mem(stderr);
#endif
#if defined(__linux__) && __linux__ #if defined(__linux__) && __linux__
if (verbose) { if (verbose) {
char fname[256]; char fname[256];
......
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