summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Cahill <michael.cahill@mongodb.com>2015-10-30 21:38:18 +1100
committerMichael Cahill <michael.cahill@mongodb.com>2015-10-30 21:38:18 +1100
commit0ca615c0dc3c7ce331cc673edb21648faaa4d5cb (patch)
tree90a21a70a82870abf0e1af73f35b2d29bdefcfdc
parent6c4abfc641fc5dded5f938bd0208e75cb9877f74 (diff)
downloadmongo-0ca615c0dc3c7ce331cc673edb21648faaa4d5cb.tar.gz
SERVER-21027 Remove code that updated snapshots for eviction.
-rw-r--r--src/btree/bt_sync.c2
-rw-r--r--src/evict/evict_file.c6
2 files changed, 0 insertions, 8 deletions
diff --git a/src/btree/bt_sync.c b/src/btree/bt_sync.c
index 2851c830bcb..237d900c3d1 100644
--- a/src/btree/bt_sync.c
+++ b/src/btree/bt_sync.c
@@ -152,8 +152,6 @@ __sync_file(WT_SESSION_IMPL *session, int syncop)
leaf_bytes += page->memory_footprint;
++leaf_pages;
}
- if (txn->isolation == WT_ISO_READ_COMMITTED)
- __wt_txn_get_snapshot(session);
WT_ERR(__wt_reconcile(session, walk, NULL, 0));
}
break;
diff --git a/src/evict/evict_file.c b/src/evict/evict_file.c
index 0f31ab1f491..448de57d88e 100644
--- a/src/evict/evict_file.c
+++ b/src/evict/evict_file.c
@@ -18,11 +18,8 @@ __wt_evict_file(WT_SESSION_IMPL *session, int syncop)
WT_DECL_RET;
WT_PAGE *page;
WT_REF *next_ref, *ref;
- WT_TXN *txn;
bool evict_reset;
- txn = &session->txn;
-
/*
* We need exclusive access to the file -- disable ordinary eviction
* and drain any blocks already queued.
@@ -110,8 +107,5 @@ err: /* On error, clear any left-over tree walk. */
if (evict_reset)
__wt_evict_file_exclusive_off(session);
- if (txn->isolation == WT_ISO_READ_COMMITTED && session->ncursors == 0)
- __wt_txn_release_snapshot(session);
-
return (ret);
}