summaryrefslogtreecommitdiff
path: root/src/third_party/wiredtiger/src/conn/conn_dhandle.c
diff options
context:
space:
mode:
authorLuke Chen <luke.chen@mongodb.com>2020-11-26 16:53:38 +1100
committerEvergreen Agent <no-reply@evergreen.mongodb.com>2020-11-26 06:15:10 +0000
commit515723d10def74299cf7729148f946b538b82797 (patch)
treed8511bf7e716d3bd6704f68520c4efa32690c256 /src/third_party/wiredtiger/src/conn/conn_dhandle.c
parent554fab0be3f1699a68201e70eb9fd1a42d78ca1f (diff)
downloadmongo-515723d10def74299cf7729148f946b538b82797.tar.gz
Import wiredtiger: f08adbc5b4ced8ea39decd4da4efd40cdce768ec from branch mongodb-5.0
ref: 3e0f17b169..f08adbc5b4 for: 4.9.0 WT-6710 Change the default transaction isolation to snapshot WT-6845 Set session btree to HS when operating on history store WT-6957 Reposition the cursor if __ht_hs_modify return WT_RESTART
Diffstat (limited to 'src/third_party/wiredtiger/src/conn/conn_dhandle.c')
-rw-r--r--src/third_party/wiredtiger/src/conn/conn_dhandle.c31
1 files changed, 0 insertions, 31 deletions
diff --git a/src/third_party/wiredtiger/src/conn/conn_dhandle.c b/src/third_party/wiredtiger/src/conn/conn_dhandle.c
index 8727ed1b18b..16a9d7812b5 100644
--- a/src/third_party/wiredtiger/src/conn/conn_dhandle.c
+++ b/src/third_party/wiredtiger/src/conn/conn_dhandle.c
@@ -848,37 +848,6 @@ restart:
}
/*
- * __wt_dhandle_update_write_gens --
- * Update the open dhandles write generation and base write generation number.
- */
-void
-__wt_dhandle_update_write_gens(WT_SESSION_IMPL *session)
-{
- WT_BTREE *btree;
- WT_CONNECTION_IMPL *conn;
- WT_DATA_HANDLE *dhandle;
-
- conn = S2C(session);
-
- for (dhandle = NULL;;) {
- WT_WITH_HANDLE_LIST_WRITE_LOCK(session, WT_DHANDLE_NEXT(session, dhandle, &conn->dhqh, q));
- if (dhandle == NULL)
- break;
- btree = (WT_BTREE *)dhandle->handle;
-
- WT_ASSERT(session, btree != NULL);
-
- /*
- * Initialize the btrees write generation numbers and runtime write generations after
- * rollback to stable so that the transaction ids of the pages will be reset when loaded
- * from disk to memory.
- */
- btree->write_gen = btree->base_write_gen = btree->run_write_gen =
- WT_MAX(btree->write_gen, conn->base_write_gen);
- }
-}
-
-/*
* __wt_verbose_dump_handles --
* Dump information about all data handles.
*/