Commit 985f5d34 authored by Rich Prohaska's avatar Rich Prohaska Committed by Yoni Fogel

init the mutex before we use it. closes #1336

git-svn-id: file:///svn/toku/tokudb.1032b@8391 c7de825b-a66e-492c-adef-691d508d4ae1
parent ba2a89b6
......@@ -162,7 +162,6 @@ static void test_chaining (void) {
assert(r==0);
//print_ints();
}
test_mutex_init();
for (trial=0; trial<TRIALS; trial++) {
if (n_present>0) {
// First touch some random ones
......@@ -227,7 +226,6 @@ static void test_chaining (void) {
r = toku_cachefile_close(&f[i], 0); assert(r==0);
}
r = toku_cachetable_close(&ct); assert(r==0);
test_mutex_destroy();
}
static void __attribute__((__noreturn__))
......@@ -238,7 +236,9 @@ usage (const char *progname) {
int main (int argc, const char *argv[]) {
default_parse_args(argc, argv);
test_mutex_init();
test_chaining();
test_mutex_destroy();
toku_malloc_cleanup();
if (verbose) printf("ok\n");
return 0;
......
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