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
|
#include <stdio.h>
#include <assert.h>
#include "innodb.h"
void
get_all()
{
const char* var_names[] = {
"adaptive_hash_index",
"additional_mem_pool_size",
"autoextend_increment",
"buffer_pool_size",
"checksums",
"commit_concurrency",
"concurrency_tickets",
"data_file_path",
"data_home_dir",
"doublewrite",
"fast_shutdown",
"file_format",
"file_io_threads",
"file_per_table",
"flush_log_at_trx_commit",
"flush_method",
"force_recovery",
"lock_wait_timeout",
"log_buffer_size",
"log_file_size",
"log_files_in_group",
"log_group_home_dir",
"max_dirty_pages_pct",
"max_purge_lag",
"mirrored_log_groups",
"open_files",
"pre_rollback_hook",
"print_verbose_log",
"rollback_on_timeout",
"stats_sample_pages",
"status_file",
"sync_spin_loops",
"thread_concurrency",
"thread_sleep_delay",
"version",
};
ib_bool_t ret;
void* val;
int i;
for (i = 0; i < sizeof(var_names) / sizeof(var_names[0]); i++) {
ret = ib_cfg_get(var_names[i], &val);
assert(ret);
}
}
int
main(int argc, char** argv)
{
ib_bool_t ret;
ib_init();
get_all();
ret = ib_cfg_set("flush_method", "fdatasync");
assert(ret);
ret = ib_cfg_set("open_files", 123);
assert(ret);
get_all();
ib_shutdown();
return(0);
}
|