summaryrefslogtreecommitdiff
path: root/test/format/format.h
diff options
context:
space:
mode:
Diffstat (limited to 'test/format/format.h')
-rw-r--r--test/format/format.h39
1 files changed, 21 insertions, 18 deletions
diff --git a/test/format/format.h b/test/format/format.h
index 41cc48c4278..602c1cc6d59 100644
--- a/test/format/format.h
+++ b/test/format/format.h
@@ -1,5 +1,5 @@
/*-
- * Public Domain 2014-2016 MongoDB, Inc.
+ * Public Domain 2014-2017 MongoDB, Inc.
* Public Domain 2008-2014 WiredTiger, Inc.
*
* This is free and unencumbered software released into the public domain.
@@ -78,6 +78,8 @@
#define FORMAT_OPERATION_REPS 3 /* 3 thread operations sets */
+#define MAX_MODIFY_ENTRIES 5 /* maximum change vectors */
+
typedef struct {
char *home; /* Home directory */
char *home_backup; /* Hot-backup directory */
@@ -147,28 +149,28 @@ typedef struct {
uint32_t c_bloom_hash_count;
uint32_t c_bloom_oldest;
uint32_t c_cache;
- uint32_t c_compact;
uint32_t c_checkpoints;
- char *c_checksum;
+ char *c_checksum;
uint32_t c_chunk_size;
- char *c_compression;
- char *c_encryption;
- char *c_config_open;
+ uint32_t c_compact;
+ char *c_compression;
+ char *c_config_open;
uint32_t c_data_extend;
- char *c_data_source;
+ char *c_data_source;
uint32_t c_delete_pct;
uint32_t c_dictionary;
uint32_t c_direct_io;
+ char *c_encryption;
uint32_t c_evict_max;
+ char *c_file_type;
uint32_t c_firstfit;
- char *c_file_type;
uint32_t c_huffman_key;
uint32_t c_huffman_value;
uint32_t c_in_memory;
uint32_t c_insert_pct;
uint32_t c_internal_key_truncation;
uint32_t c_intl_page_max;
- char *c_isolation;
+ char *c_isolation;
uint32_t c_key_gap;
uint32_t c_key_max;
uint32_t c_key_min;
@@ -176,22 +178,23 @@ typedef struct {
uint32_t c_leak_memory;
uint32_t c_logging;
uint32_t c_logging_archive;
- char *c_logging_compression;
+ char *c_logging_compression;
uint32_t c_logging_prealloc;
uint32_t c_long_running_txn;
uint32_t c_lsm_worker_threads;
uint32_t c_merge_max;
uint32_t c_mmap;
+ uint32_t c_modify_pct;
uint32_t c_ops;
- uint32_t c_quiet;
uint32_t c_prefix_compression;
uint32_t c_prefix_compression_min;
+ uint32_t c_quiet;
+ uint32_t c_read_pct;
+ uint32_t c_rebalance;
uint32_t c_repeat_data_pct;
uint32_t c_reverse;
uint32_t c_rows;
uint32_t c_runs;
- uint32_t c_read_pct;
- uint32_t c_rebalance;
uint32_t c_salvage;
uint32_t c_split_pct;
uint32_t c_statistics;
@@ -256,7 +259,7 @@ typedef struct {
uint64_t deadlock;
int id; /* simple thread ID */
- pthread_t tid; /* thread ID */
+ wt_thread_t tid; /* thread ID */
int quit; /* thread should quit */
@@ -276,9 +279,9 @@ void bdb_remove(uint64_t, int *);
void bdb_update(const void *, size_t, const void *, size_t);
#endif
-void *alter(void *);
-void *backup(void *);
-void *compact(void *);
+WT_THREAD_RET alter(void *);
+WT_THREAD_RET backup(void *);
+WT_THREAD_RET compact(void *);
void config_clear(void);
void config_error(void);
void config_file(const char *);
@@ -290,7 +293,7 @@ void key_gen(WT_ITEM *, uint64_t);
void key_gen_insert(WT_RAND_STATE *, WT_ITEM *, uint64_t);
void key_gen_setup(WT_ITEM *);
void key_len_setup(void);
-void *lrt(void *);
+WT_THREAD_RET lrt(void *);
void path_setup(const char *);
int read_row(WT_CURSOR *, WT_ITEM *, WT_ITEM *, uint64_t);
uint32_t rng(WT_RAND_STATE *);