diff options
author | Keith Bostic <keith@wiredtiger.com> | 2013-10-19 16:29:08 -0400 |
---|---|---|
committer | Keith Bostic <keith@wiredtiger.com> | 2013-10-19 16:29:08 -0400 |
commit | 30c726c7744aab82dfb03dad0681c65dc0cff480 (patch) | |
tree | fa87cfe5eddebac0494f7a20d81d1765612813da /src/schema/schema_stat.c | |
parent | aeb165257d7a26aa7c73a99658d54a4ee909438d (diff) | |
download | mongo-30c726c7744aab82dfb03dad0681c65dc0cff480.tar.gz |
API change: rework "run-time" and "tree-walk" statistics configuration.
Now, the database is configured for "none", "fast" or "all" statistics,
and each cursor is configured for "fast" or "all" statistics, with the
additional flag "clear". A cursor's statistics configuration must match
the database statistics cursor, defaulting to the current configuration.
The statistics_log configuration no longer defaults to "fast", it dumps
whatever the database is configured for.
Rename all of the macros from WT_RUNSTAT_XXX to WT_STAT_FAST_XXX.
Reference #715.
Diffstat (limited to 'src/schema/schema_stat.c')
-rw-r--r-- | src/schema/schema_stat.c | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/src/schema/schema_stat.c b/src/schema/schema_stat.c index 94c94a02a3e..bdeb65c499a 100644 --- a/src/schema/schema_stat.c +++ b/src/schema/schema_stat.c @@ -13,7 +13,7 @@ */ int __wt_curstat_colgroup_init(WT_SESSION_IMPL *session, - const char *uri, const char *cfg[], WT_CURSOR_STAT *cst, uint32_t flags) + const char *uri, const char *cfg[], WT_CURSOR_STAT *cst) { WT_COLGROUP *colgroup; WT_DECL_ITEM(buf); @@ -23,7 +23,7 @@ __wt_curstat_colgroup_init(WT_SESSION_IMPL *session, WT_RET(__wt_scr_alloc(session, 0, &buf)); WT_ERR(__wt_buf_fmt(session, buf, "statistics:%s", colgroup->source)); - ret = __wt_curstat_init(session, buf->data, cfg, cst, flags); + ret = __wt_curstat_init(session, buf->data, cfg, cst); err: __wt_scr_free(&buf); return (ret); @@ -35,7 +35,7 @@ err: __wt_scr_free(&buf); */ int __wt_curstat_index_init(WT_SESSION_IMPL *session, - const char *uri, const char *cfg[], WT_CURSOR_STAT *cst, uint32_t flags) + const char *uri, const char *cfg[], WT_CURSOR_STAT *cst) { WT_DECL_ITEM(buf); WT_DECL_RET; @@ -45,7 +45,7 @@ __wt_curstat_index_init(WT_SESSION_IMPL *session, WT_RET(__wt_scr_alloc(session, 0, &buf)); WT_ERR(__wt_buf_fmt(session, buf, "statistics:%s", idx->source)); - ret = __wt_curstat_init(session, buf->data, cfg, cst, flags); + ret = __wt_curstat_init(session, buf->data, cfg, cst); err: __wt_scr_free(&buf); return (ret); @@ -57,7 +57,7 @@ err: __wt_scr_free(&buf); */ int __wt_curstat_table_init(WT_SESSION_IMPL *session, - const char *uri, const char *cfg[], WT_CURSOR_STAT *cst, uint32_t flags) + const char *uri, const char *cfg[], WT_CURSOR_STAT *cst) { WT_CURSOR *stat_cursor; WT_DECL_ITEM(buf); @@ -67,7 +67,6 @@ __wt_curstat_table_init(WT_SESSION_IMPL *session, u_int i; const char *name; - WT_UNUSED(flags); name = uri + strlen("table:"); WT_RET(__wt_scr_alloc(session, 0, &buf)); |