summaryrefslogtreecommitdiff
path: root/src/cursor/cur_bulk.c
diff options
context:
space:
mode:
authorMichael Cahill <michael.cahill@wiredtiger.com>2011-09-14 16:12:40 +1000
committerMichael Cahill <michael.cahill@wiredtiger.com>2011-09-14 16:12:40 +1000
commit95f68a3423d06fc5ea7bd7e604466622e4f0fa17 (patch)
treefe82aa88a70dbd65c4e35ff56eaae0b1c88f1eb2 /src/cursor/cur_bulk.c
parent5ffccaa5ef8c5c01551677ef81d2517a5722d066 (diff)
downloadmongo-95f68a3423d06fc5ea7bd7e604466622e4f0fa17.tar.gz
Add a rwlock to btree handles, use it to get exclusive access for sync, verify and salvage.
Diffstat (limited to 'src/cursor/cur_bulk.c')
-rw-r--r--src/cursor/cur_bulk.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/cursor/cur_bulk.c b/src/cursor/cur_bulk.c
index ecdcb57f3c8..8e60d5e180f 100644
--- a/src/cursor/cur_bulk.c
+++ b/src/cursor/cur_bulk.c
@@ -49,6 +49,8 @@ __curbulk_close(WT_CURSOR *cursor, const char *config)
CURSOR_API_CALL_CONF(cursor, session, close, btree, config, cfg);
WT_UNUSED(cfg);
WT_TRET(__wt_bulk_end(cbulk));
+ if (session->btree != NULL)
+ __wt_session_release_btree(session);
WT_TRET(__wt_cursor_close(cursor, config));
err: API_END(session);