summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKeith Bostic <keith@wiredtiger.com>2012-10-08 09:24:37 +0000
committerKeith Bostic <keith@wiredtiger.com>2012-10-08 09:24:37 +0000
commit6bb3179b9299802464c88662a1a4b403a5eb8ad1 (patch)
treeb867a6226586fc2eb44b0e4d9cd08a5656372a04
parentd4240549a0bbf93a8c6ea4d38a85115703e5f94e (diff)
downloadmongo-6bb3179b9299802464c88662a1a4b403a5eb8ad1.tar.gz
style cleanup
-rw-r--r--examples/c/ex_test_perf.c3
-rw-r--r--src/include/stat.h18
-rw-r--r--src/lsm/lsm_cursor.c3
3 files changed, 13 insertions, 11 deletions
diff --git a/examples/c/ex_test_perf.c b/examples/c/ex_test_perf.c
index 3e701588b56..05836ad214d 100644
--- a/examples/c/ex_test_perf.c
+++ b/examples/c/ex_test_perf.c
@@ -244,7 +244,8 @@ stat_worker(void *arg)
sleep(cfg->report_interval);
/* Generic header. */
fprintf(logf, "=========================================\n");
- fprintf(logf, "reads completed: %" PRIu64", elapsed time: ~%d\n",
+ fprintf(logf,
+ "reads completed: %" PRIu64", elapsed time: ~%d\n",
nops, cfg->elapsed_time);
/* Report LSM tree stats, if using LSM. */
if (lsm_uri != NULL) {
diff --git a/src/include/stat.h b/src/include/stat.h
index 5ae315f0a99..291c62f8f34 100644
--- a/src/include/stat.h
+++ b/src/include/stat.h
@@ -46,15 +46,6 @@ struct __wt_stats {
/* Statistics section: BEGIN */
/*
- * Statistics entries for LSM handle.
- */
-struct __wt_lsm_stats {
- WT_STATS bloom_misses;
- WT_STATS bloom_hits;
- WT_STATS bloom_skips;
-};
-
-/*
* Statistics entries for BTREE handle.
*/
struct __wt_btree_stats {
@@ -134,4 +125,13 @@ struct __wt_connection_stats {
WT_STATS txn_rollback;
};
+/*
+ * Statistics entries for LSM handle.
+ */
+struct __wt_lsm_stats {
+ WT_STATS bloom_misses;
+ WT_STATS bloom_hits;
+ WT_STATS bloom_skips;
+};
+
/* Statistics section: END */
diff --git a/src/lsm/lsm_cursor.c b/src/lsm/lsm_cursor.c
index bbe3ded5603..a885632c501 100644
--- a/src/lsm/lsm_cursor.c
+++ b/src/lsm/lsm_cursor.c
@@ -514,7 +514,8 @@ __clsm_search(WT_CURSOR *cursor)
if ((bloom = clsm->blooms[i]) != NULL) {
ret = __wt_bloom_get(bloom, &cursor->key);
if (ret == WT_NOTFOUND) {
- WT_STAT_INCR(clsm->lsm_tree->stats, bloom_skips);
+ WT_STAT_INCR(
+ clsm->lsm_tree->stats, bloom_skips);
continue;
} else if (ret == 0)
WT_STAT_INCR(clsm->lsm_tree->stats, bloom_hits);