Commit 59dcba62 authored by Rich Prohaska's avatar Rich Prohaska Committed by Yoni Fogel

disable the mutex_init assert as we init mutexes from uninitialized memory...

disable the mutex_init assert as we init mutexes from uninitialized memory sometimes. addresses #1328

git-svn-id: file:///svn/toku/tokudb.1032b@8403 c7de825b-a66e-492c-adef-691d508d4ae1
parent dbc7494c
...@@ -6,7 +6,7 @@ ...@@ -6,7 +6,7 @@
int int
toku_pthread_mutex_init(toku_pthread_mutex_t *mutex, const toku_pthread_mutexattr_t *attr) { toku_pthread_mutex_init(toku_pthread_mutex_t *mutex, const toku_pthread_mutexattr_t *attr) {
assert(attr == NULL); assert(attr == NULL);
assert(!mutex->initialized); // assert(!mutex->initialized);
InitializeCriticalSection(&mutex->section); InitializeCriticalSection(&mutex->section);
mutex->initialized = TRUE; mutex->initialized = TRUE;
return 0; 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