summaryrefslogtreecommitdiff
path: root/src/include/cursor.i
diff options
context:
space:
mode:
authorMichael Cahill <michael.cahill@wiredtiger.com>2014-10-29 10:32:18 +1100
committerMichael Cahill <michael.cahill@wiredtiger.com>2014-10-29 10:32:18 +1100
commitc031e0d257a416486336ba43cb0d612055258a6c (patch)
tree30898e52aadb81d0ce4f5cf0c4fda72ce281288b /src/include/cursor.i
parent862211f6d1c4646b663e24aa060fbfc83c57ec07 (diff)
downloadmongo-c031e0d257a416486336ba43cb0d612055258a6c.tar.gz
Release snapshots on transaction commit, check if a new snapshot is required on the next cursor operation.
Diffstat (limited to 'src/include/cursor.i')
-rw-r--r--src/include/cursor.i6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/include/cursor.i b/src/include/cursor.i
index 90221d83b0a..7f8e83643c5 100644
--- a/src/include/cursor.i
+++ b/src/include/cursor.i
@@ -56,12 +56,10 @@ __cursor_enter(WT_SESSION_IMPL *session)
{
/*
* If there are no other cursors positioned in the session, check
- * whether the cache is full and then get a snapshot if necessary.
+ * whether the cache is full.
*/
- if (session->ncursors == 0) {
+ if (session->ncursors == 0)
WT_RET(__wt_cache_full_check(session));
- __wt_txn_read_first(session);
- }
++session->ncursors;
return (0);
}