summaryrefslogtreecommitdiff
path: root/src/cursor/cur_stat.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/cursor/cur_stat.c')
-rw-r--r--src/cursor/cur_stat.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cursor/cur_stat.c b/src/cursor/cur_stat.c
index 5c9159a4c0b..700cc366ff0 100644
--- a/src/cursor/cur_stat.c
+++ b/src/cursor/cur_stat.c
@@ -599,7 +599,7 @@ __wt_curstat_open(WT_SESSION_IMPL *session,
* Statistics cursor configuration: must match (and defaults to), the
* database configuration.
*/
- if (FLD_ISSET(conn->stat_flags, WT_CONN_STAT_NONE))
+ if (!WT_STAT_ENABLED(session))
goto config_err;
if ((ret = __wt_config_gets(session, cfg, "statistics", &cval)) == 0) {
if ((ret = __wt_config_subgets(