summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKeith Bostic <keith@wiredtiger.com>2015-08-16 17:06:54 -0400
committerMichael Cahill <michael.cahill@mongodb.com>2015-08-25 15:50:26 +1000
commit3cb514ed7863810f95848a46aea597b71eba7ede (patch)
treec59c88922582601b8df2230d1d286cde7f2f13d6
parent36d6e156d62356caa15ef3df8d43212f1c32f4d1 (diff)
downloadmongo-3cb514ed7863810f95848a46aea597b71eba7ede.tar.gz
WT-2045 Update a comment to match the failure.
(cherry picked from commit 7540ec4cb094e49bddf368eb8001c1fd4e47dce1)
-rw-r--r--src/btree/bt_split.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/btree/bt_split.c b/src/btree/bt_split.c
index 2b20b2118ce..98102b76398 100644
--- a/src/btree/bt_split.c
+++ b/src/btree/bt_split.c
@@ -841,6 +841,11 @@ __split_parent(WT_SESSION_IMPL *session, WT_REF *ref,
* update the parent's index, it will no longer refer to the child, and
* could conceivably be evicted. Get a hazard pointer on the parent
* now, so that we can safely access it after updating the index.
+ *
+ * Take care getting the page doesn't trigger eviction work: we could
+ * block trying to split a different child of our parent and deadlock
+ * or we could be the eviction server relied upon by other threads to
+ * populate the eviction queue.
*/
if (!__wt_ref_is_root(parent_ref = parent->pg_intl_parent_ref)) {
WT_ERR(__wt_page_in(session, parent_ref, WT_READ_NO_EVICT));