summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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);