summaryrefslogtreecommitdiff
path: root/src/include/cursor.i
diff options
context:
space:
mode:
authorMichael Cahill <michael.cahill@wiredtiger.com>2013-11-15 11:59:31 +1100
committerMichael Cahill <michael.cahill@wiredtiger.com>2013-11-15 11:59:31 +1100
commitf0fd2d6042f8ba9fd160dc6e5d9e9a204ab6327b (patch)
tree67c48b1d7840ecfc5d4cd55a886075449921ce0c /src/include/cursor.i
parentb8f015416d2e12405e2c0f5a02ce2adf3be0a5c4 (diff)
downloadmongo-f0fd2d6042f8ba9fd160dc6e5d9e9a204ab6327b.tar.gz
Read-only workloads need a cache full check.
refs #754
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 f7685e903a6..68161965629 100644
--- a/src/include/cursor.i
+++ b/src/include/cursor.i
@@ -77,12 +77,10 @@ __cursor_leave(WT_CURSOR_BTREE *cbt)
cbt->page = NULL;
/*
- * If this is an autocommit operation that is just getting started,
- * check that the cache isn't full. We may have other cursors open,
+ * Check whether the cache is full. We may have other cursors open,
* but the one we just closed might help eviction make progress.
*/
- if (F_ISSET(&session->txn, TXN_AUTOCOMMIT))
- WT_RET(__wt_cache_full_check(session));
+ WT_RET(__wt_cache_full_check(session));
return (0);
}