summaryrefslogtreecommitdiff
path: root/bench/wtperf/wtperf.h
diff options
context:
space:
mode:
authorDavid Hows <howsdav@gmail.com>2015-12-10 15:29:02 +1100
committerDavid Hows <howsdav@gmail.com>2015-12-10 17:43:37 +1100
commitab263337512646004e9179ee8f4e9c663e874540 (patch)
treec358fb56d0933462791b0209c5160688c68d6740 /bench/wtperf/wtperf.h
parent8d4e75d1d00fe44268373fee49ce970c4356e714 (diff)
downloadmongo-ab263337512646004e9179ee8f4e9c663e874540.tar.gz
WT-2269 - Add ability to write config dump
Diffstat (limited to 'bench/wtperf/wtperf.h')
-rw-r--r--bench/wtperf/wtperf.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/bench/wtperf/wtperf.h b/bench/wtperf/wtperf.h
index b26e978c13b..bc2caee1e4e 100644
--- a/bench/wtperf/wtperf.h
+++ b/bench/wtperf/wtperf.h
@@ -127,6 +127,12 @@ struct __truncate_queue_entry {
};
typedef struct __truncate_queue_entry TRUNCATE_QUEUE_ENTRY;
+struct __config_queue_entry {
+ char *string;
+ TAILQ_ENTRY(__config_queue_entry) c;
+};
+typedef struct __config_queue_entry CONFIG_QUEUE_ENTRY;
+
#define LOG_PARTIAL_CONFIG ",log=(enabled=false)"
/*
* NOTE: If you add any fields to this structure here, you must also add
@@ -181,6 +187,9 @@ struct __config { /* Configuration structure */
/* Queue head for use with the Truncate Logic */
TAILQ_HEAD(__truncate_qh, __truncate_queue_entry) stone_head;
+ /* Queue head to save a copy of the config to be output */
+ TAILQ_HEAD(__config_qh, __config_queue_entry) config_head;
+
/* Fields changeable on command line are listed in wtperf_opt.i */
#define OPT_DECLARE_STRUCT
#include "wtperf_opt.i"