Commit 954a994d authored by Leif Walsh's avatar Leif Walsh Committed by Yoni Fogel

refs #5874 fix a mutex init problem I caught while testing 5874


git-svn-id: file:///svn/toku/tokudb@51923 c7de825b-a66e-492c-adef-691d508d4ae1
parent f07a7f1e
...@@ -97,6 +97,7 @@ test_writer_priority_thread (void *arg) { ...@@ -97,6 +97,7 @@ test_writer_priority_thread (void *arg) {
static void static void
test_writer_priority (void) { test_writer_priority (void) {
struct rw_event rw_event, *rwe = &rw_event; struct rw_event rw_event, *rwe = &rw_event;
ZERO_STRUCT(rw_event);
int r; int r;
rw_event_init(rwe); rw_event_init(rwe);
...@@ -152,6 +153,7 @@ test_single_writer_thread (void *arg) { ...@@ -152,6 +153,7 @@ test_single_writer_thread (void *arg) {
static void static void
test_single_writer (void) { test_single_writer (void) {
struct rw_event rw_event, *rwe = &rw_event; struct rw_event rw_event, *rwe = &rw_event;
ZERO_STRUCT(rw_event);
int r; int r;
rw_event_init(rwe); rw_event_init(rwe);
......
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