diff options
author | Keith Bostic <keith@wiredtiger.com> | 2015-11-30 07:09:58 -0500 |
---|---|---|
committer | Keith Bostic <keith@wiredtiger.com> | 2015-11-30 07:09:58 -0500 |
commit | 78c1d0390395e3da2bdc659b0a1fec6cace6e958 (patch) | |
tree | 039acadfbda707e03664835d54bc26924adfb8d8 /src/cache/cache_las.c | |
parent | 33e0955a2d4f648951647bdd0b4749be60636da7 (diff) | |
download | mongo-78c1d0390395e3da2bdc659b0a1fec6cace6e958.tar.gz |
Repurpose WT_STAT_WRITE to update a single field in a single stats
structure, use it instead of writing the fields expicitly, it makes
it easier to spot statistics updates.
Diffstat (limited to 'src/cache/cache_las.c')
-rw-r--r-- | src/cache/cache_las.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/src/cache/cache_las.c b/src/cache/cache_las.c index d3a0265c13a..e943f01236e 100644 --- a/src/cache/cache_las.c +++ b/src/cache/cache_las.c @@ -18,6 +18,7 @@ __wt_las_stats_update(WT_SESSION_IMPL *session) WT_CONNECTION_IMPL *conn; WT_CONNECTION_STATS **cstats; WT_DSRC_STATS **dstats; + int64_t v; conn = S2C(session); @@ -37,10 +38,10 @@ __wt_las_stats_update(WT_SESSION_IMPL *session) dstats = ((WT_CURSOR_BTREE *) conn->las_session->las_cursor)->btree->dhandle->stats; - WT_STAT_SET(session, cstats, - cache_lookaside_insert, WT_STAT_READ(dstats, cursor_insert)); - WT_STAT_SET(session, cstats, - cache_lookaside_remove, WT_STAT_READ(dstats, cursor_remove)); + v = WT_STAT_READ(dstats, cursor_insert); + WT_STAT_SET(session, cstats, cache_lookaside_insert, v); + v = WT_STAT_READ(dstats, cursor_remove); + WT_STAT_SET(session, cstats, cache_lookaside_remove, v); } /* |