Merge lp:~mordred/drizzle/rplugin-innobase into lp:~drizzle-trunk/drizzle/development
- rplugin-innobase
- Merge into development
Status: | Merged |
---|---|
Approved by: | Brian Aker |
Approved revision: | no longer in the revision history of the source branch. |
Merged at revision: | 1712 |
Proposed branch: | lp:~mordred/drizzle/rplugin-innobase |
Merge into: | lp:~drizzle-trunk/drizzle/development |
Diff against target: |
2246 lines (+1191/-158) 79 files modified
.quickly (+1/-1) client/drizzle.cc (+4/-5) client/drizzletest.cc (+2/-2) drizzled/drizzled.cc (+58/-1) drizzled/module/library.cc (+1/-1) m4/pandora_canonical.m4 (+1/-1) m4/pandora_have_libboost_date_time.m4 (+46/-0) m4/pandora_have_libboost_filesystem.m4 (+45/-0) m4/pandora_have_libinnodb.m4 (+25/-29) plugin/drizzle_protocol/drizzle_protocol.cc (+7/-1) plugin/drizzle_protocol/drizzle_protocol.h (+1/-0) plugin/embedded_innodb/config_table_function.cc (+5/-1) plugin/embedded_innodb/embedded_innodb_engine.cc (+316/-4) plugin/embedded_innodb/libinnodb_datadict_dump_func.cc (+5/-1) plugin/embedded_innodb/libinnodb_version_func.cc (+5/-1) plugin/embedded_innodb/plugin.ini (+2/-2) plugin/embedded_innodb/status_table_function.cc (+5/-1) plugin/embedded_innodb/test-suite-dir/embedded_innodb/tests/r/config_table_function.result (+1/-2) plugin/embedded_innodb/test-suite-dir/embedded_innodb/tests/t/basic_select_for_update-master.opt (+1/-1) plugin/embedded_innodb/test-suite-dir/embedded_innodb/tests/t/basic_select_for_update_pk_index-master.opt (+1/-1) plugin/embedded_innodb/test-suite-dir/embedded_innodb/tests/t/config_adaptive_flushing_off-master.opt (+1/-1) plugin/embedded_innodb/test-suite-dir/embedded_innodb/tests/t/config_adaptive_flushing_on-master.opt (+1/-1) plugin/embedded_innodb/test-suite-dir/embedded_innodb/tests/t/config_adaptive_hash_index_off-master.opt (+1/-1) plugin/embedded_innodb/test-suite-dir/embedded_innodb/tests/t/config_adaptive_hash_index_on-master.opt (+1/-1) plugin/embedded_innodb/test-suite-dir/embedded_innodb/tests/t/config_additional_mem_pool_size_32m-master.opt (+1/-1) plugin/embedded_innodb/test-suite-dir/embedded_innodb/tests/t/config_autoextend_increment_42-master.opt (+1/-1) plugin/embedded_innodb/test-suite-dir/embedded_innodb/tests/t/config_buffer_pool_size_22m-master.opt (+1/-1) plugin/embedded_innodb/test-suite-dir/embedded_innodb/tests/t/config_checksums_disable-master.opt (+1/-1) plugin/embedded_innodb/test-suite-dir/embedded_innodb/tests/t/config_checksums_enable-master.opt (+1/-1) plugin/embedded_innodb/test-suite-dir/embedded_innodb/tests/t/config_doublewrite_disable-master.opt (+1/-1) plugin/embedded_innodb/test-suite-dir/embedded_innodb/tests/t/config_doublewrite_enable-master.opt (+1/-1) plugin/embedded_innodb/test-suite-dir/embedded_innodb/tests/t/config_fast_shutdown0-master.opt (+1/-1) plugin/embedded_innodb/test-suite-dir/embedded_innodb/tests/t/config_fast_shutdown1-master.opt (+1/-1) plugin/embedded_innodb/test-suite-dir/embedded_innodb/tests/t/config_fast_shutdown2-master.opt (+1/-1) plugin/embedded_innodb/test-suite-dir/embedded_innodb/tests/t/config_file_per_table_disable-master.opt (+1/-1) plugin/embedded_innodb/test-suite-dir/embedded_innodb/tests/t/config_file_per_table_enable-master.opt (+1/-1) plugin/embedded_innodb/test-suite-dir/embedded_innodb/tests/t/config_flush_log_at_trx_commit0-master.opt (+1/-1) plugin/embedded_innodb/test-suite-dir/embedded_innodb/tests/t/config_flush_log_at_trx_commit1-master.opt (+1/-1) plugin/embedded_innodb/test-suite-dir/embedded_innodb/tests/t/config_flush_log_at_trx_commit2-master.opt (+1/-1) plugin/embedded_innodb/test-suite-dir/embedded_innodb/tests/t/config_flush_method_fsync-master.opt (+1/-1) plugin/embedded_innodb/test-suite-dir/embedded_innodb/tests/t/config_flush_method_odirect-master.opt (+1/-1) plugin/embedded_innodb/test-suite-dir/embedded_innodb/tests/t/config_flush_method_odsync-master.opt (+1/-1) plugin/embedded_innodb/test-suite-dir/embedded_innodb/tests/t/config_force_recovery-master.opt (+1/-1) plugin/embedded_innodb/test-suite-dir/embedded_innodb/tests/t/config_io_capacity-master.opt (+1/-1) plugin/embedded_innodb/test-suite-dir/embedded_innodb/tests/t/config_lock_wait_timeout_1-master.opt (+1/-1) plugin/embedded_innodb/test-suite-dir/embedded_innodb/tests/t/config_log_buffer_size_5m-master.opt (+1/-1) plugin/embedded_innodb/test-suite-dir/embedded_innodb/tests/t/config_max_dirty_pages_pct_50-master.opt (+1/-1) plugin/embedded_innodb/test-suite-dir/embedded_innodb/tests/t/config_max_purge_lag_42-master.opt (+1/-1) plugin/embedded_innodb/test-suite-dir/embedded_innodb/tests/t/config_open_files_800-master.opt (+1/-1) plugin/embedded_innodb/test-suite-dir/embedded_innodb/tests/t/config_print_verbose_log_off-master.opt (+1/-1) plugin/embedded_innodb/test-suite-dir/embedded_innodb/tests/t/config_print_verbose_log_on-master.opt (+1/-1) plugin/embedded_innodb/test-suite-dir/embedded_innodb/tests/t/config_read_io_threads_64-master.opt (+1/-1) plugin/embedded_innodb/test-suite-dir/embedded_innodb/tests/t/config_rollback_on_timeout_off-master.opt (+1/-1) plugin/embedded_innodb/test-suite-dir/embedded_innodb/tests/t/config_rollback_on_timeout_on-master.opt (+1/-1) plugin/embedded_innodb/test-suite-dir/embedded_innodb/tests/t/config_sync_spin_loops_100-master.opt (+1/-1) plugin/embedded_innodb/test-suite-dir/embedded_innodb/tests/t/config_table_function.test (+1/-1) plugin/embedded_innodb/test-suite-dir/embedded_innodb/tests/t/config_use_sys_malloc_off-master.opt (+1/-1) plugin/embedded_innodb/test-suite-dir/embedded_innodb/tests/t/config_use_sys_malloc_on-master.opt (+1/-1) plugin/embedded_innodb/test-suite-dir/embedded_innodb/tests/t/config_write_io_threads_64-master.opt (+1/-1) plugin/embedded_innodb/test-suite-dir/embedded_innodb/tests/t/row_format_file_per_table-master.opt (+1/-1) plugin/filtered_replicator/filtered_replicator.cc (+22/-4) plugin/filtered_replicator/filtered_replicator.h (+1/-16) plugin/hello_events/hello_events.cc (+7/-0) plugin/hello_events/hello_events.h (+1/-0) plugin/innobase/handler/ha_innodb.cc (+462/-18) plugin/innobase/tests/t/innodb_lock_waits-master.opt (+1/-0) plugin/memcached_stats/memcached_stats.cc (+2/-1) plugin/memcached_stats/sysvar_holder.h (+8/-0) plugin/myisam/mi_key.cc (+3/-0) plugin/mysql_protocol/mysql_protocol.cc (+6/-0) plugin/mysql_protocol/mysql_protocol.h (+1/-0) plugin/syslog/module.cc (+9/-11) plugin/transaction_log/module.cc (+13/-0) plugin/transaction_log/transaction_log.cc (+0/-9) po/POTFILES.in (+1/-0) support-files/drizzle.spec.in (+4/-0) tests/t/unsafe_binlog_innodb-master.opt (+1/-1) tests/test-run.pl (+1/-3) tests/valgrind.supp (+76/-0) |
To merge this branch: | bzr merge lp:~mordred/drizzle/rplugin-innobase |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Stewart Smith (community) | Approve | ||
Drizzle Merge Team | Pending | ||
Review via email: mp+32257@code.launchpad.net |
Commit message
Description of the change
Vijay's innodb and embedded_innodb branches, along with fixes for Stewart's reviews, a patch to make embedded_innodb build/test directly and to use libhaildb instead of libinnodb if it's there.
Stewart Smith (stewart) : | # |
- 1700. By Brian Aker <brian@gaz>
-
Merge from staging.
- 1701. By Brian Aker <brian@gaz>
-
Merge in Stewart's FK work
- 1702. By Brian Aker <brian@gaz>
-
No longer concurrent, no longer need these locks.
- 1703. By Brian Aker <brian@gaz>
-
Update heap (mostly C++).
- 1704. By Brian Aker
-
MErge Monty, remove CSV from auto-build
- 1705. By Brian Aker
-
Merge in removal of pthread dead wrappers.
- 1706. By Brian Aker
-
Remove sync() call.
- 1707. By Brian Aker
-
Merge for lp611379
- 1708. By Brian Aker
-
MErge Joe
- 1709. By Brian Aker
-
Merge MyISAM changes.
- 1710. By Brian Aker
-
Style fixes/etc in heap.
- 1711. By Brian Aker
-
Merge Stewart.
- 1712. By Monty Taylor
-
Merged in innodb changes. Fixed the buffer pool size default.
- 1713. By Monty Taylor
-
Merged in valgrind fixes.
- 1714. By Monty Taylor
-
Fixed some help text and defaults.
- 1715. By Monty Taylor
-
Fixed mac build error.
- 1716. By Monty Taylor
-
Fixed a valgrind error and some missed opt files.
- 1717. By Monty Taylor
-
Added a few valgrind suppressions for newer debian box.
- 1718. By Monty Taylor
-
Fixed the check to also work with libinnodb.
- 1719. By Monty Taylor
-
Added a suppression for haildb.
- 1720. By Monty Taylor
-
It turns out anytime we call this it's fail.
- 1721. By Monty Taylor
-
Turned embedded_innodb back off. Need to clean valgrind first.
Preview Diff
1 | === modified file '.quickly' | |||
2 | --- .quickly 2010-07-31 17:48:00 +0000 | |||
3 | +++ .quickly 2010-08-17 02:53:42 +0000 | |||
4 | @@ -2,4 +2,4 @@ | |||
5 | 2 | version = 0.4.2 | 2 | version = 0.4.2 |
6 | 3 | template = pandora-build | 3 | template = pandora-build |
7 | 4 | project-type = application | 4 | project-type = application |
9 | 5 | pandora-version = 0.141 | 5 | pandora-version = 0.145 |
10 | 6 | 6 | ||
11 | === modified file 'client/drizzle.cc' | |||
12 | --- client/drizzle.cc 2010-07-30 20:34:21 +0000 | |||
13 | +++ client/drizzle.cc 2010-08-17 02:53:42 +0000 | |||
14 | @@ -1329,7 +1329,7 @@ | |||
15 | 1329 | opt_connect_timeout= 0; | 1329 | opt_connect_timeout= 0; |
16 | 1330 | if (in_connect_timeout > 3600*12) | 1330 | if (in_connect_timeout > 3600*12) |
17 | 1331 | { | 1331 | { |
19 | 1332 | cout<<N_("Error: Invalid Value for connect_timeout"); | 1332 | cout << N_("Error: Invalid Value for connect_timeout"); |
20 | 1333 | exit(-1); | 1333 | exit(-1); |
21 | 1334 | } | 1334 | } |
22 | 1335 | opt_connect_timeout= in_connect_timeout; | 1335 | opt_connect_timeout= in_connect_timeout; |
23 | @@ -1338,13 +1338,12 @@ | |||
24 | 1338 | static void check_max_input_line(uint32_t in_max_input_line) | 1338 | static void check_max_input_line(uint32_t in_max_input_line) |
25 | 1339 | { | 1339 | { |
26 | 1340 | opt_max_input_line= 0; | 1340 | opt_max_input_line= 0; |
28 | 1341 | if (in_max_input_line<4096 || in_max_input_line>(int64_t)2*1024L*1024L*1024L) | 1341 | if (in_max_input_line < 4096 || in_max_input_line > (int64_t)2*1024L*1024L*1024L) |
29 | 1342 | { | 1342 | { |
31 | 1343 | cout<<N_("Error: Invalid Value for max_input_line"); | 1343 | cout << N_("Error: Invalid Value for max_input_line"); |
32 | 1344 | exit(-1); | 1344 | exit(-1); |
33 | 1345 | } | 1345 | } |
36 | 1346 | opt_max_input_line= in_max_input_line/1024; | 1346 | opt_max_input_line= in_max_input_line - (in_max_input_line % 1024); |
35 | 1347 | opt_max_input_line*=1024; | ||
37 | 1348 | } | 1347 | } |
38 | 1349 | 1348 | ||
39 | 1350 | int main(int argc,char *argv[]) | 1349 | int main(int argc,char *argv[]) |
40 | 1351 | 1350 | ||
41 | === modified file 'client/drizzletest.cc' | |||
42 | --- client/drizzletest.cc 2010-08-03 21:49:46 +0000 | |||
43 | +++ client/drizzletest.cc 2010-08-17 02:53:42 +0000 | |||
44 | @@ -5360,7 +5360,7 @@ | |||
45 | 5360 | { | 5360 | { |
46 | 5361 | if (in_opt_max_connect_retries > 10000 || opt_max_connect_retries<1) | 5361 | if (in_opt_max_connect_retries > 10000 || opt_max_connect_retries<1) |
47 | 5362 | { | 5362 | { |
49 | 5363 | cout<<N_("Error: Invalid Value for opt_max_connect_retries"); | 5363 | cout << N_("Error: Invalid Value for opt_max_connect_retries"); |
50 | 5364 | exit(-1); | 5364 | exit(-1); |
51 | 5365 | } | 5365 | } |
52 | 5366 | opt_max_connect_retries= in_opt_max_connect_retries; | 5366 | opt_max_connect_retries= in_opt_max_connect_retries; |
53 | @@ -5370,7 +5370,7 @@ | |||
54 | 5370 | { | 5370 | { |
55 | 5371 | if (in_opt_tail_lines > 10000) | 5371 | if (in_opt_tail_lines > 10000) |
56 | 5372 | { | 5372 | { |
58 | 5373 | cout<<N_("Error: Invalid Value for opt_tail_lines"); | 5373 | cout << N_("Error: Invalid Value for opt_tail_lines"); |
59 | 5374 | exit(-1); | 5374 | exit(-1); |
60 | 5375 | } | 5375 | } |
61 | 5376 | opt_tail_lines= in_opt_tail_lines; | 5376 | opt_tail_lines= in_opt_tail_lines; |
62 | 5377 | 5377 | ||
63 | === modified file 'drizzled/drizzled.cc' | |||
64 | --- drizzled/drizzled.cc 2010-08-13 00:50:34 +0000 | |||
65 | +++ drizzled/drizzled.cc 2010-08-17 02:53:42 +0000 | |||
66 | @@ -27,6 +27,7 @@ | |||
67 | 27 | #include <netinet/in.h> | 27 | #include <netinet/in.h> |
68 | 28 | #include <signal.h> | 28 | #include <signal.h> |
69 | 29 | #include <limits.h> | 29 | #include <limits.h> |
70 | 30 | #include <stdexcept> | ||
71 | 30 | 31 | ||
72 | 31 | #include <boost/program_options.hpp> | 32 | #include <boost/program_options.hpp> |
73 | 32 | #include <boost/thread/recursive_mutex.hpp> | 33 | #include <boost/thread/recursive_mutex.hpp> |
74 | @@ -787,6 +788,61 @@ | |||
75 | 787 | return 0; | 788 | return 0; |
76 | 788 | } | 789 | } |
77 | 789 | 790 | ||
78 | 791 | static pair<string, string> parse_size_suffixes(string s) | ||
79 | 792 | { | ||
80 | 793 | size_t equal_pos= s.find("="); | ||
81 | 794 | if (equal_pos != string::npos) | ||
82 | 795 | { | ||
83 | 796 | string arg_key(s.substr(0, equal_pos)); | ||
84 | 797 | string arg_val(s.substr(equal_pos+1)); | ||
85 | 798 | |||
86 | 799 | try | ||
87 | 800 | { | ||
88 | 801 | size_t size_suffix_pos= arg_val.find_last_of("kmgKMG"); | ||
89 | 802 | if (size_suffix_pos == arg_val.size()-1) | ||
90 | 803 | { | ||
91 | 804 | char suffix= arg_val[size_suffix_pos]; | ||
92 | 805 | string size_val(arg_val.substr(0, size_suffix_pos)); | ||
93 | 806 | |||
94 | 807 | uint64_t base_size= boost::lexical_cast<uint64_t>(size_val); | ||
95 | 808 | uint64_t new_size= 0; | ||
96 | 809 | |||
97 | 810 | switch (suffix) | ||
98 | 811 | { | ||
99 | 812 | case 'K': | ||
100 | 813 | case 'k': | ||
101 | 814 | new_size= base_size * 1024; | ||
102 | 815 | break; | ||
103 | 816 | case 'M': | ||
104 | 817 | case 'm': | ||
105 | 818 | new_size= base_size * 1024 * 1024; | ||
106 | 819 | break; | ||
107 | 820 | case 'G': | ||
108 | 821 | case 'g': | ||
109 | 822 | new_size= base_size * 1024 * 1024 * 1024; | ||
110 | 823 | break; | ||
111 | 824 | } | ||
112 | 825 | return make_pair(arg_key, | ||
113 | 826 | boost::lexical_cast<string>(new_size)); | ||
114 | 827 | } | ||
115 | 828 | } | ||
116 | 829 | catch (...) | ||
117 | 830 | { | ||
118 | 831 | /* Screw it, let the normal parser take over */ | ||
119 | 832 | } | ||
120 | 833 | } | ||
121 | 834 | |||
122 | 835 | return make_pair(string(""), string("")); | ||
123 | 836 | } | ||
124 | 837 | |||
125 | 838 | static pair<string, string> parse_size_arg(string s) | ||
126 | 839 | { | ||
127 | 840 | if (s.find("--") == 0) | ||
128 | 841 | { | ||
129 | 842 | return parse_size_suffixes(s.substr(2)); | ||
130 | 843 | } | ||
131 | 844 | return make_pair(string(""), string("")); | ||
132 | 845 | } | ||
133 | 790 | 846 | ||
134 | 791 | int init_server_components(module::Registry &plugins) | 847 | int init_server_components(module::Registry &plugins) |
135 | 792 | { | 848 | { |
136 | @@ -823,7 +879,8 @@ | |||
137 | 823 | 879 | ||
138 | 824 | po::parsed_options parsed= po::command_line_parser(defaults_argc, | 880 | po::parsed_options parsed= po::command_line_parser(defaults_argc, |
139 | 825 | defaults_argv). | 881 | defaults_argv). |
141 | 826 | options(long_options).allow_unregistered().run(); | 882 | options(long_options).extra_parser(parse_size_arg). |
142 | 883 | allow_unregistered().run(); | ||
143 | 827 | 884 | ||
144 | 828 | vector<string> unknown_options= | 885 | vector<string> unknown_options= |
145 | 829 | po::collect_unrecognized(parsed.options, po::include_positional); | 886 | po::collect_unrecognized(parsed.options, po::include_positional); |
146 | 830 | 887 | ||
147 | === modified file 'drizzled/module/library.cc' | |||
148 | --- drizzled/module/library.cc 2010-05-15 18:23:34 +0000 | |||
149 | +++ drizzled/module/library.cc 2010-08-17 02:53:42 +0000 | |||
150 | @@ -88,7 +88,7 @@ | |||
151 | 88 | if (builtin) | 88 | if (builtin) |
152 | 89 | { | 89 | { |
153 | 90 | dlpath.assign("<builtin>"); | 90 | dlpath.assign("<builtin>"); |
155 | 91 | handle= dlopen(NULL, RTLD_NOW|RTLD_GLOBAL); | 91 | handle= dlopen(NULL, RTLD_NOW|RTLD_LOCAL); |
156 | 92 | if (handle == NULL) | 92 | if (handle == NULL) |
157 | 93 | { | 93 | { |
158 | 94 | const char *errmsg= dlerror(); | 94 | const char *errmsg= dlerror(); |
159 | 95 | 95 | ||
160 | === modified file 'm4/pandora_canonical.m4' | |||
161 | --- m4/pandora_canonical.m4 2010-07-31 17:48:00 +0000 | |||
162 | +++ m4/pandora_canonical.m4 2010-08-17 02:53:42 +0000 | |||
163 | @@ -4,7 +4,7 @@ | |||
164 | 4 | dnl with or without modifications, as long as this notice is preserved. | 4 | dnl with or without modifications, as long as this notice is preserved. |
165 | 5 | 5 | ||
166 | 6 | dnl Which version of the canonical setup we're using | 6 | dnl Which version of the canonical setup we're using |
168 | 7 | AC_DEFUN([PANDORA_CANONICAL_VERSION],[0.141]) | 7 | AC_DEFUN([PANDORA_CANONICAL_VERSION],[0.145]) |
169 | 8 | 8 | ||
170 | 9 | AC_DEFUN([PANDORA_FORCE_DEPEND_TRACKING],[ | 9 | AC_DEFUN([PANDORA_FORCE_DEPEND_TRACKING],[ |
171 | 10 | AC_ARG_ENABLE([fat-binaries], | 10 | AC_ARG_ENABLE([fat-binaries], |
172 | 11 | 11 | ||
173 | === added file 'm4/pandora_have_libboost_date_time.m4' | |||
174 | --- m4/pandora_have_libboost_date_time.m4 1970-01-01 00:00:00 +0000 | |||
175 | +++ m4/pandora_have_libboost_date_time.m4 2010-08-17 02:53:42 +0000 | |||
176 | @@ -0,0 +1,46 @@ | |||
177 | 1 | dnl Copyright (C) 2010 Monty Taylor | ||
178 | 2 | dnl This file is free software; Monty Taylor | ||
179 | 3 | dnl gives unlimited permission to copy and/or distribute it, | ||
180 | 4 | dnl with or without modifications, as long as this notice is preserved. | ||
181 | 5 | |||
182 | 6 | AC_DEFUN([_PANDORA_SEARCH_BOOST_DATE_TIME],[ | ||
183 | 7 | AC_REQUIRE([AC_LIB_PREFIX]) | ||
184 | 8 | AC_REQUIRE([ACX_PTHREAD]) | ||
185 | 9 | |||
186 | 10 | dnl -------------------------------------------------------------------- | ||
187 | 11 | dnl Check for Boost.Date_Time | ||
188 | 12 | dnl -------------------------------------------------------------------- | ||
189 | 13 | |||
190 | 14 | AC_LANG_PUSH(C++) | ||
191 | 15 | AC_LIB_HAVE_LINKFLAGS(boost_date_time-mt,,[ | ||
192 | 16 | #include <boost/date_time.hpp> | ||
193 | 17 | ],[ | ||
194 | 18 | boost::gregorian::date weekstart(2002,2,1); | ||
195 | 19 | ]) | ||
196 | 20 | AS_IF([test "x${ac_cv_libboost_date_time_mt}" = "xno"],[ | ||
197 | 21 | AC_LIB_HAVE_LINKFLAGS(boost_date_time,,[ | ||
198 | 22 | #include <boost/date_time.hpp> | ||
199 | 23 | ],[ | ||
200 | 24 | boost::gregorian::date weekstart(2002,2,1); | ||
201 | 25 | ]) | ||
202 | 26 | ]) | ||
203 | 27 | AC_LANG_POP() | ||
204 | 28 | |||
205 | 29 | AM_CONDITIONAL(HAVE_BOOST_DATE_TIME, | ||
206 | 30 | [test "x${ac_cv_libboost_date_time}" = "xyes" -o "x${ac_cv_libboost_date_time_mt}" = "xyes"]) | ||
207 | 31 | BOOST_LIBS="${BOOST_LIBS} ${LTLIBBOOST_DATE_TIME_MT} ${LTLIBBOOST_DATE_TIME}" | ||
208 | 32 | AC_SUBST(BOOST_LIBS) | ||
209 | 33 | ]) | ||
210 | 34 | |||
211 | 35 | AC_DEFUN([PANDORA_HAVE_BOOST_DATE_TIME],[ | ||
212 | 36 | PANDORA_HAVE_BOOST($1) | ||
213 | 37 | _PANDORA_SEARCH_BOOST_DATE_TIME($1) | ||
214 | 38 | ]) | ||
215 | 39 | |||
216 | 40 | AC_DEFUN([PANDORA_REQUIRE_BOOST_DATE_TIME],[ | ||
217 | 41 | PANDORA_REQUIRE_BOOST($1) | ||
218 | 42 | _PANDORA_SEARCH_BOOST_DATE_TIME($1) | ||
219 | 43 | AS_IF([test "x${ac_cv_libboost_date_time}" = "xno" -a "x${ac_cv_libboost_date_time_mt}" = "xno"], | ||
220 | 44 | AC_MSG_ERROR([Boost.Date_Time is required for ${PACKAGE}])) | ||
221 | 45 | ]) | ||
222 | 46 | |||
223 | 0 | 47 | ||
224 | === added file 'm4/pandora_have_libboost_filesystem.m4' | |||
225 | --- m4/pandora_have_libboost_filesystem.m4 1970-01-01 00:00:00 +0000 | |||
226 | +++ m4/pandora_have_libboost_filesystem.m4 2010-08-17 02:53:42 +0000 | |||
227 | @@ -0,0 +1,45 @@ | |||
228 | 1 | dnl Copyright (C) 2010 Monty Taylor | ||
229 | 2 | dnl This file is free software; Monty Taylor | ||
230 | 3 | dnl gives unlimited permission to copy and/or distribute it, | ||
231 | 4 | dnl with or without modifications, as long as this notice is preserved. | ||
232 | 5 | |||
233 | 6 | AC_DEFUN([_PANDORA_SEARCH_BOOST_FILESYSTEM],[ | ||
234 | 7 | AC_REQUIRE([AC_LIB_PREFIX]) | ||
235 | 8 | |||
236 | 9 | dnl -------------------------------------------------------------------- | ||
237 | 10 | dnl Check for Boost.Filesystem | ||
238 | 11 | dnl -------------------------------------------------------------------- | ||
239 | 12 | |||
240 | 13 | AC_LANG_PUSH(C++) | ||
241 | 14 | AC_LIB_HAVE_LINKFLAGS(boost_filesystem-mt,,[ | ||
242 | 15 | #include <boost/filesystem.hpp> | ||
243 | 16 | ],[ | ||
244 | 17 | boost::filesystem::path my_path("some_dir/file.txt"); | ||
245 | 18 | ]) | ||
246 | 19 | AS_IF([test "x${ac_cv_libboost_filesystem_mt}" = "xno"],[ | ||
247 | 20 | AC_LIB_HAVE_LINKFLAGS(boost_filesystem,,[ | ||
248 | 21 | #include <boost/filesystem.hpp> | ||
249 | 22 | ],[ | ||
250 | 23 | boost::filesystem::path my_path("some_dir/file.txt"); | ||
251 | 24 | ]) | ||
252 | 25 | ]) | ||
253 | 26 | AC_LANG_POP() | ||
254 | 27 | |||
255 | 28 | AM_CONDITIONAL(HAVE_BOOST_FILESYSTEM, | ||
256 | 29 | [test "x${ac_cv_libboost_filesystem}" = "xyes" -o "x${ac_cv_libboost_filesystem_mt}" = "xyes"]) | ||
257 | 30 | BOOST_LIBS="${BOOST_LIBS} ${LTLIBBOOST_FILESYSTEM_MT} ${LTLIBBOOST_FILESYSTEM}" | ||
258 | 31 | AC_SUBST(BOOST_LIBS) | ||
259 | 32 | ]) | ||
260 | 33 | |||
261 | 34 | AC_DEFUN([PANDORA_HAVE_BOOST_FILESYSTEM],[ | ||
262 | 35 | PANDORA_HAVE_BOOST($1) | ||
263 | 36 | _PANDORA_SEARCH_BOOST_FILESYSTEM($1) | ||
264 | 37 | ]) | ||
265 | 38 | |||
266 | 39 | AC_DEFUN([PANDORA_REQUIRE_BOOST_FILESYSTEM],[ | ||
267 | 40 | PANDORA_REQUIRE_BOOST($1) | ||
268 | 41 | _PANDORA_SEARCH_BOOST_FILESYSTEM($1) | ||
269 | 42 | AS_IF([test "x${ac_cv_libboost_filesystem}" = "xno" -a "x${ac_cv_libboost_filesystem_mt}" = "xno"], | ||
270 | 43 | AC_MSG_ERROR([Boost.Filesystem is required for ${PACKAGE}])) | ||
271 | 44 | ]) | ||
272 | 45 | |||
273 | 0 | 46 | ||
274 | === modified file 'm4/pandora_have_libinnodb.m4' | |||
275 | --- m4/pandora_have_libinnodb.m4 2010-03-02 07:14:49 +0000 | |||
276 | +++ m4/pandora_have_libinnodb.m4 2010-08-17 02:53:42 +0000 | |||
277 | @@ -7,7 +7,7 @@ | |||
278 | 7 | AC_REQUIRE([AC_LIB_PREFIX]) | 7 | AC_REQUIRE([AC_LIB_PREFIX]) |
279 | 8 | 8 | ||
280 | 9 | dnl -------------------------------------------------------------------- | 9 | dnl -------------------------------------------------------------------- |
282 | 10 | dnl Check for libinnodb | 10 | dnl Check for libhaildb or libinnodb |
283 | 11 | dnl -------------------------------------------------------------------- | 11 | dnl -------------------------------------------------------------------- |
284 | 12 | 12 | ||
285 | 13 | AC_ARG_ENABLE([libinnodb], | 13 | AC_ARG_ENABLE([libinnodb], |
286 | @@ -16,41 +16,37 @@ | |||
287 | 16 | [ac_enable_libinnodb="$enableval"], | 16 | [ac_enable_libinnodb="$enableval"], |
288 | 17 | [ac_enable_libinnodb="yes"]) | 17 | [ac_enable_libinnodb="yes"]) |
289 | 18 | 18 | ||
290 | 19 | |||
291 | 19 | AS_IF([test "x$ac_enable_libinnodb" = "xyes"],[ | 20 | AS_IF([test "x$ac_enable_libinnodb" = "xyes"],[ |
294 | 20 | AC_LIB_HAVE_LINKFLAGS(innodb,,[ | 21 | AC_LIB_HAVE_LINKFLAGS(haildb,,[ |
295 | 21 | #include <embedded_innodb-1.0/innodb.h> | 22 | #include <haildb.h> |
296 | 22 | ],[ | 23 | ],[ |
297 | 23 | ib_u64_t | 24 | ib_u64_t |
298 | 24 | ib_api_version(void); | 25 | ib_api_version(void); |
299 | 25 | ]) | 26 | ]) |
300 | 27 | AS_IF([test "x${ac_cv_libhaildb}" = "xyes"],[ | ||
301 | 28 | AC_DEFINE([HAVE_HAILDB_H],[1],[Do we have haildb.h]) | ||
302 | 29 | INNODB_LIBS="${LTLIBHAILDB}" | ||
303 | 30 | ac_cv_have_innodb=yes | ||
304 | 31 | ],[ | ||
305 | 32 | AC_LIB_HAVE_LINKFLAGS(innodb,,[ | ||
306 | 33 | #include <embedded_innodb-1.0/innodb.h> | ||
307 | 34 | ],[ | ||
308 | 35 | ib_u64_t | ||
309 | 36 | ib_api_version(void); | ||
310 | 37 | ]) | ||
311 | 38 | AS_IF([test "x{ac_cv_libinnodb}" = "xyes"],[ | ||
312 | 39 | AC_DEFINE([HAVE_INNODB_H],[1],[Do we have innodb.h]) | ||
313 | 40 | INNODB_LIBS="${LTLIBINNODB}" | ||
314 | 41 | ac_cv_have_innodb=yes | ||
315 | 42 | ]) | ||
316 | 43 | ]) | ||
317 | 26 | ],[ | 44 | ],[ |
318 | 45 | ac_cv_libhaildb="no" | ||
319 | 27 | ac_cv_libinnodb="no" | 46 | ac_cv_libinnodb="no" |
320 | 28 | ]) | 47 | ]) |
346 | 29 | 48 | AC_SUBST([INNODB_LIBS]) | |
347 | 30 | 49 | AM_CONDITIONAL(HAVE_LIBINNODB, [test "x${ac_cv_have_innodb}" = "xyes"]) | |
323 | 31 | AC_CACHE_CHECK([if libinnodb is recent enough], | ||
324 | 32 | [ac_cv_recent_innodb_h],[ | ||
325 | 33 | save_LIBS=${LIBS} | ||
326 | 34 | LIBS="${LIBS} ${LTLIBINNODB}" | ||
327 | 35 | AC_LINK_IFELSE( | ||
328 | 36 | [AC_LANG_PROGRAM([[ | ||
329 | 37 | #include <embedded_innodb-1.0/innodb.h> | ||
330 | 38 | ]],[[ | ||
331 | 39 | /* Make sure we have the two-arg version */ | ||
332 | 40 | ib_table_drop(NULL, "nothing"); | ||
333 | 41 | ]])],[ | ||
334 | 42 | ac_cv_recent_innodb_h=yes | ||
335 | 43 | ],[ | ||
336 | 44 | ac_cv_recent_innodb_h=no | ||
337 | 45 | ]) | ||
338 | 46 | LIBS="${save_LIBS}" | ||
339 | 47 | ]) | ||
340 | 48 | AS_IF([test "x${ac_cv_recent_innodb_h}" = "xno"],[ | ||
341 | 49 | AC_MSG_WARN([${PACKAGE} requires at least version 1.0.6 of Embedded InnoDB]) | ||
342 | 50 | ac_cv_libinnodb=no | ||
343 | 51 | ]) | ||
344 | 52 | |||
345 | 53 | AM_CONDITIONAL(HAVE_LIBINNODB, [test "x${ac_cv_libinnodb}" = "xyes"]) | ||
348 | 54 | ]) | 50 | ]) |
349 | 55 | 51 | ||
350 | 56 | AC_DEFUN([PANDORA_HAVE_LIBINNODB],[ | 52 | AC_DEFUN([PANDORA_HAVE_LIBINNODB],[ |
351 | @@ -60,5 +56,5 @@ | |||
352 | 60 | AC_DEFUN([PANDORA_REQUIRE_LIBINNODB],[ | 56 | AC_DEFUN([PANDORA_REQUIRE_LIBINNODB],[ |
353 | 61 | AC_REQUIRE([PANDORA_HAVE_LIBINNODB]) | 57 | AC_REQUIRE([PANDORA_HAVE_LIBINNODB]) |
354 | 62 | AS_IF([test "x${ac_cv_libinnodb}" = "xno"], | 58 | AS_IF([test "x${ac_cv_libinnodb}" = "xno"], |
356 | 63 | AC_MSG_ERROR([libinnodb is required for ${PACKAGE}])) | 59 | AC_MSG_ERROR([libhaildb or libinnodb is required for ${PACKAGE}])) |
357 | 64 | ]) | 60 | ]) |
358 | 65 | 61 | ||
359 | === renamed file 'm4/intltool.m4' => 'm4/pandora_intltool.m4' | |||
360 | === modified file 'plugin/drizzle_protocol/drizzle_protocol.cc' | |||
361 | --- plugin/drizzle_protocol/drizzle_protocol.cc 2010-07-06 07:24:01 +0000 | |||
362 | +++ plugin/drizzle_protocol/drizzle_protocol.cc 2010-08-17 02:53:42 +0000 | |||
363 | @@ -56,7 +56,13 @@ | |||
364 | 56 | static uint32_t write_timeout; | 56 | static uint32_t write_timeout; |
365 | 57 | static uint32_t retry_count; | 57 | static uint32_t retry_count; |
366 | 58 | static uint32_t buffer_length; | 58 | static uint32_t buffer_length; |
368 | 59 | static char* bind_address; | 59 | static char* bind_address= NULL; |
369 | 60 | |||
370 | 61 | ListenDrizzleProtocol::~ListenDrizzleProtocol() | ||
371 | 62 | { | ||
372 | 63 | /* This is strdup'd from the options */ | ||
373 | 64 | free(bind_address); | ||
374 | 65 | } | ||
375 | 60 | 66 | ||
376 | 61 | const char* ListenDrizzleProtocol::getHost(void) const | 67 | const char* ListenDrizzleProtocol::getHost(void) const |
377 | 62 | { | 68 | { |
378 | 63 | 69 | ||
379 | === modified file 'plugin/drizzle_protocol/drizzle_protocol.h' | |||
380 | --- plugin/drizzle_protocol/drizzle_protocol.h 2010-03-18 17:17:49 +0000 | |||
381 | +++ plugin/drizzle_protocol/drizzle_protocol.h 2010-08-17 02:53:42 +0000 | |||
382 | @@ -38,6 +38,7 @@ | |||
383 | 38 | drizzled::plugin::ListenTcp(name_arg), | 38 | drizzled::plugin::ListenTcp(name_arg), |
384 | 39 | using_mysql41_protocol(using_mysql41_protocol_arg) | 39 | using_mysql41_protocol(using_mysql41_protocol_arg) |
385 | 40 | { } | 40 | { } |
386 | 41 | virtual ~ListenDrizzleProtocol(); | ||
387 | 41 | virtual const char* getHost(void) const; | 42 | virtual const char* getHost(void) const; |
388 | 42 | virtual in_port_t getPort(void) const; | 43 | virtual in_port_t getPort(void) const; |
389 | 43 | virtual drizzled::plugin::Client *getClient(int fd); | 44 | virtual drizzled::plugin::Client *getClient(int fd); |
390 | 44 | 45 | ||
391 | === modified file 'plugin/embedded_innodb/config_table_function.cc' | |||
392 | --- plugin/embedded_innodb/config_table_function.cc 2010-05-18 18:20:56 +0000 | |||
393 | +++ plugin/embedded_innodb/config_table_function.cc 2010-08-17 02:53:42 +0000 | |||
394 | @@ -19,7 +19,11 @@ | |||
395 | 19 | #include "config.h" | 19 | #include "config.h" |
396 | 20 | #include "drizzled/plugin/table_function.h" | 20 | #include "drizzled/plugin/table_function.h" |
397 | 21 | 21 | ||
399 | 22 | #include "embedded_innodb-1.0/innodb.h" | 22 | #if defined(HAVE_HAILDB_H) |
400 | 23 | # include <haildb.h> | ||
401 | 24 | #else | ||
402 | 25 | # include <embedded_innodb-1.0/innodb.h> | ||
403 | 26 | #endif /* HAVE_HAILDB_H */ | ||
404 | 23 | 27 | ||
405 | 24 | #include "config_table_function.h" | 28 | #include "config_table_function.h" |
406 | 25 | 29 | ||
407 | 26 | 30 | ||
408 | === modified file 'plugin/embedded_innodb/embedded_innodb_engine.cc' | |||
409 | --- plugin/embedded_innodb/embedded_innodb_engine.cc 2010-08-13 20:27:18 +0000 | |||
410 | +++ plugin/embedded_innodb/embedded_innodb_engine.cc 2010-08-17 02:53:42 +0000 | |||
411 | @@ -93,7 +93,11 @@ | |||
412 | 93 | #include "config_table_function.h" | 93 | #include "config_table_function.h" |
413 | 94 | #include "status_table_function.h" | 94 | #include "status_table_function.h" |
414 | 95 | 95 | ||
416 | 96 | #include "embedded_innodb-1.0/innodb.h" | 96 | #if defined(HAVE_HAILDB_H) |
417 | 97 | # include <haildb.h> | ||
418 | 98 | #else | ||
419 | 99 | # include <embedded_innodb-1.0/innodb.h> | ||
420 | 100 | #endif /* HAVE_HAILDB_H */ | ||
421 | 97 | 101 | ||
422 | 98 | #include "embedded_innodb_engine.h" | 102 | #include "embedded_innodb_engine.h" |
423 | 99 | 103 | ||
424 | @@ -102,7 +106,11 @@ | |||
425 | 102 | #include "drizzled/field/blob.h" | 106 | #include "drizzled/field/blob.h" |
426 | 103 | #include "drizzled/field/enum.h" | 107 | #include "drizzled/field/enum.h" |
427 | 104 | #include <drizzled/session.h> | 108 | #include <drizzled/session.h> |
428 | 109 | #include <boost/program_options.hpp> | ||
429 | 110 | #include <drizzled/module/option_map.h> | ||
430 | 111 | #include <iostream> | ||
431 | 105 | 112 | ||
432 | 113 | namespace po= boost::program_options; | ||
433 | 106 | #include <boost/algorithm/string.hpp> | 114 | #include <boost/algorithm/string.hpp> |
434 | 107 | 115 | ||
435 | 108 | using namespace std; | 116 | using namespace std; |
436 | @@ -2720,7 +2728,7 @@ | |||
437 | 2720 | static bool innobase_rollback_on_timeout; | 2728 | static bool innobase_rollback_on_timeout; |
438 | 2721 | static bool innobase_create_status_file; | 2729 | static bool innobase_create_status_file; |
439 | 2722 | static bool srv_use_sys_malloc; | 2730 | static bool srv_use_sys_malloc; |
441 | 2723 | static char* innobase_file_format_name = NULL; | 2731 | static char* innobase_file_format_name = const_cast<char *>("Barracuda"); |
442 | 2724 | static char* innobase_unix_file_flush_method = NULL; | 2732 | static char* innobase_unix_file_flush_method = NULL; |
443 | 2725 | static unsigned long srv_flush_log_at_trx_commit; | 2733 | static unsigned long srv_flush_log_at_trx_commit; |
444 | 2726 | static unsigned long srv_max_buf_pool_modified_pct; | 2734 | static unsigned long srv_max_buf_pool_modified_pct; |
445 | @@ -2745,6 +2753,203 @@ | |||
446 | 2745 | 2753 | ||
447 | 2746 | static int embedded_innodb_init(drizzled::module::Context &context) | 2754 | static int embedded_innodb_init(drizzled::module::Context &context) |
448 | 2747 | { | 2755 | { |
449 | 2756 | |||
450 | 2757 | const module::option_map &vm= context.getOptions(); | ||
451 | 2758 | if (vm.count("additional-mem-pool-size")) | ||
452 | 2759 | { | ||
453 | 2760 | if (innobase_additional_mem_pool_size > LONG_MAX || innobase_additional_mem_pool_size < 512*1024L) | ||
454 | 2761 | { | ||
455 | 2762 | errmsg_printf(ERRMSG_LVL_ERROR, _("Invalid value of additional-mem-pool-size")); | ||
456 | 2763 | exit(-1); | ||
457 | 2764 | } | ||
458 | 2765 | innobase_additional_mem_pool_size/= 1024; | ||
459 | 2766 | innobase_additional_mem_pool_size*= 1024; | ||
460 | 2767 | } | ||
461 | 2768 | |||
462 | 2769 | if (vm.count("autoextend-increment")) | ||
463 | 2770 | { | ||
464 | 2771 | if (srv_auto_extend_increment > 1000L || srv_auto_extend_increment < 1L) | ||
465 | 2772 | { | ||
466 | 2773 | errmsg_printf(ERRMSG_LVL_ERROR, _("Invalid value of autoextend-increment")); | ||
467 | 2774 | exit(-1); | ||
468 | 2775 | } | ||
469 | 2776 | } | ||
470 | 2777 | |||
471 | 2778 | if (vm.count("buffer-pool-size")) | ||
472 | 2779 | { | ||
473 | 2780 | if (innobase_buffer_pool_size > INT64_MAX || innobase_buffer_pool_size < 5*1024*1024L) | ||
474 | 2781 | { | ||
475 | 2782 | errmsg_printf(ERRMSG_LVL_ERROR, _("Invalid value of buffer-pool-size")); | ||
476 | 2783 | exit(-1); | ||
477 | 2784 | } | ||
478 | 2785 | innobase_buffer_pool_size/= 1024*1024L; | ||
479 | 2786 | innobase_buffer_pool_size*= 1024*1024L; | ||
480 | 2787 | } | ||
481 | 2788 | |||
482 | 2789 | if (vm.count("io-capacity")) | ||
483 | 2790 | { | ||
484 | 2791 | if (srv_io_capacity > (unsigned long)~0L || srv_io_capacity < 100) | ||
485 | 2792 | { | ||
486 | 2793 | errmsg_printf(ERRMSG_LVL_ERROR, _("Invalid value of io-capacity")); | ||
487 | 2794 | exit(-1); | ||
488 | 2795 | } | ||
489 | 2796 | } | ||
490 | 2797 | |||
491 | 2798 | if (vm.count("fast-shutdown")) | ||
492 | 2799 | { | ||
493 | 2800 | if (innobase_fast_shutdown > 2) | ||
494 | 2801 | { | ||
495 | 2802 | errmsg_printf(ERRMSG_LVL_ERROR, _("Invalid value of fast-shutdown")); | ||
496 | 2803 | exit(-1); | ||
497 | 2804 | } | ||
498 | 2805 | } | ||
499 | 2806 | |||
500 | 2807 | if (vm.count("flush-log-at-trx-commit")) | ||
501 | 2808 | { | ||
502 | 2809 | if (srv_flush_log_at_trx_commit > 2) | ||
503 | 2810 | { | ||
504 | 2811 | errmsg_printf(ERRMSG_LVL_ERROR, _("Invalid value of flush-log-at-trx-commit")); | ||
505 | 2812 | exit(-1); | ||
506 | 2813 | } | ||
507 | 2814 | } | ||
508 | 2815 | |||
509 | 2816 | if (vm.count("force-recovery")) | ||
510 | 2817 | { | ||
511 | 2818 | if (innobase_force_recovery > 6) | ||
512 | 2819 | { | ||
513 | 2820 | errmsg_printf(ERRMSG_LVL_ERROR, _("Invalid value of force-recovery")); | ||
514 | 2821 | exit(-1); | ||
515 | 2822 | } | ||
516 | 2823 | } | ||
517 | 2824 | |||
518 | 2825 | if (vm.count("log-file-size")) | ||
519 | 2826 | { | ||
520 | 2827 | if (innodb_log_file_size > INT64_MAX || innodb_log_file_size < 1*1024*1024L) | ||
521 | 2828 | { | ||
522 | 2829 | errmsg_printf(ERRMSG_LVL_ERROR, _("Invalid value of log-file-size")); | ||
523 | 2830 | exit(-1); | ||
524 | 2831 | } | ||
525 | 2832 | innodb_log_file_size/= 1024*1024L; | ||
526 | 2833 | innodb_log_file_size*= 1024*1024L; | ||
527 | 2834 | } | ||
528 | 2835 | |||
529 | 2836 | if (vm.count("log-files-in-group")) | ||
530 | 2837 | { | ||
531 | 2838 | if (innodb_log_files_in_group > 100 || innodb_log_files_in_group < 2) | ||
532 | 2839 | { | ||
533 | 2840 | errmsg_printf(ERRMSG_LVL_ERROR, _("Invalid value of log-files-in-group")); | ||
534 | 2841 | exit(-1); | ||
535 | 2842 | } | ||
536 | 2843 | } | ||
537 | 2844 | |||
538 | 2845 | if (vm.count("lock-wait-timeout")) | ||
539 | 2846 | { | ||
540 | 2847 | if (innobase_lock_wait_timeout > 1024*1024*1024 || innobase_lock_wait_timeout < 1) | ||
541 | 2848 | { | ||
542 | 2849 | errmsg_printf(ERRMSG_LVL_ERROR, _("Invalid value of lock-wait-timeout")); | ||
543 | 2850 | exit(-1); | ||
544 | 2851 | } | ||
545 | 2852 | } | ||
546 | 2853 | |||
547 | 2854 | if (vm.count("log-buffer-size")) | ||
548 | 2855 | { | ||
549 | 2856 | if (innobase_log_buffer_size > LONG_MAX || innobase_log_buffer_size < 256*1024L) | ||
550 | 2857 | { | ||
551 | 2858 | errmsg_printf(ERRMSG_LVL_ERROR, _("Invalid value of log-buffer-size")); | ||
552 | 2859 | exit(-1); | ||
553 | 2860 | } | ||
554 | 2861 | innobase_log_buffer_size/= 1024; | ||
555 | 2862 | innobase_log_buffer_size*= 1024; | ||
556 | 2863 | } | ||
557 | 2864 | |||
558 | 2865 | if (vm.count("lru-old-blocks-pct")) | ||
559 | 2866 | { | ||
560 | 2867 | if (innobase_lru_old_blocks_pct > 95 || innobase_lru_old_blocks_pct < 5) | ||
561 | 2868 | { | ||
562 | 2869 | errmsg_printf(ERRMSG_LVL_ERROR, _("Invalid value of lru-old-blocks-pct")); | ||
563 | 2870 | exit(-1); | ||
564 | 2871 | } | ||
565 | 2872 | } | ||
566 | 2873 | |||
567 | 2874 | if (vm.count("lru-block-access-recency")) | ||
568 | 2875 | { | ||
569 | 2876 | if (innobase_lru_block_access_recency > ULONG_MAX) | ||
570 | 2877 | { | ||
571 | 2878 | errmsg_printf(ERRMSG_LVL_ERROR, _("Invalid value of lru-block-access-recency")); | ||
572 | 2879 | exit(-1); | ||
573 | 2880 | } | ||
574 | 2881 | } | ||
575 | 2882 | |||
576 | 2883 | if (vm.count("max-dirty-pages-pct")) | ||
577 | 2884 | { | ||
578 | 2885 | if (srv_max_buf_pool_modified_pct > 99) | ||
579 | 2886 | { | ||
580 | 2887 | errmsg_printf(ERRMSG_LVL_ERROR, _("Invalid value of max-dirty-pages-pct")); | ||
581 | 2888 | exit(-1); | ||
582 | 2889 | } | ||
583 | 2890 | } | ||
584 | 2891 | |||
585 | 2892 | if (vm.count("max-purge-lag")) | ||
586 | 2893 | { | ||
587 | 2894 | if (srv_max_purge_lag > (unsigned long)~0L) | ||
588 | 2895 | { | ||
589 | 2896 | errmsg_printf(ERRMSG_LVL_ERROR, _("Invalid value of max-purge-lag")); | ||
590 | 2897 | exit(-1); | ||
591 | 2898 | } | ||
592 | 2899 | } | ||
593 | 2900 | |||
594 | 2901 | if (vm.count("open-files")) | ||
595 | 2902 | { | ||
596 | 2903 | if (innobase_open_files > LONG_MAX || innobase_open_files < 10L) | ||
597 | 2904 | { | ||
598 | 2905 | errmsg_printf(ERRMSG_LVL_ERROR, _("Invalid value of open-files")); | ||
599 | 2906 | exit(-1); | ||
600 | 2907 | } | ||
601 | 2908 | } | ||
602 | 2909 | |||
603 | 2910 | if (vm.count("read-io-threads")) | ||
604 | 2911 | { | ||
605 | 2912 | if (innobase_read_io_threads > 64 || innobase_read_io_threads < 1) | ||
606 | 2913 | { | ||
607 | 2914 | errmsg_printf(ERRMSG_LVL_ERROR, _("Invalid value of read-io-threads")); | ||
608 | 2915 | exit(-1); | ||
609 | 2916 | } | ||
610 | 2917 | } | ||
611 | 2918 | |||
612 | 2919 | if (vm.count("sync-spin-loops")) | ||
613 | 2920 | { | ||
614 | 2921 | if (srv_n_spin_wait_rounds > (unsigned long)~0L) | ||
615 | 2922 | { | ||
616 | 2923 | errmsg_printf(ERRMSG_LVL_ERROR, _("Invalid value of sync_spin_loops")); | ||
617 | 2924 | exit(-1); | ||
618 | 2925 | } | ||
619 | 2926 | } | ||
620 | 2927 | |||
621 | 2928 | if (vm.count("data-home-dir")) | ||
622 | 2929 | { | ||
623 | 2930 | innobase_data_home_dir= const_cast<char *>(vm["data-home-dir"].as<string>().c_str()); | ||
624 | 2931 | } | ||
625 | 2932 | |||
626 | 2933 | if (vm.count("file-format")) | ||
627 | 2934 | { | ||
628 | 2935 | innobase_file_format_name= const_cast<char *>(vm["file-format"].as<string>().c_str()); | ||
629 | 2936 | } | ||
630 | 2937 | |||
631 | 2938 | if (vm.count("log-group-home-dir")) | ||
632 | 2939 | { | ||
633 | 2940 | innobase_log_group_home_dir= const_cast<char *>(vm["log-group-home-dir"].as<string>().c_str()); | ||
634 | 2941 | } | ||
635 | 2942 | |||
636 | 2943 | if (vm.count("flush-method")) | ||
637 | 2944 | { | ||
638 | 2945 | innobase_unix_file_flush_method= const_cast<char *>(vm["flush-method"].as<string>().c_str()); | ||
639 | 2946 | } | ||
640 | 2947 | |||
641 | 2948 | if (vm.count("data-file-path")) | ||
642 | 2949 | { | ||
643 | 2950 | innodb_data_file_path= const_cast<char *>(vm["data-file-path"].as<string>().c_str()); | ||
644 | 2951 | } | ||
645 | 2952 | |||
646 | 2748 | ib_err_t err; | 2953 | ib_err_t err; |
647 | 2749 | 2954 | ||
648 | 2750 | err= ib_init(); | 2955 | err= ib_init(); |
649 | @@ -2941,6 +3146,7 @@ | |||
650 | 2941 | { | 3146 | { |
651 | 2942 | fprintf(stderr,"Error %d shutting down Embedded InnoDB!\n", err); | 3147 | fprintf(stderr,"Error %d shutting down Embedded InnoDB!\n", err); |
652 | 2943 | } | 3148 | } |
653 | 3149 | |||
654 | 2944 | } | 3150 | } |
655 | 2945 | 3151 | ||
656 | 2946 | static char innodb_file_format_name_storage[100]; | 3152 | static char innodb_file_format_name_storage[100]; |
657 | @@ -3145,7 +3351,7 @@ | |||
658 | 3145 | static DRIZZLE_SYSVAR_ULONG(lock_wait_timeout, innobase_lock_wait_timeout, | 3351 | static DRIZZLE_SYSVAR_ULONG(lock_wait_timeout, innobase_lock_wait_timeout, |
659 | 3146 | PLUGIN_VAR_RQCMDARG | PLUGIN_VAR_READONLY, | 3352 | PLUGIN_VAR_RQCMDARG | PLUGIN_VAR_READONLY, |
660 | 3147 | "Timeout in seconds an InnoDB transaction may wait for a lock before being rolled back. Values above 100000000 disable the timeout.", | 3353 | "Timeout in seconds an InnoDB transaction may wait for a lock before being rolled back. Values above 100000000 disable the timeout.", |
662 | 3148 | NULL, NULL, 50, 1, 1024 * 1024 * 1024, 0); | 3354 | NULL, NULL, 5, 1, 1024 * 1024 * 1024, 0); |
663 | 3149 | 3355 | ||
664 | 3150 | static DRIZZLE_SYSVAR_LONG(log_buffer_size, innobase_log_buffer_size, | 3356 | static DRIZZLE_SYSVAR_LONG(log_buffer_size, innobase_log_buffer_size, |
665 | 3151 | PLUGIN_VAR_RQCMDARG | PLUGIN_VAR_READONLY, | 3357 | PLUGIN_VAR_RQCMDARG | PLUGIN_VAR_READONLY, |
666 | @@ -3217,6 +3423,112 @@ | |||
667 | 3217 | "Use OS memory allocator instead of InnoDB's internal memory allocator", | 3423 | "Use OS memory allocator instead of InnoDB's internal memory allocator", |
668 | 3218 | NULL, NULL, true); | 3424 | NULL, NULL, true); |
669 | 3219 | 3425 | ||
670 | 3426 | static void init_options(drizzled::module::option_context &context) | ||
671 | 3427 | { | ||
672 | 3428 | context("adaptive-hash-index", | ||
673 | 3429 | po::value<bool>(&innobase_adaptive_hash_index)->default_value(true), | ||
674 | 3430 | N_("Enable InnoDB adaptive hash index (enabled by default).")); | ||
675 | 3431 | context("adaptive-flushing", | ||
676 | 3432 | po::value<bool>(&srv_adaptive_flushing)->default_value(true), | ||
677 | 3433 | N_("Attempt flushing dirty pages to avoid IO bursts at checkpoints.")); | ||
678 | 3434 | context("additional-mem-pool-size", | ||
679 | 3435 | po::value<long>(&innobase_additional_mem_pool_size)->default_value(8*1024*1024L), | ||
680 | 3436 | N_("Size of a memory pool InnoDB uses to store data dictionary information and other internal data structures.")); | ||
681 | 3437 | context("autoextend-increment", | ||
682 | 3438 | po::value<unsigned int>(&srv_auto_extend_increment)->default_value(8L), | ||
683 | 3439 | N_("Data file autoextend increment in megabytes")); | ||
684 | 3440 | context("buffer-pool-size", | ||
685 | 3441 | po::value<int64_t>(&innobase_buffer_pool_size)->default_value(128*1024*1024L), | ||
686 | 3442 | N_("The size of the memory buffer InnoDB uses to cache data and indexes of its tables.")); | ||
687 | 3443 | context("data-home-dir", | ||
688 | 3444 | po::value<string>(), | ||
689 | 3445 | N_("The common part for InnoDB table spaces.")); | ||
690 | 3446 | context("checksums", | ||
691 | 3447 | po::value<bool>(&innobase_use_checksums)->default_value(true), | ||
692 | 3448 | N_("Enable InnoDB checksums validation (enabled by default). Disable with --skip-innodb-checksums.")); | ||
693 | 3449 | context("doublewrite", | ||
694 | 3450 | po::value<bool>(&innobase_use_doublewrite)->default_value(true), | ||
695 | 3451 | N_("Enable InnoDB doublewrite buffer (enabled by default). Disable with --skip-innodb-doublewrite.")); | ||
696 | 3452 | context("io-capacity", | ||
697 | 3453 | po::value<unsigned long>(&srv_io_capacity)->default_value(200), | ||
698 | 3454 | N_("Number of IOPs the server can do. Tunes the background IO rate")); | ||
699 | 3455 | context("fast-shutdown", | ||
700 | 3456 | po::value<unsigned long>(&innobase_fast_shutdown)->default_value(1), | ||
701 | 3457 | N_("Speeds up the shutdown process of the InnoDB storage engine. Possible values are 0, 1 (faster) or 2 (fastest - crash-like).")); | ||
702 | 3458 | context("file-per-table", | ||
703 | 3459 | po::value<bool>(&srv_file_per_table)->default_value(false), | ||
704 | 3460 | N_("Stores each InnoDB table to an .ibd file in the database dir.")); | ||
705 | 3461 | context("file-format", | ||
706 | 3462 | po::value<string>(), | ||
707 | 3463 | N_("File format to use for new tables in .ibd files.")); | ||
708 | 3464 | context("flush-log-at-trx-commit", | ||
709 | 3465 | po::value<unsigned long>(&srv_flush_log_at_trx_commit)->default_value(1), | ||
710 | 3466 | N_("Set to 0 (write and flush once per second),1 (write and flush at each commit) or 2 (write at commit, flush once per second).")); | ||
711 | 3467 | context("flush-method", | ||
712 | 3468 | po::value<string>(), | ||
713 | 3469 | N_("With which method to flush data.")); | ||
714 | 3470 | context("force-recovery", | ||
715 | 3471 | po::value<long>(&innobase_force_recovery)->default_value(0), | ||
716 | 3472 | N_("Helps to save your data in case the disk image of the database becomes corrupt.")); | ||
717 | 3473 | context("data-file-path", | ||
718 | 3474 | po::value<string>(), | ||
719 | 3475 | N_("Path to individual files and their sizes.")); | ||
720 | 3476 | context("log-group-home-dir", | ||
721 | 3477 | po::value<string>(), | ||
722 | 3478 | N_("Path to individual files and their sizes.")); | ||
723 | 3479 | context("log-group-home-dir", | ||
724 | 3480 | po::value<string>(), | ||
725 | 3481 | N_("Path to InnoDB log files.")); | ||
726 | 3482 | context("log-file-size", | ||
727 | 3483 | po::value<int64_t>(&innodb_log_file_size)->default_value(20*1024*1024L), | ||
728 | 3484 | N_("Size of each log file in a log group.")); | ||
729 | 3485 | context("innodb-log-files-in-group", | ||
730 | 3486 | po::value<int64_t>(&innodb_log_files_in_group)->default_value(2), | ||
731 | 3487 | N_("Number of log files in the log group. InnoDB writes to the files in a circular fashion. Value 3 is recommended here.")); | ||
732 | 3488 | context("lock-wait-timeout", | ||
733 | 3489 | po::value<unsigned long>(&innobase_lock_wait_timeout)->default_value(5), | ||
734 | 3490 | N_("Timeout in seconds an InnoDB transaction may wait for a lock before being rolled back. Values above 100000000 disable the timeout.")); | ||
735 | 3491 | context("log-buffer-size", | ||
736 | 3492 | po::value<long>(&innobase_log_buffer_size)->default_value(8*1024*1024L), | ||
737 | 3493 | N_("The size of the buffer which InnoDB uses to write log to the log files on disk.")); | ||
738 | 3494 | context("lru-old-blocks-pct", | ||
739 | 3495 | po::value<unsigned long>(&innobase_lru_old_blocks_pct)->default_value(37), | ||
740 | 3496 | N_("Sets the point in the LRU list from where all pages are classified as old (Advanced users)")); | ||
741 | 3497 | context("lru-block-access-recency", | ||
742 | 3498 | po::value<unsigned long>(&innobase_lru_block_access_recency)->default_value(0), | ||
743 | 3499 | N_("Milliseconds between accesses to a block at which it is made young. 0=disabled (Advanced users)")); | ||
744 | 3500 | context("max-dirty-pages-pct", | ||
745 | 3501 | po::value<unsigned long>(&srv_max_buf_pool_modified_pct)->default_value(75), | ||
746 | 3502 | N_("Percentage of dirty pages allowed in bufferpool.")); | ||
747 | 3503 | context("max-purge-lag", | ||
748 | 3504 | po::value<unsigned long>(&srv_max_purge_lag)->default_value(0), | ||
749 | 3505 | N_("Desired maximum length of the purge queue (0 = no limit)")); | ||
750 | 3506 | context("rollback-on-timeout", | ||
751 | 3507 | po::value<bool>(&innobase_rollback_on_timeout)->default_value(false), | ||
752 | 3508 | N_("Roll back the complete transaction on lock wait timeout, for 4.x compatibility (disabled by default)")); | ||
753 | 3509 | context("open-files", | ||
754 | 3510 | po::value<long>(&innobase_open_files)->default_value(300), | ||
755 | 3511 | N_("How many files at the maximum InnoDB keeps open at the same time.")); | ||
756 | 3512 | context("read-io-threads", | ||
757 | 3513 | po::value<unsigned long>(&innobase_read_io_threads)->default_value(4), | ||
758 | 3514 | N_("Number of background read I/O threads in InnoDB.")); | ||
759 | 3515 | context("write-io-threads", | ||
760 | 3516 | po::value<unsigned long>(&innobase_write_io_threads)->default_value(4), | ||
761 | 3517 | N_("Number of background write I/O threads in InnoDB.")); | ||
762 | 3518 | context("print-verbose-log", | ||
763 | 3519 | po::value<bool>(&innobase_print_verbose_log)->default_value(true), | ||
764 | 3520 | N_("Disable if you want to reduce the number of messages written to the log (default: enabled).")); | ||
765 | 3521 | context("status-file", | ||
766 | 3522 | po::value<bool>(&innobase_create_status_file)->default_value(false), | ||
767 | 3523 | N_("Enable SHOW INNODB STATUS output in the log")); | ||
768 | 3524 | context("sync-spin-loops", | ||
769 | 3525 | po::value<unsigned long>(&srv_n_spin_wait_rounds)->default_value(30L), | ||
770 | 3526 | N_("Count of spin-loop rounds in InnoDB mutexes (30 by default)")); | ||
771 | 3527 | context("use-sys-malloc", | ||
772 | 3528 | po::value<bool>(&srv_use_sys_malloc)->default_value(true), | ||
773 | 3529 | N_("Use OS memory allocator instead of InnoDB's internal memory allocator")); | ||
774 | 3530 | } | ||
775 | 3531 | |||
776 | 3220 | static drizzle_sys_var* innobase_system_variables[]= { | 3532 | static drizzle_sys_var* innobase_system_variables[]= { |
777 | 3221 | DRIZZLE_SYSVAR(adaptive_hash_index), | 3533 | DRIZZLE_SYSVAR(adaptive_hash_index), |
778 | 3222 | DRIZZLE_SYSVAR(adaptive_flushing), | 3534 | DRIZZLE_SYSVAR(adaptive_flushing), |
779 | @@ -3264,6 +3576,6 @@ | |||
780 | 3264 | PLUGIN_LICENSE_GPL, | 3576 | PLUGIN_LICENSE_GPL, |
781 | 3265 | embedded_innodb_init, /* Plugin Init */ | 3577 | embedded_innodb_init, /* Plugin Init */ |
782 | 3266 | innobase_system_variables, /* system variables */ | 3578 | innobase_system_variables, /* system variables */ |
784 | 3267 | NULL /* config options */ | 3579 | init_options /* config options */ |
785 | 3268 | } | 3580 | } |
786 | 3269 | DRIZZLE_DECLARE_PLUGIN_END; | 3581 | DRIZZLE_DECLARE_PLUGIN_END; |
787 | 3270 | 3582 | ||
788 | === modified file 'plugin/embedded_innodb/libinnodb_datadict_dump_func.cc' | |||
789 | --- plugin/embedded_innodb/libinnodb_datadict_dump_func.cc 2010-07-08 21:23:39 +0000 | |||
790 | +++ plugin/embedded_innodb/libinnodb_datadict_dump_func.cc 2010-08-17 02:53:42 +0000 | |||
791 | @@ -23,7 +23,11 @@ | |||
792 | 23 | #include <drizzled/function/str/strfunc.h> | 23 | #include <drizzled/function/str/strfunc.h> |
793 | 24 | #include "libinnodb_datadict_dump_func.h" | 24 | #include "libinnodb_datadict_dump_func.h" |
794 | 25 | 25 | ||
796 | 26 | #include "embedded_innodb-1.0/innodb.h" | 26 | #if defined(HAVE_HAILDB_H) |
797 | 27 | # include <haildb.h> | ||
798 | 28 | #else | ||
799 | 29 | # include <embedded_innodb-1.0/innodb.h> | ||
800 | 30 | #endif /* HAVE_HAILDB_H */ | ||
801 | 27 | 31 | ||
802 | 28 | #include <sstream> | 32 | #include <sstream> |
803 | 29 | #include <string> | 33 | #include <string> |
804 | 30 | 34 | ||
805 | === modified file 'plugin/embedded_innodb/libinnodb_version_func.cc' | |||
806 | --- plugin/embedded_innodb/libinnodb_version_func.cc 2010-05-18 18:20:56 +0000 | |||
807 | +++ plugin/embedded_innodb/libinnodb_version_func.cc 2010-08-17 02:53:42 +0000 | |||
808 | @@ -23,7 +23,11 @@ | |||
809 | 23 | #include <drizzled/function/str/strfunc.h> | 23 | #include <drizzled/function/str/strfunc.h> |
810 | 24 | #include "libinnodb_version_func.h" | 24 | #include "libinnodb_version_func.h" |
811 | 25 | 25 | ||
813 | 26 | #include "embedded_innodb-1.0/innodb.h" | 26 | #if defined(HAVE_HAILDB_H) |
814 | 27 | # include <haildb.h> | ||
815 | 28 | #else | ||
816 | 29 | # include <embedded_innodb-1.0/innodb.h> | ||
817 | 30 | #endif /* HAVE_HAILDB_H */ | ||
818 | 27 | 31 | ||
819 | 28 | using namespace std; | 32 | using namespace std; |
820 | 29 | using namespace drizzled; | 33 | using namespace drizzled; |
821 | 30 | 34 | ||
822 | === modified file 'plugin/embedded_innodb/plugin.ini' | |||
823 | --- plugin/embedded_innodb/plugin.ini 2010-04-21 02:31:09 +0000 | |||
824 | +++ plugin/embedded_innodb/plugin.ini 2010-08-17 02:53:42 +0000 | |||
825 | @@ -3,5 +3,5 @@ | |||
826 | 3 | description=Work in progress engine using libinnodb instead of including it in tree. | 3 | description=Work in progress engine using libinnodb instead of including it in tree. |
827 | 4 | sources=embedded_innodb_engine.cc libinnodb_version_func.cc libinnodb_datadict_dump_func.cc config_table_function.cc status_table_function.cc | 4 | sources=embedded_innodb_engine.cc libinnodb_version_func.cc libinnodb_datadict_dump_func.cc config_table_function.cc status_table_function.cc |
828 | 5 | headers=embedded_innodb_engine.h libinnodb_version_func.h libinnodb_datadict_dump_func.h config_table_function.h status_table_function.h | 5 | headers=embedded_innodb_engine.h libinnodb_version_func.h libinnodb_datadict_dump_func.h config_table_function.h status_table_function.h |
831 | 6 | build_conditional="x${ac_cv_libinnodb}" = "xyes" | 6 | build_conditional="x${ac_cv_have_innodb}" = "xyes" |
832 | 7 | ldflags=${LTLIBINNODB} | 7 | ldflags=${INNODB_LIBS} |
833 | 8 | 8 | ||
834 | === modified file 'plugin/embedded_innodb/status_table_function.cc' | |||
835 | --- plugin/embedded_innodb/status_table_function.cc 2010-05-18 18:20:56 +0000 | |||
836 | +++ plugin/embedded_innodb/status_table_function.cc 2010-08-17 02:53:42 +0000 | |||
837 | @@ -19,7 +19,11 @@ | |||
838 | 19 | #include "config.h" | 19 | #include "config.h" |
839 | 20 | #include "drizzled/plugin/table_function.h" | 20 | #include "drizzled/plugin/table_function.h" |
840 | 21 | 21 | ||
842 | 22 | #include "embedded_innodb-1.0/innodb.h" | 22 | #if defined(HAVE_HAILDB_H) |
843 | 23 | # include <haildb.h> | ||
844 | 24 | #else | ||
845 | 25 | # include <embedded_innodb-1.0/innodb.h> | ||
846 | 26 | #endif /* HAVE_HAILDB_H */ | ||
847 | 23 | 27 | ||
848 | 24 | #include "status_table_function.h" | 28 | #include "status_table_function.h" |
849 | 25 | 29 | ||
850 | 26 | 30 | ||
851 | === modified file 'plugin/embedded_innodb/test-suite-dir/embedded_innodb/tests/r/config_table_function.result' | |||
852 | --- plugin/embedded_innodb/test-suite-dir/embedded_innodb/tests/r/config_table_function.result 2010-08-06 17:53:24 +0000 | |||
853 | +++ plugin/embedded_innodb/test-suite-dir/embedded_innodb/tests/r/config_table_function.result 2010-08-17 02:53:42 +0000 | |||
854 | @@ -46,7 +46,7 @@ | |||
855 | 46 | sync_spin_loops ULONG | 46 | sync_spin_loops ULONG |
856 | 47 | use_sys_malloc BOOL | 47 | use_sys_malloc BOOL |
857 | 48 | version TEXT | 48 | version TEXT |
859 | 49 | SELECT * FROM DATA_DICTIONARY.INNODB_CONFIGURATION; | 49 | SELECT * FROM DATA_DICTIONARY.INNODB_CONFIGURATION where NAME NOT IN ("VERSION"); |
860 | 50 | NAME TYPE VALUE | 50 | NAME TYPE VALUE |
861 | 51 | adaptive_hash_index BOOL true | 51 | adaptive_hash_index BOOL true |
862 | 52 | adaptive_flushing BOOL true | 52 | adaptive_flushing BOOL true |
863 | @@ -83,7 +83,6 @@ | |||
864 | 83 | status_file BOOL false | 83 | status_file BOOL false |
865 | 84 | sync_spin_loops ULONG 30 | 84 | sync_spin_loops ULONG 30 |
866 | 85 | use_sys_malloc BOOL true | 85 | use_sys_malloc BOOL true |
867 | 86 | version TEXT 1.0.6.6750 | ||
868 | 87 | SELECT NAME,VALUE FROM DATA_DICTIONARY.INNODB_CONFIGURATION WHERE NAME IN ("data_file_path", "data_home_dir"); | 86 | SELECT NAME,VALUE FROM DATA_DICTIONARY.INNODB_CONFIGURATION WHERE NAME IN ("data_file_path", "data_home_dir"); |
869 | 88 | NAME VALUE | 87 | NAME VALUE |
870 | 89 | data_file_path NULL | 88 | data_file_path NULL |
871 | 90 | 89 | ||
872 | === modified file 'plugin/embedded_innodb/test-suite-dir/embedded_innodb/tests/t/basic_select_for_update-master.opt' | |||
873 | --- plugin/embedded_innodb/test-suite-dir/embedded_innodb/tests/t/basic_select_for_update-master.opt 2010-06-01 05:55:48 +0000 | |||
874 | +++ plugin/embedded_innodb/test-suite-dir/embedded_innodb/tests/t/basic_select_for_update-master.opt 2010-08-17 02:53:42 +0000 | |||
875 | @@ -1,1 +1,1 @@ | |||
877 | 1 | --plugin_add=embedded_innodb --plugin_remove=innobase --innodb_lock_wait_timeout=1 | 1 | --plugin_add=embedded_innodb --plugin_remove=innobase --innodb.lock-wait-timeout=1 |
878 | 2 | 2 | ||
879 | === modified file 'plugin/embedded_innodb/test-suite-dir/embedded_innodb/tests/t/basic_select_for_update_pk_index-master.opt' | |||
880 | --- plugin/embedded_innodb/test-suite-dir/embedded_innodb/tests/t/basic_select_for_update_pk_index-master.opt 2010-06-01 06:00:24 +0000 | |||
881 | +++ plugin/embedded_innodb/test-suite-dir/embedded_innodb/tests/t/basic_select_for_update_pk_index-master.opt 2010-08-17 02:53:42 +0000 | |||
882 | @@ -1,1 +1,1 @@ | |||
884 | 1 | --plugin_add=embedded_innodb --plugin_remove=innobase --innodb_lock_wait_timeout=1 | 1 | --plugin_add=embedded_innodb --plugin_remove=innobase --innodb.lock-wait-timeout=1 |
885 | 2 | 2 | ||
886 | === modified file 'plugin/embedded_innodb/test-suite-dir/embedded_innodb/tests/t/config_adaptive_flushing_off-master.opt' | |||
887 | --- plugin/embedded_innodb/test-suite-dir/embedded_innodb/tests/t/config_adaptive_flushing_off-master.opt 2010-05-10 13:17:59 +0000 | |||
888 | +++ plugin/embedded_innodb/test-suite-dir/embedded_innodb/tests/t/config_adaptive_flushing_off-master.opt 2010-08-17 02:53:42 +0000 | |||
889 | @@ -1,1 +1,1 @@ | |||
891 | 1 | --plugin_add=embedded_innodb --plugin_remove=innobase --innodb-adaptive-flushing=false | 1 | --plugin_add=embedded_innodb --plugin_remove=innobase --innodb.adaptive-flushing=false |
892 | 2 | 2 | ||
893 | === modified file 'plugin/embedded_innodb/test-suite-dir/embedded_innodb/tests/t/config_adaptive_flushing_on-master.opt' | |||
894 | --- plugin/embedded_innodb/test-suite-dir/embedded_innodb/tests/t/config_adaptive_flushing_on-master.opt 2010-05-10 13:17:59 +0000 | |||
895 | +++ plugin/embedded_innodb/test-suite-dir/embedded_innodb/tests/t/config_adaptive_flushing_on-master.opt 2010-08-17 02:53:42 +0000 | |||
896 | @@ -1,1 +1,1 @@ | |||
898 | 1 | --plugin_add=embedded_innodb --plugin_remove=innobase --innodb-adaptive-flushing=true | 1 | --plugin_add=embedded_innodb --plugin_remove=innobase --innodb.adaptive-flushing=true |
899 | 2 | 2 | ||
900 | === modified file 'plugin/embedded_innodb/test-suite-dir/embedded_innodb/tests/t/config_adaptive_hash_index_off-master.opt' | |||
901 | --- plugin/embedded_innodb/test-suite-dir/embedded_innodb/tests/t/config_adaptive_hash_index_off-master.opt 2010-05-10 13:14:39 +0000 | |||
902 | +++ plugin/embedded_innodb/test-suite-dir/embedded_innodb/tests/t/config_adaptive_hash_index_off-master.opt 2010-08-17 02:53:42 +0000 | |||
903 | @@ -1,1 +1,1 @@ | |||
905 | 1 | --plugin_add=embedded_innodb --plugin_remove=innobase --innodb-adaptive-hash-index=false | 1 | --plugin_add=embedded_innodb --plugin_remove=innobase --innodb.adaptive-hash-index=false |
906 | 2 | 2 | ||
907 | === modified file 'plugin/embedded_innodb/test-suite-dir/embedded_innodb/tests/t/config_adaptive_hash_index_on-master.opt' | |||
908 | --- plugin/embedded_innodb/test-suite-dir/embedded_innodb/tests/t/config_adaptive_hash_index_on-master.opt 2010-05-10 12:53:25 +0000 | |||
909 | +++ plugin/embedded_innodb/test-suite-dir/embedded_innodb/tests/t/config_adaptive_hash_index_on-master.opt 2010-08-17 02:53:42 +0000 | |||
910 | @@ -1,1 +1,1 @@ | |||
912 | 1 | --plugin_add=embedded_innodb --plugin_remove=innobase --innodb-adaptive-hash-index=true | 1 | --plugin_add=embedded_innodb --plugin_remove=innobase --innodb.adaptive-hash-index=true |
913 | 2 | 2 | ||
914 | === modified file 'plugin/embedded_innodb/test-suite-dir/embedded_innodb/tests/t/config_additional_mem_pool_size_32m-master.opt' | |||
915 | --- plugin/embedded_innodb/test-suite-dir/embedded_innodb/tests/t/config_additional_mem_pool_size_32m-master.opt 2010-05-10 13:27:43 +0000 | |||
916 | +++ plugin/embedded_innodb/test-suite-dir/embedded_innodb/tests/t/config_additional_mem_pool_size_32m-master.opt 2010-08-17 02:53:42 +0000 | |||
917 | @@ -1,1 +1,1 @@ | |||
919 | 1 | --plugin_add=embedded_innodb --plugin_remove=innobase --innodb-additional-mem-pool-size=32m | 1 | --plugin_add=embedded_innodb --plugin_remove=innobase --innodb.additional-mem-pool-size=33554432 |
920 | 2 | 2 | ||
921 | === modified file 'plugin/embedded_innodb/test-suite-dir/embedded_innodb/tests/t/config_autoextend_increment_42-master.opt' | |||
922 | --- plugin/embedded_innodb/test-suite-dir/embedded_innodb/tests/t/config_autoextend_increment_42-master.opt 2010-05-10 13:56:23 +0000 | |||
923 | +++ plugin/embedded_innodb/test-suite-dir/embedded_innodb/tests/t/config_autoextend_increment_42-master.opt 2010-08-17 02:53:42 +0000 | |||
924 | @@ -1,1 +1,1 @@ | |||
926 | 1 | --plugin_add=embedded_innodb --plugin_remove=innobase --innodb-autoextend-increment=42 | 1 | --plugin_add=embedded_innodb --plugin_remove=innobase --innodb.autoextend-increment=42 |
927 | 2 | 2 | ||
928 | === modified file 'plugin/embedded_innodb/test-suite-dir/embedded_innodb/tests/t/config_buffer_pool_size_22m-master.opt' | |||
929 | --- plugin/embedded_innodb/test-suite-dir/embedded_innodb/tests/t/config_buffer_pool_size_22m-master.opt 2010-05-10 14:02:46 +0000 | |||
930 | +++ plugin/embedded_innodb/test-suite-dir/embedded_innodb/tests/t/config_buffer_pool_size_22m-master.opt 2010-08-17 02:53:42 +0000 | |||
931 | @@ -1,1 +1,1 @@ | |||
933 | 1 | --plugin_add=embedded_innodb --plugin_remove=innobase --innodb-buffer-pool-size=20m | 1 | --plugin_add=embedded_innodb --plugin_remove=innobase --innodb.buffer-pool-size=20971520 |
934 | 2 | 2 | ||
935 | === modified file 'plugin/embedded_innodb/test-suite-dir/embedded_innodb/tests/t/config_checksums_disable-master.opt' | |||
936 | --- plugin/embedded_innodb/test-suite-dir/embedded_innodb/tests/t/config_checksums_disable-master.opt 2010-04-30 05:50:45 +0000 | |||
937 | +++ plugin/embedded_innodb/test-suite-dir/embedded_innodb/tests/t/config_checksums_disable-master.opt 2010-08-17 02:53:42 +0000 | |||
938 | @@ -1,1 +1,1 @@ | |||
940 | 1 | --plugin_add=embedded_innodb --plugin_remove=innobase --skip-innodb-checksums | 1 | --plugin_add=embedded_innodb --plugin_remove=innobase --innodb.checksums=false |
941 | 2 | 2 | ||
942 | === modified file 'plugin/embedded_innodb/test-suite-dir/embedded_innodb/tests/t/config_checksums_enable-master.opt' | |||
943 | --- plugin/embedded_innodb/test-suite-dir/embedded_innodb/tests/t/config_checksums_enable-master.opt 2010-04-30 05:50:45 +0000 | |||
944 | +++ plugin/embedded_innodb/test-suite-dir/embedded_innodb/tests/t/config_checksums_enable-master.opt 2010-08-17 02:53:42 +0000 | |||
945 | @@ -1,1 +1,1 @@ | |||
947 | 1 | --plugin_add=embedded_innodb --plugin_remove=innobase | 1 | --plugin_add=embedded_innodb --plugin_remove=innobase |
948 | 2 | 2 | ||
949 | === modified file 'plugin/embedded_innodb/test-suite-dir/embedded_innodb/tests/t/config_doublewrite_disable-master.opt' | |||
950 | --- plugin/embedded_innodb/test-suite-dir/embedded_innodb/tests/t/config_doublewrite_disable-master.opt 2010-05-03 04:14:08 +0000 | |||
951 | +++ plugin/embedded_innodb/test-suite-dir/embedded_innodb/tests/t/config_doublewrite_disable-master.opt 2010-08-17 02:53:42 +0000 | |||
952 | @@ -1,1 +1,1 @@ | |||
954 | 1 | --plugin_add=embedded_innodb --plugin_remove=innobase --skip-innodb-doublewrite | 1 | --plugin_add=embedded_innodb --plugin_remove=innobase --innodb.doublewrite=false |
955 | 2 | 2 | ||
956 | === modified file 'plugin/embedded_innodb/test-suite-dir/embedded_innodb/tests/t/config_doublewrite_enable-master.opt' | |||
957 | --- plugin/embedded_innodb/test-suite-dir/embedded_innodb/tests/t/config_doublewrite_enable-master.opt 2010-05-03 04:14:08 +0000 | |||
958 | +++ plugin/embedded_innodb/test-suite-dir/embedded_innodb/tests/t/config_doublewrite_enable-master.opt 2010-08-17 02:53:42 +0000 | |||
959 | @@ -1,1 +1,1 @@ | |||
961 | 1 | --plugin_add=embedded_innodb --plugin_remove=innobase --innodb-doublewrite | 1 | --plugin_add=embedded_innodb --plugin_remove=innobase |
962 | 2 | 2 | ||
963 | === modified file 'plugin/embedded_innodb/test-suite-dir/embedded_innodb/tests/t/config_fast_shutdown0-master.opt' | |||
964 | --- plugin/embedded_innodb/test-suite-dir/embedded_innodb/tests/t/config_fast_shutdown0-master.opt 2010-05-03 13:41:05 +0000 | |||
965 | +++ plugin/embedded_innodb/test-suite-dir/embedded_innodb/tests/t/config_fast_shutdown0-master.opt 2010-08-17 02:53:42 +0000 | |||
966 | @@ -1,1 +1,1 @@ | |||
968 | 1 | --plugin_add=embedded_innodb --plugin_remove=innobase --innodb-fast-shutdown=0 | 1 | --plugin_add=embedded_innodb --plugin_remove=innobase --innodb.fast-shutdown=0 |
969 | 2 | 2 | ||
970 | === modified file 'plugin/embedded_innodb/test-suite-dir/embedded_innodb/tests/t/config_fast_shutdown1-master.opt' | |||
971 | --- plugin/embedded_innodb/test-suite-dir/embedded_innodb/tests/t/config_fast_shutdown1-master.opt 2010-05-03 13:41:05 +0000 | |||
972 | +++ plugin/embedded_innodb/test-suite-dir/embedded_innodb/tests/t/config_fast_shutdown1-master.opt 2010-08-17 02:53:42 +0000 | |||
973 | @@ -1,1 +1,1 @@ | |||
975 | 1 | --plugin_add=embedded_innodb --plugin_remove=innobase --innodb-fast-shutdown=1 | 1 | --plugin_add=embedded_innodb --plugin_remove=innobase --innodb.fast-shutdown=1 |
976 | 2 | 2 | ||
977 | === modified file 'plugin/embedded_innodb/test-suite-dir/embedded_innodb/tests/t/config_fast_shutdown2-master.opt' | |||
978 | --- plugin/embedded_innodb/test-suite-dir/embedded_innodb/tests/t/config_fast_shutdown2-master.opt 2010-05-03 13:41:05 +0000 | |||
979 | +++ plugin/embedded_innodb/test-suite-dir/embedded_innodb/tests/t/config_fast_shutdown2-master.opt 2010-08-17 02:53:42 +0000 | |||
980 | @@ -1,1 +1,1 @@ | |||
982 | 1 | --plugin_add=embedded_innodb --plugin_remove=innobase --innodb-fast-shutdown=2 | 1 | --plugin_add=embedded_innodb --plugin_remove=innobase --innodb.fast-shutdown=2 |
983 | 2 | 2 | ||
984 | === modified file 'plugin/embedded_innodb/test-suite-dir/embedded_innodb/tests/t/config_file_per_table_disable-master.opt' | |||
985 | --- plugin/embedded_innodb/test-suite-dir/embedded_innodb/tests/t/config_file_per_table_disable-master.opt 2010-05-03 14:13:17 +0000 | |||
986 | +++ plugin/embedded_innodb/test-suite-dir/embedded_innodb/tests/t/config_file_per_table_disable-master.opt 2010-08-17 02:53:42 +0000 | |||
987 | @@ -1,1 +1,1 @@ | |||
989 | 1 | --plugin_add=embedded_innodb --plugin_remove=innobase --innodb-file-per-table=0 | 1 | --plugin_add=embedded_innodb --plugin_remove=innobase --innodb.file-per-table=false |
990 | 2 | 2 | ||
991 | === modified file 'plugin/embedded_innodb/test-suite-dir/embedded_innodb/tests/t/config_file_per_table_enable-master.opt' | |||
992 | --- plugin/embedded_innodb/test-suite-dir/embedded_innodb/tests/t/config_file_per_table_enable-master.opt 2010-05-03 14:08:25 +0000 | |||
993 | +++ plugin/embedded_innodb/test-suite-dir/embedded_innodb/tests/t/config_file_per_table_enable-master.opt 2010-08-17 02:53:42 +0000 | |||
994 | @@ -1,1 +1,1 @@ | |||
996 | 1 | --plugin_add=embedded_innodb --plugin_remove=innobase --innodb-file-per-table | 1 | --plugin_add=embedded_innodb --plugin_remove=innobase --innodb.file-per-table=true |
997 | 2 | 2 | ||
998 | === modified file 'plugin/embedded_innodb/test-suite-dir/embedded_innodb/tests/t/config_flush_log_at_trx_commit0-master.opt' | |||
999 | --- plugin/embedded_innodb/test-suite-dir/embedded_innodb/tests/t/config_flush_log_at_trx_commit0-master.opt 2010-05-05 04:24:23 +0000 | |||
1000 | +++ plugin/embedded_innodb/test-suite-dir/embedded_innodb/tests/t/config_flush_log_at_trx_commit0-master.opt 2010-08-17 02:53:42 +0000 | |||
1001 | @@ -1,1 +1,1 @@ | |||
1003 | 1 | --plugin_add=embedded_innodb --plugin_remove=innobase --innodb-flush-log-at-trx-commit=0 | 1 | --plugin_add=embedded_innodb --plugin_remove=innobase --innodb.flush-log-at-trx-commit=0 |
1004 | 2 | 2 | ||
1005 | === modified file 'plugin/embedded_innodb/test-suite-dir/embedded_innodb/tests/t/config_flush_log_at_trx_commit1-master.opt' | |||
1006 | --- plugin/embedded_innodb/test-suite-dir/embedded_innodb/tests/t/config_flush_log_at_trx_commit1-master.opt 2010-05-05 04:24:23 +0000 | |||
1007 | +++ plugin/embedded_innodb/test-suite-dir/embedded_innodb/tests/t/config_flush_log_at_trx_commit1-master.opt 2010-08-17 02:53:42 +0000 | |||
1008 | @@ -1,1 +1,1 @@ | |||
1010 | 1 | --plugin_add=embedded_innodb --plugin_remove=innobase --innodb-flush-log-at-trx-commit=1 | 1 | --plugin_add=embedded_innodb --plugin_remove=innobase --innodb.flush-log-at-trx-commit=1 |
1011 | 2 | 2 | ||
1012 | === modified file 'plugin/embedded_innodb/test-suite-dir/embedded_innodb/tests/t/config_flush_log_at_trx_commit2-master.opt' | |||
1013 | --- plugin/embedded_innodb/test-suite-dir/embedded_innodb/tests/t/config_flush_log_at_trx_commit2-master.opt 2010-05-05 04:24:23 +0000 | |||
1014 | +++ plugin/embedded_innodb/test-suite-dir/embedded_innodb/tests/t/config_flush_log_at_trx_commit2-master.opt 2010-08-17 02:53:42 +0000 | |||
1015 | @@ -1,1 +1,1 @@ | |||
1017 | 1 | --plugin_add=embedded_innodb --plugin_remove=innobase --innodb-flush-log-at-trx-commit=2 | 1 | --plugin_add=embedded_innodb --plugin_remove=innobase --innodb.flush-log-at-trx-commit=2 |
1018 | 2 | 2 | ||
1019 | === modified file 'plugin/embedded_innodb/test-suite-dir/embedded_innodb/tests/t/config_flush_method_fsync-master.opt' | |||
1020 | --- plugin/embedded_innodb/test-suite-dir/embedded_innodb/tests/t/config_flush_method_fsync-master.opt 2010-05-06 09:50:02 +0000 | |||
1021 | +++ plugin/embedded_innodb/test-suite-dir/embedded_innodb/tests/t/config_flush_method_fsync-master.opt 2010-08-17 02:53:42 +0000 | |||
1022 | @@ -1,1 +1,1 @@ | |||
1024 | 1 | --plugin_add=embedded_innodb --plugin_remove=innobase --innodb-flush-method=fsync | 1 | --plugin_add=embedded_innodb --plugin_remove=innobase --innodb.flush-method=fsync |
1025 | 2 | 2 | ||
1026 | === modified file 'plugin/embedded_innodb/test-suite-dir/embedded_innodb/tests/t/config_flush_method_odirect-master.opt' | |||
1027 | --- plugin/embedded_innodb/test-suite-dir/embedded_innodb/tests/t/config_flush_method_odirect-master.opt 2010-05-06 09:50:02 +0000 | |||
1028 | +++ plugin/embedded_innodb/test-suite-dir/embedded_innodb/tests/t/config_flush_method_odirect-master.opt 2010-08-17 02:53:42 +0000 | |||
1029 | @@ -1,1 +1,1 @@ | |||
1031 | 1 | --plugin_add=embedded_innodb --plugin_remove=innobase --innodb-flush-method=O_DIRECT | 1 | --plugin_add=embedded_innodb --plugin_remove=innobase --innodb.flush-method=O_DIRECT |
1032 | 2 | 2 | ||
1033 | === modified file 'plugin/embedded_innodb/test-suite-dir/embedded_innodb/tests/t/config_flush_method_odsync-master.opt' | |||
1034 | --- plugin/embedded_innodb/test-suite-dir/embedded_innodb/tests/t/config_flush_method_odsync-master.opt 2010-05-06 09:50:02 +0000 | |||
1035 | +++ plugin/embedded_innodb/test-suite-dir/embedded_innodb/tests/t/config_flush_method_odsync-master.opt 2010-08-17 02:53:42 +0000 | |||
1036 | @@ -1,1 +1,1 @@ | |||
1038 | 1 | --plugin_add=embedded_innodb --plugin_remove=innobase --innodb-flush-method=O_DSYNC | 1 | --plugin_add=embedded_innodb --plugin_remove=innobase --innodb.flush-method=O_DSYNC |
1039 | 2 | 2 | ||
1040 | === modified file 'plugin/embedded_innodb/test-suite-dir/embedded_innodb/tests/t/config_force_recovery-master.opt' | |||
1041 | --- plugin/embedded_innodb/test-suite-dir/embedded_innodb/tests/t/config_force_recovery-master.opt 2010-05-11 05:11:20 +0000 | |||
1042 | +++ plugin/embedded_innodb/test-suite-dir/embedded_innodb/tests/t/config_force_recovery-master.opt 2010-08-17 02:53:42 +0000 | |||
1043 | @@ -1,1 +1,1 @@ | |||
1045 | 1 | --plugin_add=embedded_innodb --plugin_remove=innobase --innodb-force-recovery=1 | 1 | --plugin_add=embedded_innodb --plugin_remove=innobase --innodb.force-recovery=1 |
1046 | 2 | 2 | ||
1047 | === modified file 'plugin/embedded_innodb/test-suite-dir/embedded_innodb/tests/t/config_io_capacity-master.opt' | |||
1048 | --- plugin/embedded_innodb/test-suite-dir/embedded_innodb/tests/t/config_io_capacity-master.opt 2010-05-03 12:27:00 +0000 | |||
1049 | +++ plugin/embedded_innodb/test-suite-dir/embedded_innodb/tests/t/config_io_capacity-master.opt 2010-08-17 02:53:42 +0000 | |||
1050 | @@ -1,1 +1,1 @@ | |||
1052 | 1 | --plugin_add=embedded_innodb --plugin_remove=innobase --innodb-io-capacity=500 | 1 | --plugin_add=embedded_innodb --plugin_remove=innobase --innodb.io-capacity=500 |
1053 | 2 | 2 | ||
1054 | === modified file 'plugin/embedded_innodb/test-suite-dir/embedded_innodb/tests/t/config_lock_wait_timeout_1-master.opt' | |||
1055 | --- plugin/embedded_innodb/test-suite-dir/embedded_innodb/tests/t/config_lock_wait_timeout_1-master.opt 2010-05-11 05:19:48 +0000 | |||
1056 | +++ plugin/embedded_innodb/test-suite-dir/embedded_innodb/tests/t/config_lock_wait_timeout_1-master.opt 2010-08-17 02:53:42 +0000 | |||
1057 | @@ -1,1 +1,1 @@ | |||
1059 | 1 | --plugin_add=embedded_innodb --plugin_remove=innobase --innodb-lock-wait-timeout=1 | 1 | --plugin_add=embedded_innodb --plugin_remove=innobase --innodb.lock-wait-timeout=1 |
1060 | 2 | 2 | ||
1061 | === modified file 'plugin/embedded_innodb/test-suite-dir/embedded_innodb/tests/t/config_log_buffer_size_5m-master.opt' | |||
1062 | --- plugin/embedded_innodb/test-suite-dir/embedded_innodb/tests/t/config_log_buffer_size_5m-master.opt 2010-05-11 05:36:20 +0000 | |||
1063 | +++ plugin/embedded_innodb/test-suite-dir/embedded_innodb/tests/t/config_log_buffer_size_5m-master.opt 2010-08-17 02:53:42 +0000 | |||
1064 | @@ -1,1 +1,1 @@ | |||
1066 | 1 | --plugin_add=embedded_innodb --plugin_remove=innobase --innodb-log-buffer-size=5m | 1 | --plugin_add=embedded_innodb --plugin_remove=innobase --innodb.log-buffer-size=5242880 |
1067 | 2 | 2 | ||
1068 | === modified file 'plugin/embedded_innodb/test-suite-dir/embedded_innodb/tests/t/config_max_dirty_pages_pct_50-master.opt' | |||
1069 | --- plugin/embedded_innodb/test-suite-dir/embedded_innodb/tests/t/config_max_dirty_pages_pct_50-master.opt 2010-05-07 08:02:05 +0000 | |||
1070 | +++ plugin/embedded_innodb/test-suite-dir/embedded_innodb/tests/t/config_max_dirty_pages_pct_50-master.opt 2010-08-17 02:53:42 +0000 | |||
1071 | @@ -1,1 +1,1 @@ | |||
1073 | 1 | --plugin_add=embedded_innodb --plugin_remove=innobase --innodb-max-dirty-pages-pct=50 | 1 | --plugin_add=embedded_innodb --plugin_remove=innobase --innodb.max-dirty-pages-pct=50 |
1074 | 2 | 2 | ||
1075 | === modified file 'plugin/embedded_innodb/test-suite-dir/embedded_innodb/tests/t/config_max_purge_lag_42-master.opt' | |||
1076 | --- plugin/embedded_innodb/test-suite-dir/embedded_innodb/tests/t/config_max_purge_lag_42-master.opt 2010-05-07 12:15:41 +0000 | |||
1077 | +++ plugin/embedded_innodb/test-suite-dir/embedded_innodb/tests/t/config_max_purge_lag_42-master.opt 2010-08-17 02:53:42 +0000 | |||
1078 | @@ -1,1 +1,1 @@ | |||
1080 | 1 | --plugin_add=embedded_innodb --plugin_remove=innobase --innodb-max-purge-lag=42 | 1 | --plugin_add=embedded_innodb --plugin_remove=innobase --innodb.max-purge-lag=42 |
1081 | 2 | 2 | ||
1082 | === modified file 'plugin/embedded_innodb/test-suite-dir/embedded_innodb/tests/t/config_open_files_800-master.opt' | |||
1083 | --- plugin/embedded_innodb/test-suite-dir/embedded_innodb/tests/t/config_open_files_800-master.opt 2010-05-10 05:13:41 +0000 | |||
1084 | +++ plugin/embedded_innodb/test-suite-dir/embedded_innodb/tests/t/config_open_files_800-master.opt 2010-08-17 02:53:42 +0000 | |||
1085 | @@ -1,1 +1,1 @@ | |||
1087 | 1 | --plugin_add=embedded_innodb --plugin_remove=innobase --innodb-open-files=800 | 1 | --plugin_add=embedded_innodb --plugin_remove=innobase --innodb.open-files=800 |
1088 | 2 | 2 | ||
1089 | === modified file 'plugin/embedded_innodb/test-suite-dir/embedded_innodb/tests/t/config_print_verbose_log_off-master.opt' | |||
1090 | --- plugin/embedded_innodb/test-suite-dir/embedded_innodb/tests/t/config_print_verbose_log_off-master.opt 2010-05-11 05:46:17 +0000 | |||
1091 | +++ plugin/embedded_innodb/test-suite-dir/embedded_innodb/tests/t/config_print_verbose_log_off-master.opt 2010-08-17 02:53:42 +0000 | |||
1092 | @@ -1,1 +1,1 @@ | |||
1094 | 1 | --plugin_add=embedded_innodb --plugin_remove=innobase --innodb-print-verbose-log=false | 1 | --plugin_add=embedded_innodb --plugin_remove=innobase --innodb.print-verbose-log=false |
1095 | 2 | 2 | ||
1096 | === modified file 'plugin/embedded_innodb/test-suite-dir/embedded_innodb/tests/t/config_print_verbose_log_on-master.opt' | |||
1097 | --- plugin/embedded_innodb/test-suite-dir/embedded_innodb/tests/t/config_print_verbose_log_on-master.opt 2010-05-11 05:46:17 +0000 | |||
1098 | +++ plugin/embedded_innodb/test-suite-dir/embedded_innodb/tests/t/config_print_verbose_log_on-master.opt 2010-08-17 02:53:42 +0000 | |||
1099 | @@ -1,1 +1,1 @@ | |||
1101 | 1 | --plugin_add=embedded_innodb --plugin_remove=innobase --innodb-print-verbose-log=true | 1 | --plugin_add=embedded_innodb --plugin_remove=innobase --innodb.print-verbose-log=true |
1102 | 2 | 2 | ||
1103 | === modified file 'plugin/embedded_innodb/test-suite-dir/embedded_innodb/tests/t/config_read_io_threads_64-master.opt' | |||
1104 | --- plugin/embedded_innodb/test-suite-dir/embedded_innodb/tests/t/config_read_io_threads_64-master.opt 2010-05-10 06:06:20 +0000 | |||
1105 | +++ plugin/embedded_innodb/test-suite-dir/embedded_innodb/tests/t/config_read_io_threads_64-master.opt 2010-08-17 02:53:42 +0000 | |||
1106 | @@ -1,1 +1,1 @@ | |||
1108 | 1 | --plugin_add=embedded_innodb --plugin_remove=innobase --innodb-read-io-threads=64 | 1 | --plugin_add=embedded_innodb --plugin_remove=innobase --innodb.read-io-threads=64 |
1109 | 2 | 2 | ||
1110 | === modified file 'plugin/embedded_innodb/test-suite-dir/embedded_innodb/tests/t/config_rollback_on_timeout_off-master.opt' | |||
1111 | --- plugin/embedded_innodb/test-suite-dir/embedded_innodb/tests/t/config_rollback_on_timeout_off-master.opt 2010-05-11 07:09:35 +0000 | |||
1112 | +++ plugin/embedded_innodb/test-suite-dir/embedded_innodb/tests/t/config_rollback_on_timeout_off-master.opt 2010-08-17 02:53:42 +0000 | |||
1113 | @@ -1,1 +1,1 @@ | |||
1115 | 1 | --plugin_add=embedded_innodb --plugin_remove=innobase --innodb-rollback-on-timeout=false | 1 | --plugin_add=embedded_innodb --plugin_remove=innobase --innodb.rollback-on-timeout=false |
1116 | 2 | 2 | ||
1117 | === modified file 'plugin/embedded_innodb/test-suite-dir/embedded_innodb/tests/t/config_rollback_on_timeout_on-master.opt' | |||
1118 | --- plugin/embedded_innodb/test-suite-dir/embedded_innodb/tests/t/config_rollback_on_timeout_on-master.opt 2010-05-11 07:09:35 +0000 | |||
1119 | +++ plugin/embedded_innodb/test-suite-dir/embedded_innodb/tests/t/config_rollback_on_timeout_on-master.opt 2010-08-17 02:53:42 +0000 | |||
1120 | @@ -1,1 +1,1 @@ | |||
1122 | 1 | --plugin_add=embedded_innodb --plugin_remove=innobase --innodb-rollback-on-timeout=1 | 1 | --plugin_add=embedded_innodb --plugin_remove=innobase --innodb.rollback-on-timeout=1 |
1123 | 2 | 2 | ||
1124 | === modified file 'plugin/embedded_innodb/test-suite-dir/embedded_innodb/tests/t/config_sync_spin_loops_100-master.opt' | |||
1125 | --- plugin/embedded_innodb/test-suite-dir/embedded_innodb/tests/t/config_sync_spin_loops_100-master.opt 2010-05-11 07:29:33 +0000 | |||
1126 | +++ plugin/embedded_innodb/test-suite-dir/embedded_innodb/tests/t/config_sync_spin_loops_100-master.opt 2010-08-17 02:53:42 +0000 | |||
1127 | @@ -1,1 +1,1 @@ | |||
1129 | 1 | --plugin_add=embedded_innodb --plugin_remove=innobase --innodb-sync-spin-loops=100 | 1 | --plugin_add=embedded_innodb --plugin_remove=innobase --innodb.sync-spin-loops=100 |
1130 | 2 | 2 | ||
1131 | === modified file 'plugin/embedded_innodb/test-suite-dir/embedded_innodb/tests/t/config_table_function.test' | |||
1132 | --- plugin/embedded_innodb/test-suite-dir/embedded_innodb/tests/t/config_table_function.test 2010-03-15 05:34:43 +0000 | |||
1133 | +++ plugin/embedded_innodb/test-suite-dir/embedded_innodb/tests/t/config_table_function.test 2010-08-17 02:53:42 +0000 | |||
1134 | @@ -1,7 +1,7 @@ | |||
1135 | 1 | SHOW CREATE TABLE DATA_DICTIONARY.INNODB_CONFIGURATION; | 1 | SHOW CREATE TABLE DATA_DICTIONARY.INNODB_CONFIGURATION; |
1136 | 2 | SELECT COUNT(*) FROM DATA_DICTIONARY.INNODB_CONFIGURATION; | 2 | SELECT COUNT(*) FROM DATA_DICTIONARY.INNODB_CONFIGURATION; |
1137 | 3 | SELECT NAME,TYPE FROM DATA_DICTIONARY.INNODB_CONFIGURATION; | 3 | SELECT NAME,TYPE FROM DATA_DICTIONARY.INNODB_CONFIGURATION; |
1139 | 4 | SELECT * FROM DATA_DICTIONARY.INNODB_CONFIGURATION; | 4 | SELECT * FROM DATA_DICTIONARY.INNODB_CONFIGURATION where NAME NOT IN ("VERSION"); |
1140 | 5 | SELECT NAME,VALUE FROM DATA_DICTIONARY.INNODB_CONFIGURATION WHERE NAME IN ("data_file_path", "data_home_dir"); | 5 | SELECT NAME,VALUE FROM DATA_DICTIONARY.INNODB_CONFIGURATION WHERE NAME IN ("data_file_path", "data_home_dir"); |
1141 | 6 | SELECT NAME,VALUE FROM DATA_DICTIONARY.INNODB_CONFIGURATION WHERE NAME = "file_per_table"; | 6 | SELECT NAME,VALUE FROM DATA_DICTIONARY.INNODB_CONFIGURATION WHERE NAME = "file_per_table"; |
1142 | 7 | 7 | ||
1143 | 8 | 8 | ||
1144 | === modified file 'plugin/embedded_innodb/test-suite-dir/embedded_innodb/tests/t/config_use_sys_malloc_off-master.opt' | |||
1145 | --- plugin/embedded_innodb/test-suite-dir/embedded_innodb/tests/t/config_use_sys_malloc_off-master.opt 2010-05-11 07:29:33 +0000 | |||
1146 | +++ plugin/embedded_innodb/test-suite-dir/embedded_innodb/tests/t/config_use_sys_malloc_off-master.opt 2010-08-17 02:53:42 +0000 | |||
1147 | @@ -1,1 +1,1 @@ | |||
1149 | 1 | --plugin_add=embedded_innodb --plugin_remove=innobase --innodb-use-sys-malloc=0 | 1 | --plugin_add=embedded_innodb --plugin_remove=innobase --innodb.use-sys-malloc=0 |
1150 | 2 | 2 | ||
1151 | === modified file 'plugin/embedded_innodb/test-suite-dir/embedded_innodb/tests/t/config_use_sys_malloc_on-master.opt' | |||
1152 | --- plugin/embedded_innodb/test-suite-dir/embedded_innodb/tests/t/config_use_sys_malloc_on-master.opt 2010-05-11 07:29:33 +0000 | |||
1153 | +++ plugin/embedded_innodb/test-suite-dir/embedded_innodb/tests/t/config_use_sys_malloc_on-master.opt 2010-08-17 02:53:42 +0000 | |||
1154 | @@ -1,1 +1,1 @@ | |||
1156 | 1 | --plugin_add=embedded_innodb --plugin_remove=innobase --innodb-use-sys-malloc=1 | 1 | --plugin_add=embedded_innodb --plugin_remove=innobase --innodb.use-sys-malloc=1 |
1157 | 2 | 2 | ||
1158 | === modified file 'plugin/embedded_innodb/test-suite-dir/embedded_innodb/tests/t/config_write_io_threads_64-master.opt' | |||
1159 | --- plugin/embedded_innodb/test-suite-dir/embedded_innodb/tests/t/config_write_io_threads_64-master.opt 2010-05-10 06:09:51 +0000 | |||
1160 | +++ plugin/embedded_innodb/test-suite-dir/embedded_innodb/tests/t/config_write_io_threads_64-master.opt 2010-08-17 02:53:42 +0000 | |||
1161 | @@ -1,1 +1,1 @@ | |||
1163 | 1 | --plugin_add=embedded_innodb --plugin_remove=innobase --innodb-write-io-threads=64 | 1 | --plugin_add=embedded_innodb --plugin_remove=innobase --innodb.write-io-threads=64 |
1164 | 2 | 2 | ||
1165 | === modified file 'plugin/embedded_innodb/test-suite-dir/embedded_innodb/tests/t/row_format_file_per_table-master.opt' | |||
1166 | --- plugin/embedded_innodb/test-suite-dir/embedded_innodb/tests/t/row_format_file_per_table-master.opt 2010-06-07 08:46:37 +0000 | |||
1167 | +++ plugin/embedded_innodb/test-suite-dir/embedded_innodb/tests/t/row_format_file_per_table-master.opt 2010-08-17 02:53:42 +0000 | |||
1168 | @@ -1,1 +1,1 @@ | |||
1170 | 1 | --plugin_add=embedded_innodb --plugin_remove=innobase --innodb-file-per-table=1 | 1 | --plugin_add=embedded_innodb --plugin_remove=innobase --innodb.file-per-table=1 |
1171 | 2 | 2 | ||
1172 | === modified file 'plugin/filtered_replicator/filtered_replicator.cc' | |||
1173 | --- plugin/filtered_replicator/filtered_replicator.cc 2010-07-29 00:35:25 +0000 | |||
1174 | +++ plugin/filtered_replicator/filtered_replicator.cc 2010-08-17 02:53:42 +0000 | |||
1175 | @@ -126,6 +126,24 @@ | |||
1176 | 126 | pthread_mutex_init(&sysvar_tab_lock, NULL); | 126 | pthread_mutex_init(&sysvar_tab_lock, NULL); |
1177 | 127 | } | 127 | } |
1178 | 128 | 128 | ||
1179 | 129 | FilteredReplicator::~FilteredReplicator() | ||
1180 | 130 | { | ||
1181 | 131 | if (sch_re) | ||
1182 | 132 | { | ||
1183 | 133 | pcre_free(sch_re); | ||
1184 | 134 | } | ||
1185 | 135 | if (tab_re) | ||
1186 | 136 | { | ||
1187 | 137 | pcre_free(tab_re); | ||
1188 | 138 | } | ||
1189 | 139 | |||
1190 | 140 | pthread_mutex_destroy(&sch_vector_lock); | ||
1191 | 141 | pthread_mutex_destroy(&tab_vector_lock); | ||
1192 | 142 | pthread_mutex_destroy(&sysvar_sch_lock); | ||
1193 | 143 | pthread_mutex_destroy(&sysvar_tab_lock); | ||
1194 | 144 | |||
1195 | 145 | } | ||
1196 | 146 | |||
1197 | 129 | void FilteredReplicator::parseStatementTableMetadata(const message::Statement &in_statement, | 147 | void FilteredReplicator::parseStatementTableMetadata(const message::Statement &in_statement, |
1198 | 130 | string &in_schema_name, | 148 | string &in_schema_name, |
1199 | 131 | string &in_table_name) const | 149 | string &in_table_name) const |
1200 | @@ -500,22 +518,22 @@ | |||
1201 | 500 | 518 | ||
1202 | 501 | if (vm.count("filteredschemas")) | 519 | if (vm.count("filteredschemas")) |
1203 | 502 | { | 520 | { |
1205 | 503 | sysvar_filtered_replicator_sch_filters= strdup(vm["filteredschemas"].as<string>().c_str()); | 521 | sysvar_filtered_replicator_sch_filters= const_cast<char *>(vm["filteredschemas"].as<string>().c_str()); |
1206 | 504 | } | 522 | } |
1207 | 505 | 523 | ||
1208 | 506 | else | 524 | else |
1209 | 507 | { | 525 | { |
1211 | 508 | sysvar_filtered_replicator_sch_filters= (char *)""; | 526 | sysvar_filtered_replicator_sch_filters= const_cast<char *>(""); |
1212 | 509 | } | 527 | } |
1213 | 510 | 528 | ||
1214 | 511 | if (vm.count("filteredtables")) | 529 | if (vm.count("filteredtables")) |
1215 | 512 | { | 530 | { |
1217 | 513 | sysvar_filtered_replicator_tab_filters= strdup(vm["filteredtables"].as<string>().c_str()); | 531 | sysvar_filtered_replicator_tab_filters= const_cast<char *>(vm["filteredtables"].as<string>().c_str()); |
1218 | 514 | } | 532 | } |
1219 | 515 | 533 | ||
1220 | 516 | else | 534 | else |
1221 | 517 | { | 535 | { |
1223 | 518 | sysvar_filtered_replicator_tab_filters= (char *)""; | 536 | sysvar_filtered_replicator_tab_filters= const_cast<char *>(""); |
1224 | 519 | } | 537 | } |
1225 | 520 | 538 | ||
1226 | 521 | filtered_replicator= new(std::nothrow) | 539 | filtered_replicator= new(std::nothrow) |
1227 | 522 | 540 | ||
1228 | === modified file 'plugin/filtered_replicator/filtered_replicator.h' | |||
1229 | --- plugin/filtered_replicator/filtered_replicator.h 2010-04-05 16:06:01 +0000 | |||
1230 | +++ plugin/filtered_replicator/filtered_replicator.h 2010-08-17 02:53:42 +0000 | |||
1231 | @@ -46,22 +46,7 @@ | |||
1232 | 46 | const char *in_tab_filters); | 46 | const char *in_tab_filters); |
1233 | 47 | 47 | ||
1234 | 48 | /** Destructor */ | 48 | /** Destructor */ |
1251 | 49 | ~FilteredReplicator() | 49 | ~FilteredReplicator(); |
1236 | 50 | { | ||
1237 | 51 | if (sch_re) | ||
1238 | 52 | { | ||
1239 | 53 | pcre_free(sch_re); | ||
1240 | 54 | } | ||
1241 | 55 | if (tab_re) | ||
1242 | 56 | { | ||
1243 | 57 | pcre_free(tab_re); | ||
1244 | 58 | } | ||
1245 | 59 | |||
1246 | 60 | pthread_mutex_destroy(&sch_vector_lock); | ||
1247 | 61 | pthread_mutex_destroy(&tab_vector_lock); | ||
1248 | 62 | pthread_mutex_destroy(&sysvar_sch_lock); | ||
1249 | 63 | pthread_mutex_destroy(&sysvar_tab_lock); | ||
1250 | 64 | } | ||
1252 | 65 | 50 | ||
1253 | 66 | /** | 51 | /** |
1254 | 67 | * Replicate a Transaction message to an Applier. | 52 | * Replicate a Transaction message to an Applier. |
1255 | 68 | 53 | ||
1256 | === modified file 'plugin/hello_events/hello_events.cc' | |||
1257 | --- plugin/hello_events/hello_events.cc 2010-07-16 14:00:07 +0000 | |||
1258 | +++ plugin/hello_events/hello_events.cc 2010-08-17 02:53:42 +0000 | |||
1259 | @@ -135,6 +135,13 @@ | |||
1260 | 135 | fprintf(stderr, PLUGIN_NAME" EVENT observeAfterDropDatabase(%s) err = %d\n", data.db.c_str(), data.err); | 135 | fprintf(stderr, PLUGIN_NAME" EVENT observeAfterDropDatabase(%s) err = %d\n", data.db.c_str(), data.err); |
1261 | 136 | } | 136 | } |
1262 | 137 | 137 | ||
1263 | 138 | HelloEvents::~HelloEvents() | ||
1264 | 139 | { | ||
1265 | 140 | /* These are strdup'd in option processing */ | ||
1266 | 141 | free(sysvar_table_list); | ||
1267 | 142 | free(sysvar_db_list); | ||
1268 | 143 | } | ||
1269 | 144 | |||
1270 | 138 | //================================== | 145 | //================================== |
1271 | 139 | /* This is where I register which table events my pluggin is interested in.*/ | 146 | /* This is where I register which table events my pluggin is interested in.*/ |
1272 | 140 | void HelloEvents::registerTableEventsDo(TableShare &table_share, EventObserverList &observers) | 147 | void HelloEvents::registerTableEventsDo(TableShare &table_share, EventObserverList &observers) |
1273 | 141 | 148 | ||
1274 | === modified file 'plugin/hello_events/hello_events.h' | |||
1275 | --- plugin/hello_events/hello_events.h 2010-05-17 16:42:43 +0000 | |||
1276 | +++ plugin/hello_events/hello_events.h 2010-08-17 02:53:42 +0000 | |||
1277 | @@ -34,6 +34,7 @@ | |||
1278 | 34 | public: | 34 | public: |
1279 | 35 | 35 | ||
1280 | 36 | HelloEvents(std::string name_arg): EventObserver(name_arg), is_enabled(false), db_list(""), table_list(""){} | 36 | HelloEvents(std::string name_arg): EventObserver(name_arg), is_enabled(false), db_list(""), table_list(""){} |
1281 | 37 | ~HelloEvents(); | ||
1282 | 37 | 38 | ||
1283 | 38 | void registerTableEventsDo(TableShare &table_share, EventObserverList &observers); | 39 | void registerTableEventsDo(TableShare &table_share, EventObserverList &observers); |
1284 | 39 | void registerSchemaEventsDo(const std::string &db, EventObserverList &observers); | 40 | void registerSchemaEventsDo(const std::string &db, EventObserverList &observers); |
1285 | 40 | 41 | ||
1286 | === modified file 'plugin/innobase/handler/ha_innodb.cc' | |||
1287 | --- plugin/innobase/handler/ha_innodb.cc 2010-08-08 01:18:02 +0000 | |||
1288 | +++ plugin/innobase/handler/ha_innodb.cc 2010-08-17 02:53:42 +0000 | |||
1289 | @@ -88,6 +88,12 @@ | |||
1290 | 88 | #include <drizzled/transaction_services.h> | 88 | #include <drizzled/transaction_services.h> |
1291 | 89 | 89 | ||
1292 | 90 | #include <boost/algorithm/string.hpp> | 90 | #include <boost/algorithm/string.hpp> |
1293 | 91 | #include <boost/program_options.hpp> | ||
1294 | 92 | #include <drizzled/module/option_map.h> | ||
1295 | 93 | #include <iostream> | ||
1296 | 94 | |||
1297 | 95 | namespace po= boost::program_options; | ||
1298 | 96 | using namespace std; | ||
1299 | 91 | 97 | ||
1300 | 92 | /** @file ha_innodb.cc */ | 98 | /** @file ha_innodb.cc */ |
1301 | 93 | 99 | ||
1302 | @@ -180,8 +186,9 @@ | |||
1303 | 180 | 186 | ||
1304 | 181 | static long innobase_mirrored_log_groups, innobase_log_files_in_group, | 187 | static long innobase_mirrored_log_groups, innobase_log_files_in_group, |
1305 | 182 | innobase_log_buffer_size, | 188 | innobase_log_buffer_size, |
1307 | 183 | innobase_additional_mem_pool_size, innobase_file_io_threads, | 189 | innobase_file_io_threads, |
1308 | 184 | innobase_force_recovery, innobase_open_files; | 190 | innobase_force_recovery, innobase_open_files; |
1309 | 191 | static long innobase_additional_mem_pool_size= 8*1024*1024L; | ||
1310 | 185 | static ulong innobase_commit_concurrency = 0; | 192 | static ulong innobase_commit_concurrency = 0; |
1311 | 186 | static ulong innobase_read_io_threads; | 193 | static ulong innobase_read_io_threads; |
1312 | 187 | static ulong innobase_write_io_threads; | 194 | static ulong innobase_write_io_threads; |
1313 | @@ -189,7 +196,8 @@ | |||
1314 | 189 | /** | 196 | /** |
1315 | 190 | * @TODO: Turn this into size_t as soon as we have a Variable<size_t> | 197 | * @TODO: Turn this into size_t as soon as we have a Variable<size_t> |
1316 | 191 | */ | 198 | */ |
1318 | 192 | static int64_t innobase_buffer_pool_size, innobase_log_file_size; | 199 | static int64_t innobase_buffer_pool_size= 128*1024*1024; |
1319 | 200 | static int64_t innobase_log_file_size; | ||
1320 | 193 | 201 | ||
1321 | 194 | /* The default values for the following char* start-up parameters | 202 | /* The default values for the following char* start-up parameters |
1322 | 195 | are determined in innobase_init below: */ | 203 | are determined in innobase_init below: */ |
1323 | @@ -296,6 +304,10 @@ | |||
1324 | 296 | pthread_mutex_destroy(&commit_cond_m); | 304 | pthread_mutex_destroy(&commit_cond_m); |
1325 | 297 | pthread_cond_destroy(&commit_cond); | 305 | pthread_cond_destroy(&commit_cond); |
1326 | 298 | } | 306 | } |
1327 | 307 | |||
1328 | 308 | /* These get strdup'd from vm variables */ | ||
1329 | 309 | free(innobase_data_home_dir); | ||
1330 | 310 | |||
1331 | 299 | } | 311 | } |
1332 | 300 | 312 | ||
1333 | 301 | private: | 313 | private: |
1334 | @@ -1815,6 +1827,12 @@ | |||
1335 | 1815 | prebuilt->read_just_key = 0; | 1827 | prebuilt->read_just_key = 0; |
1336 | 1816 | } | 1828 | } |
1337 | 1817 | 1829 | ||
1338 | 1830 | template<class T> | ||
1339 | 1831 | void align_value(T& value, size_t align_val= 1024) | ||
1340 | 1832 | { | ||
1341 | 1833 | value= value - (value % align_val); | ||
1342 | 1834 | } | ||
1343 | 1835 | |||
1344 | 1818 | /*********************************************************************//** | 1836 | /*********************************************************************//** |
1345 | 1819 | Opens an InnoDB database. | 1837 | Opens an InnoDB database. |
1346 | 1820 | @return 0 on success, error code on failure */ | 1838 | @return 0 on success, error code on failure */ |
1347 | @@ -1830,6 +1848,279 @@ | |||
1348 | 1830 | char *default_path; | 1848 | char *default_path; |
1349 | 1831 | uint format_id; | 1849 | uint format_id; |
1350 | 1832 | InnobaseEngine *actuall_engine_ptr; | 1850 | InnobaseEngine *actuall_engine_ptr; |
1351 | 1851 | const module::option_map &vm= context.getOptions(); | ||
1352 | 1852 | |||
1353 | 1853 | if (vm.count("io-capacity")) | ||
1354 | 1854 | { | ||
1355 | 1855 | if (srv_io_capacity < 100) | ||
1356 | 1856 | { | ||
1357 | 1857 | errmsg_printf(ERRMSG_LVL_ERROR, _("Invalid value for io-capacity\n")); | ||
1358 | 1858 | exit(-1); | ||
1359 | 1859 | } | ||
1360 | 1860 | } | ||
1361 | 1861 | |||
1362 | 1862 | if (vm.count("data-home-dir")) | ||
1363 | 1863 | { | ||
1364 | 1864 | innobase_data_home_dir= strdup(vm["data-home-dir"].as<string>().c_str()); | ||
1365 | 1865 | } | ||
1366 | 1866 | |||
1367 | 1867 | else | ||
1368 | 1868 | { | ||
1369 | 1869 | innobase_data_home_dir= NULL; | ||
1370 | 1870 | } | ||
1371 | 1871 | |||
1372 | 1872 | if (vm.count("fast-shutdown")) | ||
1373 | 1873 | { | ||
1374 | 1874 | if (innobase_fast_shutdown > 2) | ||
1375 | 1875 | { | ||
1376 | 1876 | errmsg_printf(ERRMSG_LVL_ERROR, _("Invalid value for fast-shutdown\n")); | ||
1377 | 1877 | exit(-1); | ||
1378 | 1878 | } | ||
1379 | 1879 | } | ||
1380 | 1880 | |||
1381 | 1881 | if (vm.count("file-format-check")) | ||
1382 | 1882 | { | ||
1383 | 1883 | innobase_file_format_check= const_cast<char *>(vm["file-format-check"].as<string>().c_str()); | ||
1384 | 1884 | } | ||
1385 | 1885 | |||
1386 | 1886 | if (vm.count("flush-log-at-trx-commit")) | ||
1387 | 1887 | { | ||
1388 | 1888 | if (srv_flush_log_at_trx_commit > 2) | ||
1389 | 1889 | { | ||
1390 | 1890 | errmsg_printf(ERRMSG_LVL_ERROR, _("Invalid value for flush-log-at-trx-commit\n")); | ||
1391 | 1891 | exit(-1); | ||
1392 | 1892 | } | ||
1393 | 1893 | } | ||
1394 | 1894 | |||
1395 | 1895 | if (vm.count("flush-method")) | ||
1396 | 1896 | { | ||
1397 | 1897 | innobase_unix_file_flush_method= const_cast<char *>(vm["flush-method"].as<string>().c_str()); | ||
1398 | 1898 | } | ||
1399 | 1899 | else | ||
1400 | 1900 | { | ||
1401 | 1901 | innobase_unix_file_flush_method= NULL; | ||
1402 | 1902 | } | ||
1403 | 1903 | |||
1404 | 1904 | #ifdef UNIV_LOG_ARCHIVE | ||
1405 | 1905 | if (vm.count("log-arch-dir")) | ||
1406 | 1906 | { | ||
1407 | 1907 | innobase_log_arch_dir= const_cast<char *>(vm["log-arch-dir"].as<string>().c_str()); | ||
1408 | 1908 | } | ||
1409 | 1909 | |||
1410 | 1910 | else | ||
1411 | 1911 | { | ||
1412 | 1912 | innobase_log_arch_dir= NULL; | ||
1413 | 1913 | } | ||
1414 | 1914 | #endif /* UNIV_LOG_ARCHIVE */ | ||
1415 | 1915 | |||
1416 | 1916 | if (vm.count("max-dirty-pages-pct")) | ||
1417 | 1917 | { | ||
1418 | 1918 | if (srv_max_buf_pool_modified_pct > 99) | ||
1419 | 1919 | { | ||
1420 | 1920 | errmsg_printf(ERRMSG_LVL_ERROR, _("Invalid value for max-dirty-pages-pct\n")); | ||
1421 | 1921 | exit(-1); | ||
1422 | 1922 | } | ||
1423 | 1923 | } | ||
1424 | 1924 | |||
1425 | 1925 | if (vm.count("stats-sample-pages")) | ||
1426 | 1926 | { | ||
1427 | 1927 | if (srv_stats_sample_pages < 8) | ||
1428 | 1928 | { | ||
1429 | 1929 | errmsg_printf(ERRMSG_LVL_ERROR, _("Invalid value for stats-sample-pages\n")); | ||
1430 | 1930 | exit(-1); | ||
1431 | 1931 | } | ||
1432 | 1932 | } | ||
1433 | 1933 | |||
1434 | 1934 | if (vm.count("additional-mem-pool-size")) | ||
1435 | 1935 | { | ||
1436 | 1936 | align_value(innobase_additional_mem_pool_size); | ||
1437 | 1937 | |||
1438 | 1938 | if (innobase_additional_mem_pool_size < 512*1024L) | ||
1439 | 1939 | { | ||
1440 | 1940 | errmsg_printf(ERRMSG_LVL_ERROR, _("Invalid value for additional-mem-pool-size\n")); | ||
1441 | 1941 | exit(-1); | ||
1442 | 1942 | } | ||
1443 | 1943 | |||
1444 | 1944 | } | ||
1445 | 1945 | |||
1446 | 1946 | if (vm.count("autoextend-increment")) | ||
1447 | 1947 | { | ||
1448 | 1948 | if (srv_auto_extend_increment < 1 || srv_auto_extend_increment > 1000) | ||
1449 | 1949 | { | ||
1450 | 1950 | errmsg_printf(ERRMSG_LVL_ERROR, _("Invalid value for autoextend-increment\n")); | ||
1451 | 1951 | exit(-1); | ||
1452 | 1952 | } | ||
1453 | 1953 | } | ||
1454 | 1954 | |||
1455 | 1955 | if (vm.count("buffer-pool-size")) | ||
1456 | 1956 | { | ||
1457 | 1957 | align_value(innobase_buffer_pool_size, 1024*1024); | ||
1458 | 1958 | if (innobase_buffer_pool_size < 5*1024*1024) | ||
1459 | 1959 | { | ||
1460 | 1960 | errmsg_printf(ERRMSG_LVL_ERROR, _("Invalid value for buffer-pool-size\n")); | ||
1461 | 1961 | exit(-1); | ||
1462 | 1962 | } | ||
1463 | 1963 | |||
1464 | 1964 | } | ||
1465 | 1965 | |||
1466 | 1966 | if (vm.count("commit-concurrency")) | ||
1467 | 1967 | { | ||
1468 | 1968 | if (srv_replication_delay > 1000) | ||
1469 | 1969 | { | ||
1470 | 1970 | errmsg_printf(ERRMSG_LVL_ERROR, _("Invalid value for commit-concurrency\n")); | ||
1471 | 1971 | exit(-1); | ||
1472 | 1972 | } | ||
1473 | 1973 | } | ||
1474 | 1974 | |||
1475 | 1975 | if (vm.count("concurrency-tickets")) | ||
1476 | 1976 | { | ||
1477 | 1977 | if (srv_n_free_tickets_to_enter < 1) | ||
1478 | 1978 | { | ||
1479 | 1979 | errmsg_printf(ERRMSG_LVL_ERROR, _("Invalid value for concurrency-tickets\n")); | ||
1480 | 1980 | exit(-1); | ||
1481 | 1981 | } | ||
1482 | 1982 | } | ||
1483 | 1983 | |||
1484 | 1984 | if (vm.count("file-io-threads")) | ||
1485 | 1985 | { | ||
1486 | 1986 | if (innobase_file_io_threads < 4 || innobase_file_io_threads > 64) | ||
1487 | 1987 | { | ||
1488 | 1988 | errmsg_printf(ERRMSG_LVL_ERROR, _("Invalid value for file-io-threads\n")); | ||
1489 | 1989 | exit(-1); | ||
1490 | 1990 | } | ||
1491 | 1991 | } | ||
1492 | 1992 | |||
1493 | 1993 | if (vm.count("read-io-threads")) | ||
1494 | 1994 | { | ||
1495 | 1995 | if (innobase_read_io_threads < 1 || innobase_read_io_threads > 64) | ||
1496 | 1996 | { | ||
1497 | 1997 | errmsg_printf(ERRMSG_LVL_ERROR, _("Invalid value for read-io-threads\n")); | ||
1498 | 1998 | exit(-1); | ||
1499 | 1999 | } | ||
1500 | 2000 | } | ||
1501 | 2001 | |||
1502 | 2002 | if (vm.count("write-io-threads")) | ||
1503 | 2003 | { | ||
1504 | 2004 | if (innobase_write_io_threads < 1 || innobase_write_io_threads > 64) | ||
1505 | 2005 | { | ||
1506 | 2006 | errmsg_printf(ERRMSG_LVL_ERROR, _("Invalid value for write-io-threads\n")); | ||
1507 | 2007 | exit(-1); | ||
1508 | 2008 | } | ||
1509 | 2009 | } | ||
1510 | 2010 | |||
1511 | 2011 | if (vm.count("force-recovery")) | ||
1512 | 2012 | { | ||
1513 | 2013 | if (innobase_force_recovery > 6) | ||
1514 | 2014 | { | ||
1515 | 2015 | errmsg_printf(ERRMSG_LVL_ERROR, _("Invalid value for force-recovery\n")); | ||
1516 | 2016 | exit(-1); | ||
1517 | 2017 | } | ||
1518 | 2018 | } | ||
1519 | 2019 | |||
1520 | 2020 | if (vm.count("log-buffer-size")) | ||
1521 | 2021 | { | ||
1522 | 2022 | align_value(innobase_log_buffer_size); | ||
1523 | 2023 | if (innobase_log_buffer_size < 256*1024L) | ||
1524 | 2024 | { | ||
1525 | 2025 | errmsg_printf(ERRMSG_LVL_ERROR, _("Invalid value for log-file-size\n")); | ||
1526 | 2026 | exit(-1); | ||
1527 | 2027 | } | ||
1528 | 2028 | } | ||
1529 | 2029 | |||
1530 | 2030 | if (vm.count("log-file-size")) | ||
1531 | 2031 | { | ||
1532 | 2032 | align_value(innobase_log_file_size, 1024*1024); | ||
1533 | 2033 | if (innobase_log_file_size < 1*1024*1024L) | ||
1534 | 2034 | { | ||
1535 | 2035 | errmsg_printf(ERRMSG_LVL_ERROR, _("Invalid value for log-file-size\n")); | ||
1536 | 2036 | exit(-1); | ||
1537 | 2037 | } | ||
1538 | 2038 | } | ||
1539 | 2039 | |||
1540 | 2040 | if (vm.count("log-files-in-group")) | ||
1541 | 2041 | { | ||
1542 | 2042 | if (innobase_log_files_in_group < 2 || innobase_log_files_in_group > 100) | ||
1543 | 2043 | { | ||
1544 | 2044 | errmsg_printf(ERRMSG_LVL_ERROR, _("Invalid value for log-files-in-group\n")); | ||
1545 | 2045 | exit(-1); | ||
1546 | 2046 | } | ||
1547 | 2047 | } | ||
1548 | 2048 | |||
1549 | 2049 | if (vm.count("mirrored-log-groups")) | ||
1550 | 2050 | { | ||
1551 | 2051 | if (innobase_mirrored_log_groups < 1 || innobase_mirrored_log_groups > 10) | ||
1552 | 2052 | { | ||
1553 | 2053 | errmsg_printf(ERRMSG_LVL_ERROR, _("Invalid value for mirrored-log-groups\n")); | ||
1554 | 2054 | exit(-1); | ||
1555 | 2055 | } | ||
1556 | 2056 | } | ||
1557 | 2057 | |||
1558 | 2058 | if (vm.count("open-files")) | ||
1559 | 2059 | { | ||
1560 | 2060 | if (innobase_open_files < 10) | ||
1561 | 2061 | { | ||
1562 | 2062 | errmsg_printf(ERRMSG_LVL_ERROR, _("Invalid value for open-files\n")); | ||
1563 | 2063 | exit(-1); | ||
1564 | 2064 | } | ||
1565 | 2065 | } | ||
1566 | 2066 | |||
1567 | 2067 | if (vm.count("thread-concurrency")) | ||
1568 | 2068 | { | ||
1569 | 2069 | if (srv_thread_concurrency > 1000) | ||
1570 | 2070 | { | ||
1571 | 2071 | errmsg_printf(ERRMSG_LVL_ERROR, _("Invalid value for thread-concurrency\n")); | ||
1572 | 2072 | exit(-1); | ||
1573 | 2073 | } | ||
1574 | 2074 | } | ||
1575 | 2075 | |||
1576 | 2076 | if (vm.count("data-file-path")) | ||
1577 | 2077 | { | ||
1578 | 2078 | innobase_data_file_path= const_cast<char *>(vm["data-file-path"].as<string>().c_str()); | ||
1579 | 2079 | } | ||
1580 | 2080 | else | ||
1581 | 2081 | { | ||
1582 | 2082 | innobase_data_file_path= NULL; | ||
1583 | 2083 | } | ||
1584 | 2084 | |||
1585 | 2085 | if (vm.count("version")) | ||
1586 | 2086 | { | ||
1587 | 2087 | innodb_version_str= const_cast<char *>(vm["version"].as<string>().c_str()); | ||
1588 | 2088 | } | ||
1589 | 2089 | |||
1590 | 2090 | if (vm.count("read-ahead-threshold")) | ||
1591 | 2091 | { | ||
1592 | 2092 | if (srv_read_ahead_threshold > 64) | ||
1593 | 2093 | { | ||
1594 | 2094 | errmsg_printf(ERRMSG_LVL_ERROR, _("Invalid value for read-ahead-threshold\n")); | ||
1595 | 2095 | exit(-1); | ||
1596 | 2096 | } | ||
1597 | 2097 | } | ||
1598 | 2098 | |||
1599 | 2099 | if (vm.count("support-xa")) | ||
1600 | 2100 | { | ||
1601 | 2101 | (SessionVAR(NULL,support_xa))= vm["support-xa"].as<bool>(); | ||
1602 | 2102 | } | ||
1603 | 2103 | |||
1604 | 2104 | if (vm.count("table-locks")) | ||
1605 | 2105 | { | ||
1606 | 2106 | (SessionVAR(NULL,table_locks))= vm["table-locks"].as<bool>(); | ||
1607 | 2107 | } | ||
1608 | 2108 | |||
1609 | 2109 | if (vm.count("strict-mode")) | ||
1610 | 2110 | { | ||
1611 | 2111 | (SessionVAR(NULL,strict_mode))= vm["strict-mode"].as<bool>(); | ||
1612 | 2112 | } | ||
1613 | 2113 | |||
1614 | 2114 | if (vm.count("lock-wait-timeout")) | ||
1615 | 2115 | { | ||
1616 | 2116 | if (vm["lock-wait-timeout"].as<unsigned long>() < 1 || vm["lock-wait-timeout"].as<unsigned long>() > 1024*1024*1024) | ||
1617 | 2117 | { | ||
1618 | 2118 | errmsg_printf(ERRMSG_LVL_ERROR, _("Invalid value for lock-wait-timeout\n")); | ||
1619 | 2119 | exit(-1); | ||
1620 | 2120 | } | ||
1621 | 2121 | |||
1622 | 2122 | (SessionVAR(NULL,lock_wait_timeout))= vm["lock-wait-timeout"].as<unsigned long>(); | ||
1623 | 2123 | } | ||
1624 | 1833 | 2124 | ||
1625 | 1834 | innodb_engine_ptr= actuall_engine_ptr= new InnobaseEngine(innobase_engine_name); | 2125 | innodb_engine_ptr= actuall_engine_ptr= new InnobaseEngine(innobase_engine_name); |
1626 | 1835 | 2126 | ||
1627 | @@ -1930,7 +2221,12 @@ | |||
1628 | 1930 | 2221 | ||
1629 | 1931 | /* The default dir for log files is the datadir of MySQL */ | 2222 | /* The default dir for log files is the datadir of MySQL */ |
1630 | 1932 | 2223 | ||
1632 | 1933 | if (!innobase_log_group_home_dir) { | 2224 | if (vm.count("log-group-home-dir")) |
1633 | 2225 | { | ||
1634 | 2226 | innobase_log_group_home_dir= const_cast<char *>(vm["log-group-home-dir"].as<string>().c_str()); | ||
1635 | 2227 | } | ||
1636 | 2228 | else | ||
1637 | 2229 | { | ||
1638 | 1934 | innobase_log_group_home_dir = default_path; | 2230 | innobase_log_group_home_dir = default_path; |
1639 | 1935 | } | 2231 | } |
1640 | 1936 | 2232 | ||
1641 | @@ -1954,11 +2250,12 @@ | |||
1642 | 1954 | goto mem_free_and_error; | 2250 | goto mem_free_and_error; |
1643 | 1955 | } | 2251 | } |
1644 | 1956 | 2252 | ||
1645 | 2253 | |||
1646 | 1957 | /* Validate the file format by animal name */ | 2254 | /* Validate the file format by animal name */ |
1649 | 1958 | if (innobase_file_format_name != NULL) { | 2255 | if (vm.count("file-format")) |
1650 | 1959 | 2256 | { | |
1651 | 1960 | format_id = innobase_file_format_name_lookup( | 2257 | format_id = innobase_file_format_name_lookup( |
1653 | 1961 | innobase_file_format_name); | 2258 | vm["file-format"].as<string>().c_str()); |
1654 | 1962 | 2259 | ||
1655 | 1963 | if (format_id > DICT_TF_FORMAT_MAX) { | 2260 | if (format_id > DICT_TF_FORMAT_MAX) { |
1656 | 1964 | 2261 | ||
1657 | @@ -1967,8 +2264,7 @@ | |||
1658 | 1967 | goto mem_free_and_error; | 2264 | goto mem_free_and_error; |
1659 | 1968 | } | 2265 | } |
1660 | 1969 | } else { | 2266 | } else { |
1663 | 1970 | /* Set it to the default file format id. Though this | 2267 | /* Set it to the default file format id.*/ |
1662 | 1971 | should never happen. */ | ||
1664 | 1972 | format_id = 0; | 2268 | format_id = 0; |
1665 | 1973 | } | 2269 | } |
1666 | 1974 | 2270 | ||
1667 | @@ -2007,14 +2303,15 @@ | |||
1668 | 2007 | } | 2303 | } |
1669 | 2008 | } | 2304 | } |
1670 | 2009 | 2305 | ||
1672 | 2010 | if (innobase_change_buffering) { | 2306 | if (vm.count("change-buffering")) |
1673 | 2307 | { | ||
1674 | 2011 | ulint use; | 2308 | ulint use; |
1675 | 2012 | 2309 | ||
1676 | 2013 | for (use = 0; | 2310 | for (use = 0; |
1677 | 2014 | use < UT_ARR_SIZE(innobase_change_buffering_values); | 2311 | use < UT_ARR_SIZE(innobase_change_buffering_values); |
1678 | 2015 | use++) { | 2312 | use++) { |
1679 | 2016 | if (!innobase_strcasecmp( | 2313 | if (!innobase_strcasecmp( |
1681 | 2017 | innobase_change_buffering, | 2314 | vm["change-buffering"].as<string>().c_str(), |
1682 | 2018 | innobase_change_buffering_values[use])) { | 2315 | innobase_change_buffering_values[use])) { |
1683 | 2019 | ibuf_use = (ibuf_use_t) use; | 2316 | ibuf_use = (ibuf_use_t) use; |
1684 | 2020 | goto innobase_change_buffering_inited_ok; | 2317 | goto innobase_change_buffering_inited_ok; |
1685 | @@ -2024,7 +2321,7 @@ | |||
1686 | 2024 | errmsg_printf(ERRMSG_LVL_ERROR, | 2321 | errmsg_printf(ERRMSG_LVL_ERROR, |
1687 | 2025 | "InnoDB: invalid value " | 2322 | "InnoDB: invalid value " |
1688 | 2026 | "innodb_file_format_check=%s", | 2323 | "innodb_file_format_check=%s", |
1690 | 2027 | innobase_change_buffering); | 2324 | vm["change-buffering"].as<string>().c_str()); |
1691 | 2028 | goto mem_free_and_error; | 2325 | goto mem_free_and_error; |
1692 | 2029 | } | 2326 | } |
1693 | 2030 | 2327 | ||
1694 | @@ -8352,8 +8649,7 @@ | |||
1695 | 8352 | /* plugin options */ | 8649 | /* plugin options */ |
1696 | 8353 | static DRIZZLE_SYSVAR_BOOL(checksums, innobase_use_checksums, | 8650 | static DRIZZLE_SYSVAR_BOOL(checksums, innobase_use_checksums, |
1697 | 8354 | PLUGIN_VAR_NOCMDARG | PLUGIN_VAR_READONLY, | 8651 | PLUGIN_VAR_NOCMDARG | PLUGIN_VAR_READONLY, |
1700 | 8355 | "Enable InnoDB checksums validation (enabled by default). " | 8652 | "Enable InnoDB checksums validation (enabled by default). ", |
1699 | 8356 | "Disable with --skip-innodb-checksums.", | ||
1701 | 8357 | NULL, NULL, TRUE); | 8653 | NULL, NULL, TRUE); |
1702 | 8358 | 8654 | ||
1703 | 8359 | static DRIZZLE_SYSVAR_STR(data_home_dir, innobase_data_home_dir, | 8655 | static DRIZZLE_SYSVAR_STR(data_home_dir, innobase_data_home_dir, |
1704 | @@ -8363,8 +8659,7 @@ | |||
1705 | 8363 | 8659 | ||
1706 | 8364 | static DRIZZLE_SYSVAR_BOOL(doublewrite, innobase_use_doublewrite, | 8660 | static DRIZZLE_SYSVAR_BOOL(doublewrite, innobase_use_doublewrite, |
1707 | 8365 | PLUGIN_VAR_NOCMDARG | PLUGIN_VAR_READONLY, | 8661 | PLUGIN_VAR_NOCMDARG | PLUGIN_VAR_READONLY, |
1710 | 8366 | "Enable InnoDB doublewrite buffer (enabled by default). " | 8662 | "Enable InnoDB doublewrite buffer (enabled by default). ", |
1709 | 8367 | "Disable with --skip-innodb-doublewrite.", | ||
1711 | 8368 | NULL, NULL, TRUE); | 8663 | NULL, NULL, TRUE); |
1712 | 8369 | 8664 | ||
1713 | 8370 | static DRIZZLE_SYSVAR_ULONG(io_capacity, srv_io_capacity, | 8665 | static DRIZZLE_SYSVAR_ULONG(io_capacity, srv_io_capacity, |
1714 | @@ -8455,8 +8750,7 @@ | |||
1715 | 8455 | 8750 | ||
1716 | 8456 | static DRIZZLE_SYSVAR_BOOL(adaptive_hash_index, btr_search_enabled, | 8751 | static DRIZZLE_SYSVAR_BOOL(adaptive_hash_index, btr_search_enabled, |
1717 | 8457 | PLUGIN_VAR_OPCMDARG, | 8752 | PLUGIN_VAR_OPCMDARG, |
1720 | 8458 | "Enable InnoDB adaptive hash index (enabled by default). " | 8753 | "Enable InnoDB adaptive hash index (enabled by default).", |
1719 | 8459 | "Disable with --skip-innodb-adaptive-hash-index.", | ||
1721 | 8460 | NULL, innodb_adaptive_hash_index_update, TRUE); | 8754 | NULL, innodb_adaptive_hash_index_update, TRUE); |
1722 | 8461 | 8755 | ||
1723 | 8462 | static DRIZZLE_SYSVAR_ULONG(replication_delay, srv_replication_delay, | 8756 | static DRIZZLE_SYSVAR_ULONG(replication_delay, srv_replication_delay, |
1724 | @@ -8582,6 +8876,156 @@ | |||
1725 | 8582 | "trigger a readahead.", | 8876 | "trigger a readahead.", |
1726 | 8583 | NULL, NULL, 56, 0, 64, 0); | 8877 | NULL, NULL, 56, 0, 64, 0); |
1727 | 8584 | 8878 | ||
1728 | 8879 | static void init_options(drizzled::module::option_context &context) | ||
1729 | 8880 | { | ||
1730 | 8881 | context("checksums", | ||
1731 | 8882 | po::value<bool>(&innobase_use_checksums)->default_value(true)->zero_tokens(), | ||
1732 | 8883 | "Enable InnoDB checksums validation."); | ||
1733 | 8884 | context("data-home-dir", | ||
1734 | 8885 | po::value<string>(), | ||
1735 | 8886 | "The common part for InnoDB table spaces."); | ||
1736 | 8887 | context("doublewrite", | ||
1737 | 8888 | po::value<bool>(&innobase_use_doublewrite)->default_value(true)->zero_tokens(), | ||
1738 | 8889 | "Enable InnoDB doublewrite buffer."); | ||
1739 | 8890 | context("io-capacity", | ||
1740 | 8891 | po::value<unsigned long>(&srv_io_capacity)->default_value(200), | ||
1741 | 8892 | "Number of IOPs the server can do. Tunes the background IO rate"); | ||
1742 | 8893 | context("fast-shutdown", | ||
1743 | 8894 | po::value<unsigned long>(&innobase_fast_shutdown)->default_value(1), | ||
1744 | 8895 | "Speeds up the shutdown process of the InnoDB storage engine. Possible values are 0, 1 (faster) or 2 (fastest - crash-like)."); | ||
1745 | 8896 | context("file-per-table", | ||
1746 | 8897 | po::value<bool>(&srv_file_per_table)->default_value(false)->zero_tokens(), | ||
1747 | 8898 | "Stores each InnoDB table to an .ibd file in the database dir."); | ||
1748 | 8899 | context("file-format", | ||
1749 | 8900 | po::value<string>()->default_value("Antelope"), | ||
1750 | 8901 | "File format to use for new tables in .ibd files."); | ||
1751 | 8902 | context("file-format-check", | ||
1752 | 8903 | po::value<string>()->default_value("on"), | ||
1753 | 8904 | "The highest file format in the tablespace."); | ||
1754 | 8905 | context("flush-log-at-trx-commit", | ||
1755 | 8906 | po::value<unsigned long>(&srv_flush_log_at_trx_commit)->default_value(1), | ||
1756 | 8907 | "Set to 0 (write and flush once per second), 1 (write and flush at each commit) or 2 (write at commit, flush once per second)."); | ||
1757 | 8908 | context("flush-method", | ||
1758 | 8909 | po::value<string>(), | ||
1759 | 8910 | "With which method to flush data."); | ||
1760 | 8911 | #ifdef UNIV_LOG_ARCHIVE | ||
1761 | 8912 | context("log-arch-dir", | ||
1762 | 8913 | po::value<string>(), | ||
1763 | 8914 | "Where full logs should be archived."); | ||
1764 | 8915 | context("log-archive", | ||
1765 | 8916 | po::value<bool>(&innobase_log_archive)->default_value(false)->zero_tokens(), | ||
1766 | 8917 | "Set to 1 if you want to have logs archived."); | ||
1767 | 8918 | #endif /* UNIV_LOG_ARCHIVE */ | ||
1768 | 8919 | context("log-group-home-dir", | ||
1769 | 8920 | po::value<string>(), | ||
1770 | 8921 | "Path to InnoDB log files."); | ||
1771 | 8922 | context("max-dirty-pages-pct", | ||
1772 | 8923 | po::value<unsigned long>(&srv_max_buf_pool_modified_pct)->default_value(75), | ||
1773 | 8924 | "Percentage of dirty pages allowed in bufferpool."); | ||
1774 | 8925 | context("adaptive-flushing", | ||
1775 | 8926 | po::value<bool>(&srv_adaptive_flushing)->default_value(true)->zero_tokens(), | ||
1776 | 8927 | "Attempt flushing dirty pages to avoid IO bursts at checkpoints."); | ||
1777 | 8928 | context("max-purge-lag", | ||
1778 | 8929 | po::value<unsigned long>(&srv_max_purge_lag)->default_value(0), | ||
1779 | 8930 | "Desired maximum length of the purge queue (0 = no limit)"); | ||
1780 | 8931 | context("status-file", | ||
1781 | 8932 | po::value<bool>(&innobase_create_status_file)->default_value(false)->zero_tokens(), | ||
1782 | 8933 | "Enable SHOW INNODB STATUS output in the innodb_status.<pid> file"); | ||
1783 | 8934 | context("stats-on-metadata", | ||
1784 | 8935 | po::value<bool>(&innobase_stats_on_metadata)->default_value(true)->zero_tokens(), | ||
1785 | 8936 | "Enable statistics gathering for metadata commands such as SHOW TABLE STATUS (on by default)"); | ||
1786 | 8937 | context("stats-sample-pages", | ||
1787 | 8938 | po::value<uint64_t>(&srv_stats_sample_pages)->default_value(8), | ||
1788 | 8939 | "The number of index pages to sample when calculating statistics (default 8)"); | ||
1789 | 8940 | context("adaptive-hash-index", | ||
1790 | 8941 | po::value<bool>(&btr_search_enabled)->default_value(true)->zero_tokens(), | ||
1791 | 8942 | "Enable InnoDB adaptive hash index (enabled by default)"); | ||
1792 | 8943 | context("replication-delay", | ||
1793 | 8944 | po::value<unsigned long>(&srv_replication_delay)->default_value(0), | ||
1794 | 8945 | "Replication thread delay (ms) on the slave server if innodb_thread_concurrency is reached (0 by default)"); | ||
1795 | 8946 | context("additional-mem-pool-size", | ||
1796 | 8947 | po::value<long>(&innobase_additional_mem_pool_size)->default_value(8*1024*1024L), | ||
1797 | 8948 | "Size of a memory pool InnoDB uses to store data dictionary information and other internal data structures."); | ||
1798 | 8949 | context("autoextend-increment", | ||
1799 | 8950 | po::value<uint32_t>(&srv_auto_extend_increment)->default_value(8L), | ||
1800 | 8951 | "Data file autoextend increment in megabytes"); | ||
1801 | 8952 | context("buffer-pool-size", | ||
1802 | 8953 | po::value<int64_t>(&innobase_buffer_pool_size)->default_value(128*1024*1024L), | ||
1803 | 8954 | "The size of the memory buffer InnoDB uses to cache data and indexes of its tables."); | ||
1804 | 8955 | context("commit-concurrency", | ||
1805 | 8956 | po::value<unsigned long>(&innobase_commit_concurrency)->default_value(0), | ||
1806 | 8957 | "Helps in performance tuning in heavily concurrent environments."); | ||
1807 | 8958 | context("concurrency-tickets", | ||
1808 | 8959 | po::value<unsigned long>(&srv_n_free_tickets_to_enter)->default_value(500L), | ||
1809 | 8960 | "Number of times a thread is allowed to enter InnoDB within the same SQL query after it has once got the ticket"); | ||
1810 | 8961 | context("file-io-threads", | ||
1811 | 8962 | po::value<long>(&innobase_file_io_threads)->default_value(4), | ||
1812 | 8963 | "Number of file I/O threads in InnoDB."); | ||
1813 | 8964 | context("read-io-threads", | ||
1814 | 8965 | po::value<unsigned long>(&innobase_read_io_threads)->default_value(4), | ||
1815 | 8966 | "Number of background read I/O threads in InnoDB."); | ||
1816 | 8967 | context("write-io-threads", | ||
1817 | 8968 | po::value<unsigned long>(&innobase_write_io_threads)->default_value(4), | ||
1818 | 8969 | "Number of background write I/O threads in InnoDB."); | ||
1819 | 8970 | context("force-recovery", | ||
1820 | 8971 | po::value<long>(&innobase_force_recovery)->default_value(0), | ||
1821 | 8972 | "Helps to save your data in case the disk image of the database becomes corrupt."); | ||
1822 | 8973 | context("log-buffer-size", | ||
1823 | 8974 | po::value<long>(&innobase_log_buffer_size)->default_value(8*1024*1024L), | ||
1824 | 8975 | "The size of the buffer which InnoDB uses to write log to the log files on disk."); | ||
1825 | 8976 | context("log-file-size", | ||
1826 | 8977 | po::value<int64_t>(&innobase_log_file_size)->default_value(20*1024*1024L), | ||
1827 | 8978 | "The size of the buffer which InnoDB uses to write log to the log files on disk."); | ||
1828 | 8979 | context("log-files-in-group", | ||
1829 | 8980 | po::value<long>(&innobase_log_files_in_group)->default_value(2), | ||
1830 | 8981 | "Number of log files in the log group. InnoDB writes to the files in a circular fashion."); | ||
1831 | 8982 | context("mirrored-log-groups", | ||
1832 | 8983 | po::value<long>(&innobase_mirrored_log_groups)->default_value(1), | ||
1833 | 8984 | "Number of identical copies of log groups we keep for the database. Currently this should be set to 1."); | ||
1834 | 8985 | context("open-files", | ||
1835 | 8986 | po::value<long>(&innobase_open_files)->default_value(300L), | ||
1836 | 8987 | "How many files at the maximum InnoDB keeps open at the same time."); | ||
1837 | 8988 | context("sync-spin-loops", | ||
1838 | 8989 | po::value<unsigned long>(&srv_n_spin_wait_rounds)->default_value(30L), | ||
1839 | 8990 | "Count of spin-loop rounds in InnoDB mutexes (30 by default)"); | ||
1840 | 8991 | context("spin-wait-delay", | ||
1841 | 8992 | po::value<unsigned long>(&srv_spin_wait_delay)->default_value(6L), | ||
1842 | 8993 | "Maximum delay between polling for a spin lock (6 by default)"); | ||
1843 | 8994 | context("thread-concurrency", | ||
1844 | 8995 | po::value<unsigned long>(&srv_thread_concurrency)->default_value(0), | ||
1845 | 8996 | "Helps in performance tuning in heavily concurrent environments. Sets the maximum number of threads allowed inside InnoDB. Value 0 will disable the thread throttling."); | ||
1846 | 8997 | context("thread-sleep-delay", | ||
1847 | 8998 | po::value<unsigned long>(&srv_thread_sleep_delay)->default_value(10000L), | ||
1848 | 8999 | "Time of innodb thread sleeping before joining InnoDB queue (usec). Value 0 disable a sleep"); | ||
1849 | 9000 | context("data-file-path", | ||
1850 | 9001 | po::value<string>(), | ||
1851 | 9002 | "Path to individual files and their sizes."); | ||
1852 | 9003 | context("version", | ||
1853 | 9004 | po::value<string>()->default_value(INNODB_VERSION_STR), | ||
1854 | 9005 | "InnoDB version"); | ||
1855 | 9006 | context("use-sys-malloc", | ||
1856 | 9007 | po::value<bool>(&srv_use_sys_malloc)->default_value(true)->zero_tokens(), | ||
1857 | 9008 | "Use OS memory allocator instead of InnoDB's internal memory allocator"); | ||
1858 | 9009 | context("change-buffering", | ||
1859 | 9010 | po::value<string>(), | ||
1860 | 9011 | "Buffer changes to reduce random access: OFF, ON, inserting, deleting, changing, or purging."); | ||
1861 | 9012 | context("read-ahead-threshold", | ||
1862 | 9013 | po::value<unsigned long>(&srv_read_ahead_threshold)->default_value(56), | ||
1863 | 9014 | "Number of pages that must be accessed sequentially for InnoDB to trigger a readahead."); | ||
1864 | 9015 | context("support-xa", | ||
1865 | 9016 | po::value<bool>()->default_value(true)->zero_tokens(), | ||
1866 | 9017 | "Enable InnoDB support for the XA two-phase commit"); | ||
1867 | 9018 | context("table-locks", | ||
1868 | 9019 | po::value<bool>()->default_value(true)->zero_tokens(), | ||
1869 | 9020 | "Enable InnoDB locking in LOCK TABLES"); | ||
1870 | 9021 | context("strict-mode", | ||
1871 | 9022 | po::value<bool>()->default_value(false)->zero_tokens(), | ||
1872 | 9023 | "Use strict mode when evaluating create options."); | ||
1873 | 9024 | context("lock-wait-timeout", | ||
1874 | 9025 | po::value<unsigned long>()->default_value(50), | ||
1875 | 9026 | "Timeout in seconds an InnoDB transaction may wait for a lock before being rolled back. Values above 100000000 disable the timeout."); | ||
1876 | 9027 | } | ||
1877 | 9028 | |||
1878 | 8585 | static drizzle_sys_var* innobase_system_variables[]= { | 9029 | static drizzle_sys_var* innobase_system_variables[]= { |
1879 | 8586 | DRIZZLE_SYSVAR(additional_mem_pool_size), | 9030 | DRIZZLE_SYSVAR(additional_mem_pool_size), |
1880 | 8587 | DRIZZLE_SYSVAR(autoextend_increment), | 9031 | DRIZZLE_SYSVAR(autoextend_increment), |
1881 | @@ -8646,7 +9090,7 @@ | |||
1882 | 8646 | PLUGIN_LICENSE_GPL, | 9090 | PLUGIN_LICENSE_GPL, |
1883 | 8647 | innobase_init, /* Plugin Init */ | 9091 | innobase_init, /* Plugin Init */ |
1884 | 8648 | innobase_system_variables, /* system variables */ | 9092 | innobase_system_variables, /* system variables */ |
1886 | 8649 | NULL /* reserved */ | 9093 | init_options /* reserved */ |
1887 | 8650 | } | 9094 | } |
1888 | 8651 | DRIZZLE_DECLARE_PLUGIN_END; | 9095 | DRIZZLE_DECLARE_PLUGIN_END; |
1889 | 8652 | 9096 | ||
1890 | 8653 | 9097 | ||
1891 | === added file 'plugin/innobase/tests/t/innodb_lock_waits-master.opt' | |||
1892 | --- plugin/innobase/tests/t/innodb_lock_waits-master.opt 1970-01-01 00:00:00 +0000 | |||
1893 | +++ plugin/innobase/tests/t/innodb_lock_waits-master.opt 2010-08-17 02:53:42 +0000 | |||
1894 | @@ -0,0 +1,1 @@ | |||
1895 | 1 | --innodb.lock-wait-timeout=5 | ||
1896 | 0 | 2 | ||
1897 | === modified file 'plugin/memcached_stats/memcached_stats.cc' | |||
1898 | --- plugin/memcached_stats/memcached_stats.cc 2010-07-18 05:16:33 +0000 | |||
1899 | +++ plugin/memcached_stats/memcached_stats.cc 2010-08-17 02:53:42 +0000 | |||
1900 | @@ -72,11 +72,12 @@ | |||
1901 | 72 | 72 | ||
1902 | 73 | else | 73 | else |
1903 | 74 | { | 74 | { |
1905 | 75 | sysvar_memcached_servers= ""; | 75 | sysvar_memcached_servers= strdup(""); |
1906 | 76 | } | 76 | } |
1907 | 77 | 77 | ||
1908 | 78 | SysvarHolder &sysvar_holder= SysvarHolder::singleton(); | 78 | SysvarHolder &sysvar_holder= SysvarHolder::singleton(); |
1909 | 79 | sysvar_holder.setServersString(sysvar_memcached_servers); | 79 | sysvar_holder.setServersString(sysvar_memcached_servers); |
1910 | 80 | sysvar_holder.setMemoryPtr(sysvar_memcached_servers); | ||
1911 | 80 | 81 | ||
1912 | 81 | /* we are good to go */ | 82 | /* we are good to go */ |
1913 | 82 | stats_table_tool= new(std::nothrow)StatsTableTool; | 83 | stats_table_tool= new(std::nothrow)StatsTableTool; |
1914 | 83 | 84 | ||
1915 | === modified file 'plugin/memcached_stats/sysvar_holder.h' | |||
1916 | --- plugin/memcached_stats/sysvar_holder.h 2009-12-21 10:13:31 +0000 | |||
1917 | +++ plugin/memcached_stats/sysvar_holder.h 2010-08-17 02:53:42 +0000 | |||
1918 | @@ -66,16 +66,23 @@ | |||
1919 | 66 | return servers_string; | 66 | return servers_string; |
1920 | 67 | } | 67 | } |
1921 | 68 | 68 | ||
1922 | 69 | void setMemoryPtr(void *mem_ptr_in) | ||
1923 | 70 | { | ||
1924 | 71 | memory_ptr= mem_ptr_in; | ||
1925 | 72 | } | ||
1926 | 73 | |||
1927 | 69 | private: | 74 | private: |
1928 | 70 | 75 | ||
1929 | 71 | pthread_mutex_t mutex; | 76 | pthread_mutex_t mutex; |
1930 | 72 | 77 | ||
1931 | 73 | std::string servers_string; | 78 | std::string servers_string; |
1932 | 79 | void *memory_ptr; | ||
1933 | 74 | 80 | ||
1934 | 75 | SysvarHolder() | 81 | SysvarHolder() |
1935 | 76 | : | 82 | : |
1936 | 77 | mutex(), | 83 | mutex(), |
1937 | 78 | servers_string() | 84 | servers_string() |
1938 | 85 | memory_ptr(NULL) | ||
1939 | 79 | { | 86 | { |
1940 | 80 | pthread_mutex_init(&mutex, NULL); | 87 | pthread_mutex_init(&mutex, NULL); |
1941 | 81 | } | 88 | } |
1942 | @@ -83,6 +90,7 @@ | |||
1943 | 83 | ~SysvarHolder() | 90 | ~SysvarHolder() |
1944 | 84 | { | 91 | { |
1945 | 85 | pthread_mutex_destroy(&mutex); | 92 | pthread_mutex_destroy(&mutex); |
1946 | 93 | free(memory_ptr); | ||
1947 | 86 | } | 94 | } |
1948 | 87 | 95 | ||
1949 | 88 | SysvarHolder(const SysvarHolder&); | 96 | SysvarHolder(const SysvarHolder&); |
1950 | 89 | 97 | ||
1951 | === modified file 'plugin/myisam/mi_key.cc' | |||
1952 | --- plugin/myisam/mi_key.cc 2010-02-04 08:14:46 +0000 | |||
1953 | +++ plugin/myisam/mi_key.cc 2010-08-17 02:53:42 +0000 | |||
1954 | @@ -23,6 +23,9 @@ | |||
1955 | 23 | #include <math.h> | 23 | #include <math.h> |
1956 | 24 | #include <cassert> | 24 | #include <cassert> |
1957 | 25 | 25 | ||
1958 | 26 | using namespace drizzled; | ||
1959 | 27 | using namespace std; | ||
1960 | 28 | |||
1961 | 26 | #define CHECK_KEYS /* Enable safety checks */ | 29 | #define CHECK_KEYS /* Enable safety checks */ |
1962 | 27 | 30 | ||
1963 | 28 | #define FIX_LENGTH(cs, pos, length, char_length) \ | 31 | #define FIX_LENGTH(cs, pos, length, char_length) \ |
1964 | 29 | 32 | ||
1965 | === modified file 'plugin/mysql_protocol/mysql_protocol.cc' | |||
1966 | --- plugin/mysql_protocol/mysql_protocol.cc 2010-07-06 12:47:40 +0000 | |||
1967 | +++ plugin/mysql_protocol/mysql_protocol.cc 2010-08-17 02:53:42 +0000 | |||
1968 | @@ -56,6 +56,12 @@ | |||
1969 | 56 | static const uint32_t random_max= 0x3FFFFFFF; | 56 | static const uint32_t random_max= 0x3FFFFFFF; |
1970 | 57 | static const double random_max_double= (double)0x3FFFFFFF; | 57 | static const double random_max_double= (double)0x3FFFFFFF; |
1971 | 58 | 58 | ||
1972 | 59 | ListenMySQLProtocol::~ListenMySQLProtocol() | ||
1973 | 60 | { | ||
1974 | 61 | /* This is strdup'd from the options */ | ||
1975 | 62 | free(bind_address); | ||
1976 | 63 | } | ||
1977 | 64 | |||
1978 | 59 | const char* ListenMySQLProtocol::getHost(void) const | 65 | const char* ListenMySQLProtocol::getHost(void) const |
1979 | 60 | { | 66 | { |
1980 | 61 | return bind_address; | 67 | return bind_address; |
1981 | 62 | 68 | ||
1982 | === modified file 'plugin/mysql_protocol/mysql_protocol.h' | |||
1983 | --- plugin/mysql_protocol/mysql_protocol.h 2010-03-18 18:08:25 +0000 | |||
1984 | +++ plugin/mysql_protocol/mysql_protocol.h 2010-08-17 02:53:42 +0000 | |||
1985 | @@ -35,6 +35,7 @@ | |||
1986 | 35 | drizzled::plugin::ListenTcp(name_arg), | 35 | drizzled::plugin::ListenTcp(name_arg), |
1987 | 36 | using_mysql41_protocol(using_mysql41_protocol_arg) | 36 | using_mysql41_protocol(using_mysql41_protocol_arg) |
1988 | 37 | { } | 37 | { } |
1989 | 38 | virtual ~ListenMySQLProtocol(); | ||
1990 | 38 | virtual const char* getHost(void) const; | 39 | virtual const char* getHost(void) const; |
1991 | 39 | virtual in_port_t getPort(void) const; | 40 | virtual in_port_t getPort(void) const; |
1992 | 40 | virtual drizzled::plugin::Client *getClient(int fd); | 41 | virtual drizzled::plugin::Client *getClient(int fd); |
1993 | 41 | 42 | ||
1994 | === modified file 'plugin/syslog/module.cc' | |||
1995 | --- plugin/syslog/module.cc 2010-08-04 08:10:51 +0000 | |||
1996 | +++ plugin/syslog/module.cc 2010-08-17 02:53:42 +0000 | |||
1997 | @@ -49,6 +49,7 @@ | |||
1998 | 49 | bool sysvar_errmsg_enable; | 49 | bool sysvar_errmsg_enable; |
1999 | 50 | char* sysvar_errmsg_priority; | 50 | char* sysvar_errmsg_priority; |
2000 | 51 | 51 | ||
2001 | 52 | |||
2002 | 52 | static int init(drizzled::module::Context &context) | 53 | static int init(drizzled::module::Context &context) |
2003 | 53 | { | 54 | { |
2004 | 54 | const module::option_map &vm= context.getOptions(); | 55 | const module::option_map &vm= context.getOptions(); |
2005 | @@ -82,42 +83,39 @@ | |||
2006 | 82 | 83 | ||
2007 | 83 | if (vm.count("ident")) | 84 | if (vm.count("ident")) |
2008 | 84 | { | 85 | { |
2010 | 85 | sysvar_ident= strdup(vm["ident"].as<string>().c_str()); | 86 | sysvar_ident= const_cast<char *>(vm["ident"].as<string>().c_str()); |
2011 | 86 | } | 87 | } |
2012 | 87 | |||
2013 | 88 | else | 88 | else |
2014 | 89 | { | 89 | { |
2016 | 90 | sysvar_ident= strdup("drizzled"); | 90 | sysvar_ident= const_cast<char *>("drizzled"); |
2017 | 91 | } | 91 | } |
2018 | 92 | 92 | ||
2019 | 93 | if (vm.count("facility")) | 93 | if (vm.count("facility")) |
2020 | 94 | { | 94 | { |
2022 | 95 | sysvar_facility= strdup(vm["facility"].as<string>().c_str()); | 95 | sysvar_facility= const_cast<char *>(vm["facility"].as<string>().c_str()); |
2023 | 96 | } | 96 | } |
2024 | 97 | |||
2025 | 98 | else | 97 | else |
2026 | 99 | { | 98 | { |
2028 | 100 | sysvar_facility= strdup("local0"); | 99 | sysvar_facility= const_cast<char *>("local0"); |
2029 | 101 | } | 100 | } |
2030 | 102 | 101 | ||
2031 | 103 | if (vm.count("logging-priority")) | 102 | if (vm.count("logging-priority")) |
2032 | 104 | { | 103 | { |
2034 | 105 | sysvar_logging_priority= strdup(vm["logging-priority"].as<string>().c_str()); | 104 | sysvar_logging_priority= const_cast<char *>(vm["logging-priority"].as<string>().c_str()); |
2035 | 106 | } | 105 | } |
2036 | 107 | |||
2037 | 108 | else | 106 | else |
2038 | 109 | { | 107 | { |
2040 | 110 | sysvar_logging_priority= strdup("info"); | 108 | sysvar_logging_priority= const_cast<char *>("info"); |
2041 | 111 | } | 109 | } |
2042 | 112 | 110 | ||
2043 | 113 | if (vm.count("errmsg-priority")) | 111 | if (vm.count("errmsg-priority")) |
2044 | 114 | { | 112 | { |
2046 | 115 | sysvar_errmsg_priority= strdup(vm["errmsg-priority"].as<string>().c_str()); | 113 | sysvar_errmsg_priority= const_cast<char *>(vm["errmsg-priority"].as<string>().c_str()); |
2047 | 116 | } | 114 | } |
2048 | 117 | 115 | ||
2049 | 118 | else | 116 | else |
2050 | 119 | { | 117 | { |
2052 | 120 | sysvar_errmsg_priority= strdup("warning"); | 118 | sysvar_errmsg_priority= const_cast<char *>("warning"); |
2053 | 121 | } | 119 | } |
2054 | 122 | 120 | ||
2055 | 123 | context.add(new Logging_syslog()); | 121 | context.add(new Logging_syslog()); |
2056 | 124 | 122 | ||
2057 | === modified file 'plugin/transaction_log/module.cc' | |||
2058 | --- plugin/transaction_log/module.cc 2010-08-06 07:51:36 +0000 | |||
2059 | +++ plugin/transaction_log/module.cc 2010-08-17 02:53:42 +0000 | |||
2060 | @@ -111,6 +111,19 @@ | |||
2061 | 111 | extern plugin::Create_function<PrintTransactionMessageFunction> *print_transaction_message_func_factory; | 111 | extern plugin::Create_function<PrintTransactionMessageFunction> *print_transaction_message_func_factory; |
2062 | 112 | extern plugin::Create_function<HexdumpTransactionMessageFunction> *hexdump_transaction_message_func_factory; | 112 | extern plugin::Create_function<HexdumpTransactionMessageFunction> *hexdump_transaction_message_func_factory; |
2063 | 113 | 113 | ||
2064 | 114 | TransactionLog::~TransactionLog() | ||
2065 | 115 | { | ||
2066 | 116 | /* Clear up any resources we've consumed */ | ||
2067 | 117 | if (log_file != -1) | ||
2068 | 118 | { | ||
2069 | 119 | (void) close(log_file); | ||
2070 | 120 | } | ||
2071 | 121 | |||
2072 | 122 | /* These get strdup'd below */ | ||
2073 | 123 | free(sysvar_transaction_log_file); | ||
2074 | 124 | free(sysvar_transaction_log_use_replicator); | ||
2075 | 125 | } | ||
2076 | 126 | |||
2077 | 114 | static int init(drizzled::module::Context &context) | 127 | static int init(drizzled::module::Context &context) |
2078 | 115 | { | 128 | { |
2079 | 116 | const module::option_map &vm= context.getOptions(); | 129 | const module::option_map &vm= context.getOptions(); |
2080 | 117 | 130 | ||
2081 | === modified file 'plugin/transaction_log/transaction_log.cc' | |||
2082 | --- plugin/transaction_log/transaction_log.cc 2010-03-31 19:04:12 +0000 | |||
2083 | +++ plugin/transaction_log/transaction_log.cc 2010-08-17 02:53:42 +0000 | |||
2084 | @@ -138,15 +138,6 @@ | |||
2085 | 138 | state= ONLINE; | 138 | state= ONLINE; |
2086 | 139 | } | 139 | } |
2087 | 140 | 140 | ||
2088 | 141 | TransactionLog::~TransactionLog() | ||
2089 | 142 | { | ||
2090 | 143 | /* Clear up any resources we've consumed */ | ||
2091 | 144 | if (log_file != -1) | ||
2092 | 145 | { | ||
2093 | 146 | (void) close(log_file); | ||
2094 | 147 | } | ||
2095 | 148 | } | ||
2096 | 149 | |||
2097 | 150 | uint8_t *TransactionLog::packTransactionIntoLogEntry(const message::Transaction &trx, | 141 | uint8_t *TransactionLog::packTransactionIntoLogEntry(const message::Transaction &trx, |
2098 | 151 | uint8_t *buffer, | 142 | uint8_t *buffer, |
2099 | 152 | uint32_t *checksum_out) | 143 | uint32_t *checksum_out) |
2100 | 153 | 144 | ||
2101 | === modified file 'po/POTFILES.in' | |||
2102 | --- po/POTFILES.in 2010-07-27 00:41:57 +0000 | |||
2103 | +++ po/POTFILES.in 2010-08-17 02:53:42 +0000 | |||
2104 | @@ -66,6 +66,7 @@ | |||
2105 | 66 | plugin/filtered_replicator/filtered_replicator.cc | 66 | plugin/filtered_replicator/filtered_replicator.cc |
2106 | 67 | plugin/hello_events/hello_events.cc | 67 | plugin/hello_events/hello_events.cc |
2107 | 68 | plugin/innobase/handler/data_dictionary.cc | 68 | plugin/innobase/handler/data_dictionary.cc |
2108 | 69 | plugin/innobase/handler/ha_innodb.cc | ||
2109 | 69 | plugin/innobase/ut/ut0auxconf_pause.c | 70 | plugin/innobase/ut/ut0auxconf_pause.c |
2110 | 70 | plugin/logging_gearman/logging_gearman.cc | 71 | plugin/logging_gearman/logging_gearman.cc |
2111 | 71 | plugin/logging_query/logging_query.cc | 72 | plugin/logging_query/logging_query.cc |
2112 | 72 | 73 | ||
2113 | === modified file 'support-files/drizzle.spec.in' | |||
2114 | --- support-files/drizzle.spec.in 2010-06-24 03:15:21 +0000 | |||
2115 | +++ support-files/drizzle.spec.in 2010-08-17 02:53:42 +0000 | |||
2116 | @@ -510,10 +510,14 @@ | |||
2117 | 510 | %{_libdir}/drizzle/libdefault_replicator_plugin.so | 510 | %{_libdir}/drizzle/libdefault_replicator_plugin.so |
2118 | 511 | %{_libdir}/drizzle/liberrmsg_stderr_plugin.la | 511 | %{_libdir}/drizzle/liberrmsg_stderr_plugin.la |
2119 | 512 | %{_libdir}/drizzle/liberrmsg_stderr_plugin.so | 512 | %{_libdir}/drizzle/liberrmsg_stderr_plugin.so |
2120 | 513 | %{_libdir}/drizzle/libfilesystem_engine_plugin.la | ||
2121 | 514 | %{_libdir}/drizzle/libfilesystem_engine_plugin.so | ||
2122 | 513 | %{_libdir}/drizzle/libfiltered_replicator_plugin.la | 515 | %{_libdir}/drizzle/libfiltered_replicator_plugin.la |
2123 | 514 | %{_libdir}/drizzle/libfiltered_replicator_plugin.so | 516 | %{_libdir}/drizzle/libfiltered_replicator_plugin.so |
2124 | 515 | %{_libdir}/drizzle/libhello_world_plugin.la | 517 | %{_libdir}/drizzle/libhello_world_plugin.la |
2125 | 516 | %{_libdir}/drizzle/libhello_world_plugin.so | 518 | %{_libdir}/drizzle/libhello_world_plugin.so |
2126 | 519 | %{_libdir}/drizzle/libinnobase_plugin.la | ||
2127 | 520 | %{_libdir}/drizzle/libinnobase_plugin.so | ||
2128 | 517 | %{_libdir}/drizzle/libinfo_schema_plugin.la | 521 | %{_libdir}/drizzle/libinfo_schema_plugin.la |
2129 | 518 | %{_libdir}/drizzle/libinfo_schema_plugin.so | 522 | %{_libdir}/drizzle/libinfo_schema_plugin.so |
2130 | 519 | %{_libdir}/drizzle/libinformation_engine_plugin.la | 523 | %{_libdir}/drizzle/libinformation_engine_plugin.la |
2131 | 520 | 524 | ||
2132 | === modified file 'tests/t/unsafe_binlog_innodb-master.opt' | |||
2133 | --- tests/t/unsafe_binlog_innodb-master.opt 2010-03-15 16:12:10 +0000 | |||
2134 | +++ tests/t/unsafe_binlog_innodb-master.opt 2010-08-17 02:53:42 +0000 | |||
2135 | @@ -1,1 +1,1 @@ | |||
2137 | 1 | --innodb_lock_wait_timeout=1 | 1 | --innodb.lock-wait-timeout=1 |
2138 | 2 | 2 | ||
2139 | === modified file 'tests/test-run.pl' | |||
2140 | --- tests/test-run.pl 2010-08-10 18:09:11 +0000 | |||
2141 | +++ tests/test-run.pl 2010-08-17 02:53:42 +0000 | |||
2142 | @@ -2580,9 +2580,7 @@ | |||
2143 | 2580 | $idx > 0 ? $idx + 101 : 1); | 2580 | $idx > 0 ? $idx + 101 : 1); |
2144 | 2581 | 2581 | ||
2145 | 2582 | mtr_add_arg($args, | 2582 | mtr_add_arg($args, |
2149 | 2583 | "%s--loose-innodb_data_file_path=ibdata1:20M:autoextend", $prefix); | 2583 | "%s--innodb.data-file-path=ibdata1:20M:autoextend", $prefix); |
2147 | 2584 | |||
2148 | 2585 | mtr_add_arg($args, "%s--loose-innodb-lock-wait-timeout=5", $prefix); | ||
2150 | 2586 | 2584 | ||
2151 | 2587 | } | 2585 | } |
2152 | 2588 | else | 2586 | else |
2153 | 2589 | 2587 | ||
2154 | === modified file 'tests/valgrind.supp' | |||
2155 | --- tests/valgrind.supp 2010-07-30 17:38:08 +0000 | |||
2156 | +++ tests/valgrind.supp 2010-08-17 02:53:42 +0000 | |||
2157 | @@ -29,6 +29,64 @@ | |||
2158 | 29 | ... | 29 | ... |
2159 | 30 | } | 30 | } |
2160 | 31 | 31 | ||
2161 | 32 | { | ||
2162 | 33 | dlpreload memory leak | ||
2163 | 34 | Memcheck:Leak | ||
2164 | 35 | ... | ||
2165 | 36 | fun:do_preload | ||
2166 | 37 | fun:dl_main | ||
2167 | 38 | ... | ||
2168 | 39 | } | ||
2169 | 40 | |||
2170 | 41 | { | ||
2171 | 42 | dl_main issue | ||
2172 | 43 | Memcheck:Cond | ||
2173 | 44 | ... | ||
2174 | 45 | fun:dl_main | ||
2175 | 46 | ... | ||
2176 | 47 | } | ||
2177 | 48 | |||
2178 | 49 | # Masking an issue in system tzset call | ||
2179 | 50 | { | ||
2180 | 51 | tzset() on debian reports issues | ||
2181 | 52 | Memcheck:Cond | ||
2182 | 53 | ... | ||
2183 | 54 | fun:tzset | ||
2184 | 55 | fun:_ZN8drizzled21init_common_variablesEPKciPPcPS1_ | ||
2185 | 56 | ... | ||
2186 | 57 | } | ||
2187 | 58 | { | ||
2188 | 59 | tzset() on debian reports issues | ||
2189 | 60 | Memcheck:Addr8 | ||
2190 | 61 | ... | ||
2191 | 62 | fun:tzset | ||
2192 | 63 | fun:_ZN8drizzled21init_common_variablesEPKciPPcPS1_ | ||
2193 | 64 | ... | ||
2194 | 65 | } | ||
2195 | 66 | { | ||
2196 | 67 | tzset() on debian reports issues | ||
2197 | 68 | Memcheck:Addr4 | ||
2198 | 69 | ... | ||
2199 | 70 | fun:tzset | ||
2200 | 71 | fun:_ZN8drizzled21init_common_variablesEPKciPPcPS1_ | ||
2201 | 72 | ... | ||
2202 | 73 | } | ||
2203 | 74 | { | ||
2204 | 75 | tzset() on debian reports issues | ||
2205 | 76 | Memcheck:Addr8 | ||
2206 | 77 | ... | ||
2207 | 78 | fun:_ZN8drizzled21init_common_variablesEPKciPPcPS1_ | ||
2208 | 79 | fun:main | ||
2209 | 80 | } | ||
2210 | 81 | { | ||
2211 | 82 | tzset() on debian reports issues | ||
2212 | 83 | Memcheck:Addr4 | ||
2213 | 84 | ... | ||
2214 | 85 | fun:_ZN8drizzled21init_common_variablesEPKciPPcPS1_ | ||
2215 | 86 | fun:main | ||
2216 | 87 | } | ||
2217 | 88 | |||
2218 | 89 | |||
2219 | 32 | 90 | ||
2220 | 33 | # Masking static allocation issues in InnoDB | 91 | # Masking static allocation issues in InnoDB |
2221 | 34 | { | 92 | { |
2222 | @@ -148,6 +206,24 @@ | |||
2223 | 148 | } | 206 | } |
2224 | 149 | 207 | ||
2225 | 150 | 208 | ||
2226 | 209 | { | ||
2227 | 210 | HailDB Inherited some issues from InnoDB | ||
2228 | 211 | Memcheck:Cond | ||
2229 | 212 | fun:rw_lock_x_lock_func | ||
2230 | 213 | ... | ||
2231 | 214 | fun:innobase_start_or_create | ||
2232 | 215 | fun:_ZL20embedded_innodb_initRN8drizzled6module7ContextE | ||
2233 | 216 | fun:_ZN8drizzled15plugin_finalizeERNS_6module8RegistryE | ||
2234 | 217 | fun:_ZN8drizzled22init_server_componentsERNS_6module8RegistryE | ||
2235 | 218 | fun:main | ||
2236 | 219 | } | ||
2237 | 220 | |||
2238 | 221 | { | ||
2239 | 222 | HailDB Inherited some issues from InnoDB | ||
2240 | 223 | Memcheck:Cond | ||
2241 | 224 | fun:rw_lock_x_lock_func | ||
2242 | 225 | ... | ||
2243 | 226 | } | ||
2244 | 151 | 227 | ||
2245 | 152 | 228 | ||
2246 | 153 | # Masking Leaks in System Libraries | 229 | # Masking Leaks in System Libraries |