summaryrefslogtreecommitdiff
path: root/src/schema
diff options
context:
space:
mode:
authorMichael Cahill <michael.cahill@wiredtiger.com>2015-02-24 14:44:48 +1100
committerMichael Cahill <michael.cahill@wiredtiger.com>2015-02-24 14:44:48 +1100
commit2fdfb2bbed56e42e1717e567828c68d0b2eb868d (patch)
treeb0d473e439a9c2a725926b9a7d3b7aaaa0642735 /src/schema
parentce89b608835561b11ce4e525a5ebdad86558f115 (diff)
downloadmongo-2fdfb2bbed56e42e1717e567828c68d0b2eb868d.tar.gz
Review places that set/clear session->dhandle, replace with macros. Change callers to save/restore if they need to release a handle after a call.
Diffstat (limited to 'src/schema')
-rw-r--r--src/schema/schema_worker.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/schema/schema_worker.c b/src/schema/schema_worker.c
index 94eb3170175..3dfd068cf9c 100644
--- a/src/schema/schema_worker.c
+++ b/src/schema/schema_worker.c
@@ -57,7 +57,8 @@ __wt_schema_worker(WT_SESSION_IMPL *session,
WT_ERR(__wt_session_get_btree_ckpt(
session, uri, cfg, open_flags));
- ret = file_func(session, cfg);
+ WT_SAVE_DHANDLE(session,
+ ret = file_func(session, cfg));
WT_TRET(__wt_session_release_btree(session));
}
} else if (WT_PREFIX_MATCH(uri, "colgroup:")) {