diff options
author | Keith Bostic <keith@wiredtiger.com> | 2015-11-30 11:10:21 -0500 |
---|---|---|
committer | Keith Bostic <keith@wiredtiger.com> | 2015-11-30 11:10:21 -0500 |
commit | 7ae8529f2f653525f073e7bbbc39207417fc9c22 (patch) | |
tree | 73003639fa8a8de6f5bc93ad83cafc8d37c40a7d /src/support | |
parent | bd0f24b3d6f95a05eba3c08bf817eb7e7d26675d (diff) | |
download | mongo-7ae8529f2f653525f073e7bbbc39207417fc9c22.tar.gz |
Make the autobuilt max_aggregate statistics code a little prettier,
don't break lines we don't need to break.
Diffstat (limited to 'src/support')
-rw-r--r-- | src/support/stat.c | 21 |
1 files changed, 7 insertions, 14 deletions
diff --git a/src/support/stat.c b/src/support/stat.c index d28d0f7e167..7a615131628 100644 --- a/src/support/stat.c +++ b/src/support/stat.c @@ -372,19 +372,15 @@ __wt_stat_dsrc_aggregate( to->block_free += WT_STAT_READ(from, block_free); to->block_checkpoint_size += WT_STAT_READ(from, block_checkpoint_size); - if ((v = WT_STAT_READ(from, allocation_size)) > - to->allocation_size) + if ((v = WT_STAT_READ(from, allocation_size)) > to->allocation_size) to->allocation_size = v; to->block_reuse_bytes += WT_STAT_READ(from, block_reuse_bytes); - if ((v = WT_STAT_READ(from, block_magic)) > - to->block_magic) + if ((v = WT_STAT_READ(from, block_magic)) > to->block_magic) to->block_magic = v; - if ((v = WT_STAT_READ(from, block_major)) > - to->block_major) + if ((v = WT_STAT_READ(from, block_major)) > to->block_major) to->block_major = v; to->block_size += WT_STAT_READ(from, block_size); - if ((v = WT_STAT_READ(from, block_minor)) > - to->block_minor) + if ((v = WT_STAT_READ(from, block_minor)) > to->block_minor) to->block_minor = v; to->btree_checkpoint_generation += WT_STAT_READ(from, btree_checkpoint_generation); @@ -395,17 +391,14 @@ __wt_stat_dsrc_aggregate( to->btree_column_variable += WT_STAT_READ(from, btree_column_variable); to->btree_column_rle += WT_STAT_READ(from, btree_column_rle); - if ((v = WT_STAT_READ(from, btree_fixed_len)) > - to->btree_fixed_len) + if ((v = WT_STAT_READ(from, btree_fixed_len)) > to->btree_fixed_len) to->btree_fixed_len = v; - if ((v = WT_STAT_READ(from, btree_maxintlkey)) > - to->btree_maxintlkey) + if ((v = WT_STAT_READ(from, btree_maxintlkey)) > to->btree_maxintlkey) to->btree_maxintlkey = v; if ((v = WT_STAT_READ(from, btree_maxintlpage)) > to->btree_maxintlpage) to->btree_maxintlpage = v; - if ((v = WT_STAT_READ(from, btree_maxleafkey)) > - to->btree_maxleafkey) + if ((v = WT_STAT_READ(from, btree_maxleafkey)) > to->btree_maxleafkey) to->btree_maxleafkey = v; if ((v = WT_STAT_READ(from, btree_maxleafpage)) > to->btree_maxleafpage) |