diff options
author | Alex Gorrod <alexg@wiredtiger.com> | 2016-03-21 17:36:49 +1100 |
---|---|---|
committer | Alex Gorrod <alexg@wiredtiger.com> | 2016-03-21 17:36:49 +1100 |
commit | 9121562bebd77b82dd3fe6e467e735864232efe1 (patch) | |
tree | 88ff2d136be29413c32f9db4aafacdff5128952b | |
parent | b5a7e1742035dceeb842cd465fa09338e5a72cfa (diff) | |
download | mongo-9121562bebd77b82dd3fe6e467e735864232efe1.tar.gz |
WT-2499 Fix LSM get with exclusive access set.
We should only set active when not opening an exclusive handle.
-rw-r--r-- | src/lsm/lsm_tree.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/lsm/lsm_tree.c b/src/lsm/lsm_tree.c index 73466a53215..fc3126a3823 100644 --- a/src/lsm/lsm_tree.c +++ b/src/lsm/lsm_tree.c @@ -509,7 +509,8 @@ __lsm_tree_open(WT_SESSION_IMPL *session, /* Now the tree is setup, make it visible to others. */ TAILQ_INSERT_HEAD(&S2C(session)->lsmqh, lsm_tree, q); - lsm_tree->active = true; + if (!exclusive) + lsm_tree->active = true; F_SET(lsm_tree, WT_LSM_TREE_OPEN); *treep = lsm_tree; |