summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorKeith Bostic <keith@wiredtiger.com>2013-03-14 10:43:26 -0400
committerKeith Bostic <keith@wiredtiger.com>2013-03-14 10:43:26 -0400
commit4b02b7f761316fd6df6ebfb4073650b486057263 (patch)
treefa7d0be4dd43a3a15fbee12d792e021a50077241 /src
parent10ba070629fd135b926c021e728ed183a694f7f6 (diff)
downloadmongo-4b02b7f761316fd6df6ebfb4073650b486057263.tar.gz
Avoid an "unused variable" complaint when building in non-HAVE_DIAGNOSTIC mode.
Diffstat (limited to 'src')
-rw-r--r--src/conn/conn_btree.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/conn/conn_btree.c b/src/conn/conn_btree.c
index 3016e721bea..f372a678e50 100644
--- a/src/conn/conn_btree.c
+++ b/src/conn/conn_btree.c
@@ -421,12 +421,10 @@ int
__wt_conn_btree_close(WT_SESSION_IMPL *session, int locked)
{
WT_BTREE *btree;
- WT_CONNECTION_IMPL *conn;
WT_DECL_RET;
int inuse;
btree = session->btree;
- conn = S2C(session);
WT_ASSERT(session, F_ISSET(session, WT_SESSION_SCHEMA_LOCKED));
@@ -453,7 +451,7 @@ __wt_conn_btree_close(WT_SESSION_IMPL *session, int locked)
*/
WT_ASSERT(session,
btree != session->metafile ||
- session == conn->default_session);
+ session == S2C(session)->default_session);
if (F_ISSET(btree, WT_BTREE_OPEN))
WT_TRET(__wt_conn_btree_sync_and_close(session));