summaryrefslogtreecommitdiff
path: root/src/meta
diff options
context:
space:
mode:
authorKeith Bostic <keith@wiredtiger.com>2015-12-10 16:07:26 -0500
committerKeith Bostic <keith@wiredtiger.com>2015-12-10 16:07:26 -0500
commitc747910391538a4623b4eca5f0a68d07015b2a49 (patch)
treeb9cb6e37f00aa2899632df3336a36524b5479336 /src/meta
parent2dee94f2d27aeaba0bdae373fcd04c4a540e6ecf (diff)
downloadmongo-c747910391538a4623b4eca5f0a68d07015b2a49.tar.gz
Review comment from Michael: I'd prefer a macro called WT_SESSION_META_DHANDLE
that takes a session and looks up the data handle session->meta_cursor to find the data handle for this one case. This only works on btree cursors (so the name is misleading) and is only ever used on session->meta_cursor.
Diffstat (limited to 'src/meta')
-rw-r--r--src/meta/meta_track.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/meta/meta_track.c b/src/meta/meta_track.c
index e73bfac6156..c34973edb43 100644
--- a/src/meta/meta_track.c
+++ b/src/meta/meta_track.c
@@ -272,7 +272,7 @@ __wt_meta_track_off(WT_SESSION_IMPL *session, bool need_sync, bool unroll)
/* If we're logging, make sure the metadata update was flushed. */
if (FLD_ISSET(S2C(session)->log_flags, WT_CONN_LOG_ENABLED)) {
WT_WITH_DHANDLE(session,
- WT_CURSOR_DHANDLE(session->meta_cursor),
+ WT_SESSION_META_DHANDLE(session),
ret = __wt_txn_checkpoint_log(
session, false, WT_TXN_LOG_CKPT_SYNC, NULL));
WT_RET(ret);
@@ -286,13 +286,13 @@ __wt_meta_track_off(WT_SESSION_IMPL *session, bool need_sync, bool unroll)
ckpt_session->txn.id = session->txn.id;
F_SET(ckpt_session, WT_SESSION_LOCKED_SCHEMA);
WT_WITH_DHANDLE(ckpt_session,
- WT_CURSOR_DHANDLE(session->meta_cursor),
+ WT_SESSION_META_DHANDLE(session),
ret = __wt_checkpoint(ckpt_session, NULL));
F_CLR(ckpt_session, WT_SESSION_LOCKED_SCHEMA);
ckpt_session->txn.id = WT_TXN_NONE;
WT_RET(ret);
WT_WITH_DHANDLE(session,
- WT_CURSOR_DHANDLE(session->meta_cursor),
+ WT_SESSION_META_DHANDLE(session),
ret = __wt_checkpoint_sync(session, NULL));
WT_RET(ret);
}