Commit a9453a51 authored by Leif Walsh's avatar Leif Walsh Committed by Yoni Fogel

refs #5507 create mutexes that are cleared before calling init


git-svn-id: file:///svn/toku/tokudb@48027 c7de825b-a66e-492c-adef-691d508d4ae1
parent 09d1db50
......@@ -69,7 +69,7 @@ static bool is_a_logfile (const char *name, long long *number_result) {
int toku_logger_create (TOKULOGGER *resultp) {
TOKULOGGER MALLOC(result);
TOKULOGGER CALLOC(result);
if (result==0) return get_error_errno();
result->is_open=false;
result->is_panicked=false;
......
......@@ -1369,7 +1369,7 @@ static int run_workers(
{
int r;
const struct perf_formatter *perf_formatter = &perf_formatters[cli_args->perf_output_format];
toku_mutex_t mutex;
toku_mutex_t mutex = ZERO_MUTEX_INITIALIZER;
toku_mutex_init(&mutex, NULL);
struct rwlock rwlock;
rwlock_init(&rwlock);
......
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