summaryrefslogtreecommitdiff
path: root/src/third_party/wiredtiger/src/conn/conn_dhandle.c
diff options
context:
space:
mode:
authorLuke Chen <luke.chen@mongodb.com>2020-04-22 09:50:35 +1000
committerEvergreen Agent <no-reply@evergreen.mongodb.com>2020-04-22 00:27:44 +0000
commit0a5ff5f074b671308c843b4ba6d7195b2591e7d4 (patch)
tree2668db86a44cabd966cd7fabe8a11aeadfd1de83 /src/third_party/wiredtiger/src/conn/conn_dhandle.c
parentc593d0fb6eec6b4f3c7ae02a5c3de73ad6e3af95 (diff)
downloadmongo-0a5ff5f074b671308c843b4ba6d7195b2591e7d4.tar.gz
Import wiredtiger: 7b994a862e899a12eb7c3ac814c9fada7d8d1ab9 from branch mongodb-4.4
ref: 9bd1ece797..7b994a862e for: 4.5.1 WT-4701 Switch test/format to use WiredTiger locking primitives WT-5766 Separate out internal and shared transaction data WT-5791 Prepare checkpoint can finish in 0msec and reset prepare min stat WT-5794 Remove skew_newest option from reconciliation WT-5833 Fix caching issue for overflow key/value items WT-5919 Disallow logging archival testing with log-based incremental backup WT-5946 Eviction server handles can deadlock when opening HS cursors WT-5968 Make the WT_SESSION_IMPL.txn field an allocated structure WT-5986 Create script for emulating multiversion tests WT-6016 Fill source code comments where lines start with parentheticals WT-6020 __rec_append_orig_value() cleanup WT-6026 Fix s_all breakage on format.h
Diffstat (limited to 'src/third_party/wiredtiger/src/conn/conn_dhandle.c')
-rw-r--r--src/third_party/wiredtiger/src/conn/conn_dhandle.c19
1 files changed, 8 insertions, 11 deletions
diff --git a/src/third_party/wiredtiger/src/conn/conn_dhandle.c b/src/third_party/wiredtiger/src/conn/conn_dhandle.c
index 1c391200cb1..e6da8446753 100644
--- a/src/third_party/wiredtiger/src/conn/conn_dhandle.c
+++ b/src/third_party/wiredtiger/src/conn/conn_dhandle.c
@@ -367,13 +367,12 @@ __wt_conn_dhandle_close(WT_SESSION_IMPL *session, bool final, bool mark_dead)
}
/*
- * If marking the handle dead, do so after closing the underlying btree.
- * (Don't do it before that, the block manager asserts there are never
- * two references to a block manager object, and re-opening the handle
- * can succeed once we mark this handle dead.)
+ * If marking the handle dead, do so after closing the underlying btree. (Don't do it before
+ * that, the block manager asserts there are never two references to a block manager object, and
+ * re-opening the handle can succeed once we mark this handle dead.)
*
- * Check discard too, code we call to clear the cache expects the data
- * handle dead flag to be set when discarding modified pages.
+ * Check discard too, code we call to clear the cache expects the data handle dead flag to be
+ * set when discarding modified pages.
*/
if (marked_dead || discard)
F_SET(dhandle, WT_DHANDLE_DEAD);
@@ -426,8 +425,7 @@ __wt_conn_dhandle_open(WT_SESSION_IMPL *session, const char *cfg[], uint32_t fla
WT_ASSERT(session, F_ISSET(dhandle, WT_DHANDLE_EXCLUSIVE) && !LF_ISSET(WT_DHANDLE_LOCK_ONLY));
- WT_ASSERT(session, F_ISSET(session, WT_SESSION_ROLLBACK_TO_STABLE_FLAGS) ||
- !F_ISSET(S2C(session), WT_CONN_CLOSING_NO_MORE_OPENS));
+ WT_ASSERT(session, !F_ISSET(S2C(session), WT_CONN_CLOSING_NO_MORE_OPENS));
/* Turn off eviction. */
if (dhandle->type == WT_DHANDLE_TYPE_BTREE)
@@ -527,9 +525,8 @@ __conn_btree_apply_internal(WT_SESSION_IMPL *session, WT_DATA_HANDLE *dhandle,
return (0);
/*
- * We need to pull the handle into the session handle cache and make
- * sure it's referenced to stop other internal code dropping the handle
- * (e.g in LSM when cleaning up obsolete chunks).
+ * We need to pull the handle into the session handle cache and make sure it's referenced to
+ * stop other internal code dropping the handle (e.g in LSM when cleaning up obsolete chunks).
*/
if ((ret = __wt_session_get_dhandle(session, dhandle->name, dhandle->checkpoint, NULL, 0)) != 0)
return (ret == EBUSY ? 0 : ret);