summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMichael Cahill <michael.cahill@wiredtiger.com>2015-03-06 17:21:23 +1100
committerMichael Cahill <michael.cahill@wiredtiger.com>2015-03-06 17:21:23 +1100
commit4e2d01751738dc297d9cc4e3b1d251d4ecac599b (patch)
tree54eb5f934df8ba8e3cc01509dca015d3365eff52 /src
parentcfd9bd6a55ca7b87ba9e17b990d5b753fcdbb586 (diff)
downloadmongo-4e2d01751738dc297d9cc4e3b1d251d4ecac599b.tar.gz
Destroy a condition variable after its last use.
Diffstat (limited to 'src')
-rw-r--r--src/conn/conn_log.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/conn/conn_log.c b/src/conn/conn_log.c
index da5b1ef7ba3..0985ef9fca5 100644
--- a/src/conn/conn_log.c
+++ b/src/conn/conn_log.c
@@ -693,12 +693,12 @@ __wt_logmgr_destroy(WT_SESSION_IMPL *session)
WT_TRET(wt_session->close(wt_session, NULL));
conn->log_close_session = NULL;
}
- WT_TRET(__wt_cond_destroy(session, &conn->log_wrlsn_cond));
if (conn->log_wrlsn_tid_set) {
WT_TRET(__wt_cond_signal(session, conn->log_wrlsn_cond));
WT_TRET(__wt_thread_join(session, conn->log_wrlsn_tid));
conn->log_wrlsn_tid_set = 0;
}
+ WT_TRET(__wt_cond_destroy(session, &conn->log_wrlsn_cond));
if (conn->log_wrlsn_session != NULL) {
wt_session = &conn->log_wrlsn_session->iface;
WT_TRET(wt_session->close(wt_session, NULL));