diff options
author | Alex Gorrod <alexg@wiredtiger.com> | 2014-06-25 18:22:28 +1000 |
---|---|---|
committer | Alex Gorrod <alexg@wiredtiger.com> | 2014-06-25 18:22:28 +1000 |
commit | c8f08c91bb01c8d29610fd89c031c3fa3ee4aca1 (patch) | |
tree | d22f5823512cea3e4f8bf9a90ee1dde8f603e034 /src/support | |
parent | cfc45cdae670e6411e6f3087d5075c8742f1b00a (diff) | |
download | mongo-c8f08c91bb01c8d29610fd89c031c3fa3ee4aca1.tar.gz |
Change from using separate fields to define stat states to flags.
We used to use stat_all, stat_fast and stat_clear. Now use flags.
Diffstat (limited to 'src/support')
-rw-r--r-- | src/support/mutex.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/support/mutex.c b/src/support/mutex.c index 6102c57ba9c..ffe52cf28fd 100644 --- a/src/support/mutex.c +++ b/src/support/mutex.c @@ -182,13 +182,13 @@ __wt_statlog_dump_spinlock(WT_CONNECTION_IMPL *conn, const char *tag) */ if (strcmp(spin->name, "block manager") == 0) { block_manager += spin->counter; - if (conn->stat_clear) + if (FLD_ISSET(conn->stat_flags, WT_CONN_STAT_CLEAR)) spin->counter = 0; continue; } if (strcmp(spin->name, "btree page") == 0) { btree_page += spin->counter; - if (conn->stat_clear) + if (FLD_ISSET(conn->stat_flags, WT_CONN_STAT_CLEAR)) spin->counter = 0; continue; } @@ -199,7 +199,7 @@ __wt_statlog_dump_spinlock(WT_CONNECTION_IMPL *conn, const char *tag) spin->counter <= ignore ? 0 : spin->counter, tag, spin->name) < 0), __wt_errno()); - if (conn->stat_clear) + if (FLD_ISSET(conn->stat_flags, WT_CONN_STAT_CLEAR)) spin->counter = 0; } WT_RET_TEST((fprintf(conn->stat_fp, @@ -230,7 +230,7 @@ __wt_statlog_dump_spinlock(WT_CONNECTION_IMPL *conn, const char *tag) p->total <= ignore ? 0 : p->total, tag, p->name, p->file, p->line) < 0), __wt_errno()); - if (conn->stat_clear) + if (FLD_ISSET(conn->stat_flags, WT_CONN_STAT_CLEAR)) p->total = 0; for (j = 0; j < WT_ELEMENTS(conn->spinlock_block); ++j) { @@ -245,7 +245,7 @@ __wt_statlog_dump_spinlock(WT_CONNECTION_IMPL *conn, const char *tag) tag, p->name, p->file, p->line, t->file, t->line) < 0), __wt_errno()); - if (conn->stat_clear) + if (FLD_ISSET(conn->stat_flags, WT_CONN_STAT_CLEAR)) p->blocked[j] = 0; } } |