summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlex Gorrod <alexg@wiredtiger.com>2015-04-27 07:41:36 +0000
committerMichael Cahill <michael.cahill@mongodb.com>2015-04-27 17:42:46 +1000
commit83b880922bbaa18d14b237659ff835c4dafff7e3 (patch)
treef39f343b46009cc0d4ee90bcc0cca3a798ab81b7
parent7ca9da48efb20d8e852f8393f2714d8051b139d3 (diff)
downloadmongodb-3.0.3.tar.gz
If getting a handle lock only - don't propogate WT_NOTFOUND.mongodb-3.0.3
It's expected after the background drop changes. Refs SERVER-18014
-rw-r--r--src/session/session_dhandle.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/session/session_dhandle.c b/src/session/session_dhandle.c
index a9baaf1f40d..ce5f95a40d0 100644
--- a/src/session/session_dhandle.c
+++ b/src/session/session_dhandle.c
@@ -380,7 +380,7 @@ __wt_session_get_btree(WT_SESSION_IMPL *session,
* for locks or our caller hasn't allowed us to take the schema
* lock - they do so on purpose and will handle error returns.
*/
- if (LF_ISSET(WT_DHANDLE_LOCK_ONLY) ||
+ if ((LF_ISSET(WT_DHANDLE_LOCK_ONLY) && ret == EBUSY) ||
(!F_ISSET(session, WT_SESSION_SCHEMA_LOCKED) &&
F_ISSET(session,
WT_SESSION_HANDLE_LIST_LOCKED | WT_SESSION_TABLE_LOCKED)))