/
config.h
155 lines (147 loc) · 5.95 KB
/
config.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
/* DO NOT EDIT: automatically built by format/config.sh. */
#define C_TYPE_MATCH(cp, type) \
(!F_ISSET(cp, (C_TYPE_FIX | C_TYPE_ROW | C_TYPE_VAR)) || \
((type) == FIX && F_ISSET(cp, C_TYPE_FIX)) || ((type) == ROW && F_ISSET(cp, C_TYPE_ROW)) || \
((type) == VAR && F_ISSET(cp, C_TYPE_VAR)))
typedef struct {
const char *name; /* Configuration item */
const char *desc; /* Configuration description */
#define C_BOOL 0x001u /* Boolean (true if roll of 1-to-100 is <= CONFIG->min) */
#define C_IGNORE 0x002u /* Not a simple randomization, configured specially */
#define C_STRING 0x004u /* String (rather than integral) */
#define C_TABLE 0x008u /* Value is per table, not global */
#define C_TYPE_FIX 0x010u /* Value is only relevant to FLCS */
#define C_TYPE_LSM 0x020u /* Value is only relevant to LSM */
#define C_TYPE_ROW 0x040u /* Value is only relevant to RS */
#define C_TYPE_VAR 0x080u /* Value is only relevant to VLCS */
#define C_ZERO_NOTSET 0x100u /* Ignore zero values */
uint32_t flags;
uint32_t min; /* Minimum value */
uint32_t maxrand; /* Maximum value randomly chosen */
uint32_t maxset; /* Maximum value explicitly set */
u_int off; /* Value offset */
} CONFIG;
#define V_MAX_TABLES_CONFIG WT_THOUSAND
#define V_GLOBAL_ASSERT_READ_TIMESTAMP 0
#define V_GLOBAL_BACKUP 1
#define V_GLOBAL_BACKUP_INCREMENTAL 2
#define V_GLOBAL_BACKUP_INCR_GRANULARITY 3
#define V_GLOBAL_BLOCK_CACHE 4
#define V_GLOBAL_BLOCK_CACHE_CACHE_ON_CHECKPOINT 5
#define V_GLOBAL_BLOCK_CACHE_CACHE_ON_WRITES 6
#define V_GLOBAL_BLOCK_CACHE_SIZE 7
#define V_TABLE_BTREE_BITCNT 8
#define V_TABLE_BTREE_COMPRESSION 9
#define V_TABLE_BTREE_DICTIONARY 10
#define V_TABLE_BTREE_HUFFMAN_VALUE 11
#define V_TABLE_BTREE_INTERNAL_KEY_TRUNCATION 12
#define V_TABLE_BTREE_INTERNAL_PAGE_MAX 13
#define V_TABLE_BTREE_KEY_MAX 14
#define V_TABLE_BTREE_KEY_MIN 15
#define V_TABLE_BTREE_LEAF_PAGE_MAX 16
#define V_TABLE_BTREE_MEMORY_PAGE_MAX 17
#define V_TABLE_BTREE_PREFIX_LEN 18
#define V_TABLE_BTREE_PREFIX_COMPRESSION 19
#define V_TABLE_BTREE_PREFIX_COMPRESSION_MIN 20
#define V_TABLE_BTREE_REPEAT_DATA_PCT 21
#define V_TABLE_BTREE_REVERSE 22
#define V_TABLE_BTREE_SPLIT_PCT 23
#define V_TABLE_BTREE_VALUE_MAX 24
#define V_TABLE_BTREE_VALUE_MIN 25
#define V_GLOBAL_BUFFER_ALIGNMENT 26
#define V_GLOBAL_CACHE 27
#define V_GLOBAL_CACHE_EVICT_MAX 28
#define V_GLOBAL_CACHE_MINIMUM 29
#define V_GLOBAL_CHECKPOINT 30
#define V_GLOBAL_CHECKPOINT_LOG_SIZE 31
#define V_GLOBAL_CHECKPOINT_WAIT 32
#define V_GLOBAL_DEBUG_CHECKPOINT_RETENTION 33
#define V_GLOBAL_DEBUG_CURSOR_REPOSITION 34
#define V_GLOBAL_DEBUG_EVICTION 35
#define V_GLOBAL_DEBUG_LOG_RETENTION 36
#define V_GLOBAL_DEBUG_REALLOC_EXACT 37
#define V_GLOBAL_DEBUG_REALLOC_MALLOC 38
#define V_GLOBAL_DEBUG_SLOW_CHECKPOINT 39
#define V_GLOBAL_DEBUG_TABLE_LOGGING 40
#define V_GLOBAL_DEBUG_UPDATE_RESTORE_EVICT 41
#define V_TABLE_DISK_CHECKSUM 42
#define V_GLOBAL_DISK_DATA_EXTEND 43
#define V_GLOBAL_DISK_DIRECT_IO 44
#define V_GLOBAL_DISK_ENCRYPTION 45
#define V_TABLE_DISK_FIRSTFIT 46
#define V_GLOBAL_DISK_MMAP 47
#define V_GLOBAL_DISK_MMAP_ALL 48
#define V_GLOBAL_FILE_MANAGER_CLOSE_HANDLE_MINIMUM 49
#define V_GLOBAL_FILE_MANAGER_CLOSE_IDLE_TIME 50
#define V_GLOBAL_FILE_MANAGER_CLOSE_SCAN_INTERVAL 51
#define V_GLOBAL_FORMAT_ABORT 52
#define V_GLOBAL_FORMAT_INDEPENDENT_THREAD_RNG 53
#define V_GLOBAL_FORMAT_MAJOR_TIMEOUT 54
#define V_GLOBAL_IMPORT 55
#define V_GLOBAL_LOGGING 56
#define V_GLOBAL_LOGGING_COMPRESSION 57
#define V_GLOBAL_LOGGING_FILE_MAX 58
#define V_GLOBAL_LOGGING_PREALLOC 59
#define V_GLOBAL_LOGGING_REMOVE 60
#define V_TABLE_LSM_AUTO_THROTTLE 61
#define V_TABLE_LSM_BLOOM 62
#define V_TABLE_LSM_BLOOM_BIT_COUNT 63
#define V_TABLE_LSM_BLOOM_HASH_COUNT 64
#define V_TABLE_LSM_BLOOM_OLDEST 65
#define V_TABLE_LSM_CHUNK_SIZE 66
#define V_TABLE_LSM_MERGE_MAX 67
#define V_GLOBAL_LSM_WORKER_THREADS 68
#define V_GLOBAL_OPS_ALTER 69
#define V_GLOBAL_OPS_COMPACTION 70
#define V_GLOBAL_OPS_HS_CURSOR 71
#define V_TABLE_OPS_PCT_DELETE 72
#define V_TABLE_OPS_PCT_INSERT 73
#define V_TABLE_OPS_PCT_MODIFY 74
#define V_TABLE_OPS_PCT_READ 75
#define V_TABLE_OPS_PCT_WRITE 76
#define V_GLOBAL_OPS_BOUND_CURSOR 77
#define V_GLOBAL_OPS_PREPARE 78
#define V_GLOBAL_OPS_RANDOM_CURSOR 79
#define V_GLOBAL_OPS_SALVAGE 80
#define V_TABLE_OPS_TRUNCATE 81
#define V_GLOBAL_OPS_VERIFY 82
#define V_GLOBAL_QUIET 83
#define V_GLOBAL_RANDOM_DATA_SEED 84
#define V_GLOBAL_RANDOM_EXTRA_SEED 85
#define V_GLOBAL_RUNS_IN_MEMORY 86
#define V_TABLE_RUNS_MIRROR 87
#define V_GLOBAL_RUNS_OPS 88
#define V_GLOBAL_RUNS_PREDICTABLE_REPLAY 89
#define V_TABLE_RUNS_ROWS 90
#define V_TABLE_RUNS_SOURCE 91
#define V_GLOBAL_RUNS_TABLES 92
#define V_GLOBAL_RUNS_THREADS 93
#define V_GLOBAL_RUNS_TIMER 94
#define V_TABLE_RUNS_TYPE 95
#define V_GLOBAL_RUNS_VERIFY_FAILURE_DUMP 96
#define V_GLOBAL_STATISTICS_MODE 97
#define V_GLOBAL_STATISTICS_LOG_SOURCES 98
#define V_GLOBAL_STRESS_AGGRESSIVE_SWEEP 99
#define V_GLOBAL_STRESS_CHECKPOINT 100
#define V_GLOBAL_STRESS_CHECKPOINT_EVICT_PAGE 101
#define V_GLOBAL_STRESS_CHECKPOINT_PREPARE 102
#define V_GLOBAL_STRESS_EVICT_REPOSITION 103
#define V_GLOBAL_STRESS_FAILPOINT_EVICTION_FAIL_AFTER_RECONCILIATION 104
#define V_GLOBAL_STRESS_FAILPOINT_HS_DELETE_KEY_FROM_TS 105
#define V_GLOBAL_STRESS_HS_CHECKPOINT_DELAY 106
#define V_GLOBAL_STRESS_HS_SEARCH 107
#define V_GLOBAL_STRESS_HS_SWEEP 108
#define V_GLOBAL_STRESS_SLEEP_BEFORE_READ_OVERFLOW_ONPAGE 109
#define V_GLOBAL_STRESS_SPLIT_1 110
#define V_GLOBAL_STRESS_SPLIT_2 111
#define V_GLOBAL_STRESS_SPLIT_3 112
#define V_GLOBAL_STRESS_SPLIT_4 113
#define V_GLOBAL_STRESS_SPLIT_5 114
#define V_GLOBAL_STRESS_SPLIT_6 115
#define V_GLOBAL_STRESS_SPLIT_7 116
#define V_GLOBAL_TRANSACTION_IMPLICIT 117
#define V_GLOBAL_TRANSACTION_TIMESTAMPS 118
#define V_GLOBAL_WIREDTIGER_CONFIG 119
#define V_GLOBAL_WIREDTIGER_RWLOCK 120
#define V_GLOBAL_WIREDTIGER_LEAK_MEMORY 121
#define V_ELEMENT_COUNT 122