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.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/third_party/wiredtiger/src/conn/conn_stat.c b/src/third_party/wiredtiger/src/conn/conn_stat.c
index 69989939c43..06ae5b14350 100644
--- a/src/third_party/wiredtiger/src/conn/conn_stat.c
+++ b/src/third_party/wiredtiger/src/conn/conn_stat.c
@@ -528,7 +528,7 @@ __statlog_on_close(WT_SESSION_IMPL *session)
if (!FLD_ISSET(conn->stat_flags, WT_STAT_ON_CLOSE))
return (0);
- if (F_ISSET(conn, WT_CONN_SERVER_STATISTICS))
+ if (FLD_ISSET(conn->server_flags, WT_CONN_SERVER_STATISTICS))
WT_RET_MSG(session, EINVAL, "Attempt to log statistics while a server is running");
WT_RET(__wt_scr_alloc(session, strlen(conn->stat_path) + 128, &tmp));
@@ -547,7 +547,7 @@ err:
static bool
__statlog_server_run_chk(WT_SESSION_IMPL *session)
{
- return (F_ISSET(S2C(session), WT_CONN_SERVER_STATISTICS));
+ return (FLD_ISSET(S2C(session)->server_flags, WT_CONN_SERVER_STATISTICS));
}
/*
@@ -614,7 +614,7 @@ __statlog_start(WT_CONNECTION_IMPL *conn)
if (conn->stat_session != NULL)
return (0);
- F_SET(conn, WT_CONN_SERVER_STATISTICS);
+ FLD_SET(conn->server_flags, WT_CONN_SERVER_STATISTICS);
/* The statistics log server gets its own session. */
WT_RET(__wt_open_internal_session(conn, "statlog-server", true, 0, &conn->stat_session));
@@ -685,7 +685,7 @@ __wt_statlog_destroy(WT_SESSION_IMPL *session, bool is_close)
conn = S2C(session);
/* Stop the server thread. */
- F_CLR(conn, WT_CONN_SERVER_STATISTICS);
+ FLD_CLR(conn->server_flags, WT_CONN_SERVER_STATISTICS);
if (conn->stat_tid_set) {
__wt_cond_signal(session, conn->stat_cond);
WT_TRET(__wt_thread_join(session, &conn->stat_tid));