Commit 82a33bb3 authored by Yoni Fogel's avatar Yoni Fogel

Addresses #1683 Assert shutdown is not called twice on the same minicron

git-svn-id: file:///svn/toku/tokudb@11297 c7de825b-a66e-492c-adef-691d508d4ae1
parent 79a2393a
......@@ -116,6 +116,7 @@ toku_minicron_change_period(struct minicron *p, u_int32_t new_period)
int
toku_minicron_shutdown(struct minicron *p) {
int r = toku_pthread_mutex_lock(&p->mutex); assert(r==0);
assert(!p->do_shutdown);
p->do_shutdown = TRUE;
//printf("%s:%d signalling\n", __FILE__, __LINE__);
r = toku_pthread_cond_signal(&p->condvar); assert(r==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