summaryrefslogtreecommitdiff
path: root/src/third_party/wiredtiger/src/conn/conn_stat.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/third_party/wiredtiger/src/conn/conn_stat.c')
-rw-r--r--src/third_party/wiredtiger/src/conn/conn_stat.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/src/third_party/wiredtiger/src/conn/conn_stat.c b/src/third_party/wiredtiger/src/conn/conn_stat.c
index b3a1b3e979a..cf54572f70a 100644
--- a/src/third_party/wiredtiger/src/conn/conn_stat.c
+++ b/src/third_party/wiredtiger/src/conn/conn_stat.c
@@ -164,8 +164,7 @@ __statlog_config(WT_SESSION_IMPL *session, const char **cfg, bool *runp)
*/
if (!WT_PREFIX_MATCH(k.str, "file:") && !WT_PREFIX_MATCH(k.str, "lsm:"))
WT_ERR_MSG(session, EINVAL,
- "statistics_log sources configuration only "
- "supports objects of type \"file\" or "
+ "statistics_log sources configuration only supports objects of type \"file\" or "
"\"lsm\"");
WT_ERR(__wt_strndup(session, k.str, k.len, &sources[cnt]));
}
@@ -683,7 +682,6 @@ __wt_statlog_destroy(WT_SESSION_IMPL *session, bool is_close)
{
WT_CONNECTION_IMPL *conn;
WT_DECL_RET;
- WT_SESSION *wt_session;
conn = S2C(session);
@@ -705,8 +703,7 @@ __wt_statlog_destroy(WT_SESSION_IMPL *session, bool is_close)
/* Close the server thread's session. */
if (conn->stat_session != NULL) {
- wt_session = &conn->stat_session->iface;
- WT_TRET(wt_session->close(wt_session, NULL));
+ WT_TRET(__wt_session_close_internal(conn->stat_session));
conn->stat_session = NULL;
}