summaryrefslogtreecommitdiff
path: root/src/include/cursor.i
diff options
context:
space:
mode:
Diffstat (limited to 'src/include/cursor.i')
-rw-r--r--src/include/cursor.i8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/include/cursor.i b/src/include/cursor.i
index 2e382591313..8ab96c0a69d 100644
--- a/src/include/cursor.i
+++ b/src/include/cursor.i
@@ -1,5 +1,5 @@
/*-
- * Copyright (c) 2014-2015 MongoDB, Inc.
+ * Copyright (c) 2014-2016 MongoDB, Inc.
* Copyright (c) 2008-2014 WiredTiger, Inc.
* All rights reserved.
*
@@ -246,8 +246,12 @@ __cursor_func_init(WT_CURSOR_BTREE *cbt, bool reenter)
session = (WT_SESSION_IMPL *)cbt->iface.session;
- if (reenter)
+ if (reenter) {
+#ifdef HAVE_DIAGNOSTIC
+ __wt_cursor_key_order_reset(cbt);
+#endif
WT_RET(__curfile_leave(cbt));
+ }
/*
* Any old insert position is now invalid. We rely on this being