summaryrefslogtreecommitdiff
path: root/src/async/async_api.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/async/async_api.c')
-rw-r--r--src/async/async_api.c15
1 files changed, 6 insertions, 9 deletions
diff --git a/src/async/async_api.c b/src/async/async_api.c
index 54bcb7cd26c..b9cc995f5a5 100644
--- a/src/async/async_api.c
+++ b/src/async/async_api.c
@@ -240,8 +240,7 @@ __async_start(WT_SESSION_IMPL *session)
async = conn->async;
TAILQ_INIT(&async->formatqh);
WT_RET(__wt_spin_init(session, &async->ops_lock, "ops"));
- WT_RET(__wt_cond_alloc(
- session, "async flush", false, &async->flush_cond));
+ WT_RET(__wt_cond_alloc(session, "async flush", &async->flush_cond));
WT_RET(__wt_async_op_init(session));
/*
@@ -339,17 +338,15 @@ __wt_async_reconfig(WT_SESSION_IMPL *session, const char *cfg[])
* 2. If async is off, and the user wants it on, start it.
* 3. If not a toggle and async is off, we're done.
*/
- if (conn->async_cfg && !run) {
- /* Case 1 */
+ if (conn->async_cfg && !run) { /* Case 1 */
WT_TRET(__wt_async_flush(session));
ret = __wt_async_destroy(session);
conn->async_cfg = false;
return (ret);
- } else if (!conn->async_cfg && run)
- /* Case 2 */
+ }
+ if (!conn->async_cfg && run) /* Case 2 */
return (__async_start(session));
- else if (!conn->async_cfg)
- /* Case 3 */
+ if (!conn->async_cfg) /* Case 3 */
return (0);
/*
@@ -541,7 +538,7 @@ retry:
async->flush_op.state = WT_ASYNCOP_READY;
WT_RET(__wt_async_op_enqueue(session, &async->flush_op));
while (async->flush_state != WT_ASYNC_FLUSH_COMPLETE)
- __wt_cond_wait(session, async->flush_cond, 100000);
+ __wt_cond_wait(session, async->flush_cond, 100000, NULL);
/*
* Flush is done. Clear the flags.
*/