diff options
author | Luke Chen <luke.chen@mongodb.com> | 2021-01-28 15:53:37 +1100 |
---|---|---|
committer | Evergreen Agent <no-reply@evergreen.mongodb.com> | 2021-01-28 05:36:46 +0000 |
commit | aa82d9d6767d0d20f439f77e05ea8becff52a956 (patch) | |
tree | b886d7a232d85f3c69dc764a0aa2e6c98a8d254d /src/third_party/wiredtiger/src/conn/conn_dhandle.c | |
parent | 35a6a97338930d75a7f5cfd89671ae9af65aaf85 (diff) | |
download | mongo-aa82d9d6767d0d20f439f77e05ea8becff52a956.tar.gz |
Import wiredtiger: 31c33f582f6f1700da48f278c28ae909a56aba9b from branch mongodb-5.0
ref: 462a8434b5..31c33f582f
for: 4.9.0
WT-6430 Move WT_CONN_SERVER flags into their own field
Reverted ticket(s):
WT-6673 Rollback to stable to fix the inconsistent checkpoint by removing updates outside of the checkpoint snapshot
Diffstat (limited to 'src/third_party/wiredtiger/src/conn/conn_dhandle.c')
-rw-r--r-- | src/third_party/wiredtiger/src/conn/conn_dhandle.c | 31 |
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 7d8e4bdb8db..b9302ccb602 100644 --- a/src/third_party/wiredtiger/src/conn/conn_dhandle.c +++ b/src/third_party/wiredtiger/src/conn/conn_dhandle.c @@ -917,37 +917,6 @@ restart: } /* - * __wt_dhandle_update_write_gens -- - * Update the open dhandles write generation, run 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 btree write generation numbers 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. */ |