Merge lp:~linuxjedi/drizzle/trunk-translation-bugs into lp:drizzle/7.0
- trunk-translation-bugs
- Merge into 7.0
Proposed by
Andrew Hutchings
Status: | Merged | ||||||||
---|---|---|---|---|---|---|---|---|---|
Approved by: | Brian Aker | ||||||||
Approved revision: | 2069 | ||||||||
Merged at revision: | 2071 | ||||||||
Proposed branch: | lp:~linuxjedi/drizzle/trunk-translation-bugs | ||||||||
Merge into: | lp:drizzle/7.0 | ||||||||
Diff against target: |
1369 lines (+300/-292) 18 files modified
client/drizzle.cc (+57/-57) client/drizzledump.cc (+56/-48) drizzled/drizzled.cc (+104/-104) drizzled/main.cc (+2/-2) plugin/logging_gearman/logging_gearman.cc (+2/-2) plugin/logging_query/logging_query.cc (+6/-6) plugin/logging_stats/logging_stats.cc (+4/-4) plugin/memcached_query_cache/memcached_qc.cc (+3/-3) plugin/memcached_stats/memcached_stats.cc (+1/-1) plugin/multi_thread/multi_thread.cc (+1/-1) plugin/myisam/ha_myisam.cc (+2/-2) plugin/mysql_protocol/mysql_protocol.cc (+9/-9) plugin/mysql_unix_socket_protocol/protocol.cc (+3/-3) plugin/pbms/src/parameters_ms.cc (+12/-12) plugin/rabbitmq/rabbitmq_log.cc (+8/-8) plugin/syslog/module.cc (+9/-9) plugin/transaction_log/module.cc (+7/-7) plugin/transaction_log/utilities/transaction_reader.cc (+14/-14) |
||||||||
To merge this branch: | bzr merge lp:~linuxjedi/drizzle/trunk-translation-bugs | ||||||||
Related bugs: |
|
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Drizzle Developers | Pending | ||
Review via email: mp+45747@code.launchpad.net |
Commit message
Description of the change
Fix intl domain
Add intl domain for drizzledump
Fix boost::
To post a comment you must log in.
Preview Diff
[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1 | === modified file 'client/drizzle.cc' | |||
2 | --- client/drizzle.cc 2011-01-04 22:06:30 +0000 | |||
3 | +++ client/drizzle.cc 2011-01-10 20:36:11 +0000 | |||
4 | @@ -1280,122 +1280,122 @@ | |||
5 | 1280 | # if defined(HAVE_LOCALE_H) | 1280 | # if defined(HAVE_LOCALE_H) |
6 | 1281 | setlocale(LC_ALL, ""); | 1281 | setlocale(LC_ALL, ""); |
7 | 1282 | # endif | 1282 | # endif |
10 | 1283 | bindtextdomain("drizzle", LOCALEDIR); | 1283 | bindtextdomain("drizzle7", LOCALEDIR); |
11 | 1284 | textdomain("drizzle"); | 1284 | textdomain("drizzle7"); |
12 | 1285 | #endif | 1285 | #endif |
13 | 1286 | 1286 | ||
15 | 1287 | po::options_description commandline_options(N_("Options used only in command line")); | 1287 | po::options_description commandline_options(_("Options used only in command line")); |
16 | 1288 | commandline_options.add_options() | 1288 | commandline_options.add_options() |
19 | 1289 | ("help,?",N_("Displays this help and exit.")) | 1289 | ("help,?",_("Displays this help and exit.")) |
20 | 1290 | ("batch,B",N_("Don't use history file. Disable interactive behavior. (Enables --silent)")) | 1290 | ("batch,B",_("Don't use history file. Disable interactive behavior. (Enables --silent)")) |
21 | 1291 | ("column-type-info", po::value<bool>(&column_types_flag)->default_value(false)->zero_tokens(), | 1291 | ("column-type-info", po::value<bool>(&column_types_flag)->default_value(false)->zero_tokens(), |
23 | 1292 | N_("Display column type information.")) | 1292 | _("Display column type information.")) |
24 | 1293 | ("comments,c", po::value<bool>(&preserve_comments)->default_value(false)->zero_tokens(), | 1293 | ("comments,c", po::value<bool>(&preserve_comments)->default_value(false)->zero_tokens(), |
26 | 1294 | N_("Preserve comments. Send comments to the server. The default is --skip-comments (discard comments), enable with --comments")) | 1294 | _("Preserve comments. Send comments to the server. The default is --skip-comments (discard comments), enable with --comments")) |
27 | 1295 | ("vertical,E", po::value<bool>(&vertical)->default_value(false)->zero_tokens(), | 1295 | ("vertical,E", po::value<bool>(&vertical)->default_value(false)->zero_tokens(), |
29 | 1296 | N_("Print the output of a query (rows) vertically.")) | 1296 | _("Print the output of a query (rows) vertically.")) |
30 | 1297 | ("force,f", po::value<bool>(&ignore_errors)->default_value(false)->zero_tokens(), | 1297 | ("force,f", po::value<bool>(&ignore_errors)->default_value(false)->zero_tokens(), |
32 | 1298 | N_("Continue even if we get an sql error.")) | 1298 | _("Continue even if we get an sql error.")) |
33 | 1299 | ("named-commands,G", po::value<bool>(&named_cmds)->default_value(false)->zero_tokens(), | 1299 | ("named-commands,G", po::value<bool>(&named_cmds)->default_value(false)->zero_tokens(), |
35 | 1300 | N_("Enable named commands. Named commands mean this program's internal commands; see drizzle> help . When enabled, the named commands can be used from any line of the query, otherwise only from the first line, before an enter.")) | 1300 | _("Enable named commands. Named commands mean this program's internal commands; see drizzle> help . When enabled, the named commands can be used from any line of the query, otherwise only from the first line, before an enter.")) |
36 | 1301 | ("no-beep,b", po::value<bool>(&opt_nobeep)->default_value(false)->zero_tokens(), | 1301 | ("no-beep,b", po::value<bool>(&opt_nobeep)->default_value(false)->zero_tokens(), |
40 | 1302 | N_("Turn off beep on error.")) | 1302 | _("Turn off beep on error.")) |
41 | 1303 | ("disable-line-numbers", N_("Do not write line numbers for errors.")) | 1303 | ("disable-line-numbers", _("Do not write line numbers for errors.")) |
42 | 1304 | ("disable-column-names", N_("Do not write column names in results.")) | 1304 | ("disable-column-names", _("Do not write column names in results.")) |
43 | 1305 | ("skip-column-names,N", | 1305 | ("skip-column-names,N", |
45 | 1306 | N_("Don't write column names in results. WARNING: -N is deprecated, use long version of this options instead.")) | 1306 | _("Don't write column names in results. WARNING: -N is deprecated, use long version of this options instead.")) |
46 | 1307 | ("set-variable,O", po::value<string>(), | 1307 | ("set-variable,O", po::value<string>(), |
48 | 1308 | N_("Change the value of a variable. Please note that this option is deprecated; you can set variables directly with --variable-name=value.")) | 1308 | _("Change the value of a variable. Please note that this option is deprecated; you can set variables directly with --variable-name=value.")) |
49 | 1309 | ("table,t", po::value<bool>(&output_tables)->default_value(false)->zero_tokens(), | 1309 | ("table,t", po::value<bool>(&output_tables)->default_value(false)->zero_tokens(), |
51 | 1310 | N_("Output in table format.")) | 1310 | _("Output in table format.")) |
52 | 1311 | ("safe-updates,U", po::value<bool>(&safe_updates)->default_value(false)->zero_tokens(), | 1311 | ("safe-updates,U", po::value<bool>(&safe_updates)->default_value(false)->zero_tokens(), |
54 | 1312 | N_("Only allow UPDATE and DELETE that uses keys.")) | 1312 | _("Only allow UPDATE and DELETE that uses keys.")) |
55 | 1313 | ("i-am-a-dummy,U", po::value<bool>(&safe_updates)->default_value(false)->zero_tokens(), | 1313 | ("i-am-a-dummy,U", po::value<bool>(&safe_updates)->default_value(false)->zero_tokens(), |
57 | 1314 | N_("Synonym for option --safe-updates, -U.")) | 1314 | _("Synonym for option --safe-updates, -U.")) |
58 | 1315 | ("verbose,v", po::value<string>(&opt_verbose)->default_value(""), | 1315 | ("verbose,v", po::value<string>(&opt_verbose)->default_value(""), |
61 | 1316 | N_("-v vvv implies that verbose= 3, Used to specify verbose")) | 1316 | _("-v vvv implies that verbose= 3, Used to specify verbose")) |
62 | 1317 | ("version,V", N_("Output version information and exit.")) | 1317 | ("version,V", _("Output version information and exit.")) |
63 | 1318 | ("secure-auth", po::value<bool>(&opt_secure_auth)->default_value(false)->zero_tokens(), | 1318 | ("secure-auth", po::value<bool>(&opt_secure_auth)->default_value(false)->zero_tokens(), |
65 | 1319 | N_("Refuse client connecting to server if it uses old (pre-4.1.1) protocol")) | 1319 | _("Refuse client connecting to server if it uses old (pre-4.1.1) protocol")) |
66 | 1320 | ("show-warnings", po::value<bool>(&show_warnings)->default_value(false)->zero_tokens(), | 1320 | ("show-warnings", po::value<bool>(&show_warnings)->default_value(false)->zero_tokens(), |
68 | 1321 | N_("Show warnings after every statement.")) | 1321 | _("Show warnings after every statement.")) |
69 | 1322 | ("show-progress-size", po::value<uint32_t>(&show_progress_size)->default_value(0), | 1322 | ("show-progress-size", po::value<uint32_t>(&show_progress_size)->default_value(0), |
71 | 1323 | N_("Number of lines before each import progress report.")) | 1323 | _("Number of lines before each import progress report.")) |
72 | 1324 | ("ping", po::value<bool>(&opt_ping)->default_value(false)->zero_tokens(), | 1324 | ("ping", po::value<bool>(&opt_ping)->default_value(false)->zero_tokens(), |
74 | 1325 | N_("Ping the server to check if it's alive.")) | 1325 | _("Ping the server to check if it's alive.")) |
75 | 1326 | ("no-defaults", po::value<bool>()->default_value(false)->zero_tokens(), | 1326 | ("no-defaults", po::value<bool>()->default_value(false)->zero_tokens(), |
77 | 1327 | N_("Configuration file defaults are not used if no-defaults is set")) | 1327 | _("Configuration file defaults are not used if no-defaults is set")) |
78 | 1328 | ; | 1328 | ; |
79 | 1329 | 1329 | ||
81 | 1330 | po::options_description drizzle_options(N_("Options specific to the drizzle client")); | 1330 | po::options_description drizzle_options(_("Options specific to the drizzle client")); |
82 | 1331 | drizzle_options.add_options() | 1331 | drizzle_options.add_options() |
83 | 1332 | ("disable-auto-rehash,A", | 1332 | ("disable-auto-rehash,A", |
85 | 1333 | N_("Disable automatic rehashing. One doesn't need to use 'rehash' to get table and field completion, but startup and reconnecting may take a longer time.")) | 1333 | _("Disable automatic rehashing. One doesn't need to use 'rehash' to get table and field completion, but startup and reconnecting may take a longer time.")) |
86 | 1334 | ("auto-vertical-output", po::value<bool>(&auto_vertical_output)->default_value(false)->zero_tokens(), | 1334 | ("auto-vertical-output", po::value<bool>(&auto_vertical_output)->default_value(false)->zero_tokens(), |
88 | 1335 | N_("Automatically switch to vertical output mode if the result is wider than the terminal width.")) | 1335 | _("Automatically switch to vertical output mode if the result is wider than the terminal width.")) |
89 | 1336 | ("database,D", po::value<string>(¤t_db)->default_value(""), | 1336 | ("database,D", po::value<string>(¤t_db)->default_value(""), |
91 | 1337 | N_("Database to use.")) | 1337 | _("Database to use.")) |
92 | 1338 | ("default-character-set",po::value<string>(), | 1338 | ("default-character-set",po::value<string>(), |
94 | 1339 | N_("(not used)")) | 1339 | _("(not used)")) |
95 | 1340 | ("delimiter", po::value<string>(&delimiter_str)->default_value(";"), | 1340 | ("delimiter", po::value<string>(&delimiter_str)->default_value(";"), |
97 | 1341 | N_("Delimiter to be used.")) | 1341 | _("Delimiter to be used.")) |
98 | 1342 | ("execute,e", po::value<string>(), | 1342 | ("execute,e", po::value<string>(), |
100 | 1343 | N_("Execute command and quit. (Disables --force and history file)")) | 1343 | _("Execute command and quit. (Disables --force and history file)")) |
101 | 1344 | ("local-infile", po::value<bool>(&opt_local_infile)->default_value(false)->zero_tokens(), | 1344 | ("local-infile", po::value<bool>(&opt_local_infile)->default_value(false)->zero_tokens(), |
103 | 1345 | N_("Enable LOAD DATA LOCAL INFILE.")) | 1345 | _("Enable LOAD DATA LOCAL INFILE.")) |
104 | 1346 | ("unbuffered,n", po::value<bool>(&unbuffered)->default_value(false)->zero_tokens(), | 1346 | ("unbuffered,n", po::value<bool>(&unbuffered)->default_value(false)->zero_tokens(), |
106 | 1347 | N_("Flush buffer after each query.")) | 1347 | _("Flush buffer after each query.")) |
107 | 1348 | ("sigint-ignore", po::value<bool>(&opt_sigint_ignore)->default_value(false)->zero_tokens(), | 1348 | ("sigint-ignore", po::value<bool>(&opt_sigint_ignore)->default_value(false)->zero_tokens(), |
109 | 1349 | N_("Ignore SIGINT (CTRL-C)")) | 1349 | _("Ignore SIGINT (CTRL-C)")) |
110 | 1350 | ("one-database,o", po::value<bool>(&one_database)->default_value(false)->zero_tokens(), | 1350 | ("one-database,o", po::value<bool>(&one_database)->default_value(false)->zero_tokens(), |
112 | 1351 | N_("Only update the default database. This is useful for skipping updates to other database in the update log.")) | 1351 | _("Only update the default database. This is useful for skipping updates to other database in the update log.")) |
113 | 1352 | ("pager", po::value<string>(), | 1352 | ("pager", po::value<string>(), |
115 | 1353 | N_("Pager to use to display results. If you don't supply an option the default pager is taken from your ENV variable PAGER. Valid pagers are less, more, cat [> filename], etc. See interactive help (\\h) also. This option does not work in batch mode. Disable with --disable-pager. This option is disabled by default.")) | 1353 | _("Pager to use to display results. If you don't supply an option the default pager is taken from your ENV variable PAGER. Valid pagers are less, more, cat [> filename], etc. See interactive help (\\h) also. This option does not work in batch mode. Disable with --disable-pager. This option is disabled by default.")) |
116 | 1354 | ("disable-pager", po::value<bool>(&opt_nopager)->default_value(false)->zero_tokens(), | 1354 | ("disable-pager", po::value<bool>(&opt_nopager)->default_value(false)->zero_tokens(), |
118 | 1355 | N_("Disable pager and print to stdout. See interactive help (\\h) also.")) | 1355 | _("Disable pager and print to stdout. See interactive help (\\h) also.")) |
119 | 1356 | ("prompt", po::value<string>(¤t_prompt)->default_value(""), | 1356 | ("prompt", po::value<string>(¤t_prompt)->default_value(""), |
121 | 1357 | N_("Set the drizzle prompt to this value.")) | 1357 | _("Set the drizzle prompt to this value.")) |
122 | 1358 | ("quick,q", po::value<bool>(&quick)->default_value(false)->zero_tokens(), | 1358 | ("quick,q", po::value<bool>(&quick)->default_value(false)->zero_tokens(), |
124 | 1359 | N_("Don't cache result, print it row by row. This may slow down the server if the output is suspended. Doesn't use history file.")) | 1359 | _("Don't cache result, print it row by row. This may slow down the server if the output is suspended. Doesn't use history file.")) |
125 | 1360 | ("raw,r", po::value<bool>(&opt_raw_data)->default_value(false)->zero_tokens(), | 1360 | ("raw,r", po::value<bool>(&opt_raw_data)->default_value(false)->zero_tokens(), |
128 | 1361 | N_("Write fields without conversion. Used with --batch.")) | 1361 | _("Write fields without conversion. Used with --batch.")) |
129 | 1362 | ("disable-reconnect", N_("Do not reconnect if the connection is lost.")) | 1362 | ("disable-reconnect", _("Do not reconnect if the connection is lost.")) |
130 | 1363 | ("shutdown", po::value<bool>()->zero_tokens(), | 1363 | ("shutdown", po::value<bool>()->zero_tokens(), |
133 | 1364 | N_("Shutdown the server")) | 1364 | _("Shutdown the server")) |
134 | 1365 | ("silent,s", N_("Be more silent. Print results with a tab as separator, each row on new line.")) | 1365 | ("silent,s", _("Be more silent. Print results with a tab as separator, each row on new line.")) |
135 | 1366 | ("tee", po::value<string>(), | 1366 | ("tee", po::value<string>(), |
137 | 1367 | N_("Append everything into outfile. See interactive help (\\h) also. Does not work in batch mode. Disable with --disable-tee. This option is disabled by default.")) | 1367 | _("Append everything into outfile. See interactive help (\\h) also. Does not work in batch mode. Disable with --disable-tee. This option is disabled by default.")) |
138 | 1368 | ("disable-tee", po::value<bool>()->default_value(false)->zero_tokens(), | 1368 | ("disable-tee", po::value<bool>()->default_value(false)->zero_tokens(), |
140 | 1369 | N_("Disable outfile. See interactive help (\\h) also.")) | 1369 | _("Disable outfile. See interactive help (\\h) also.")) |
141 | 1370 | ("connect-timeout", po::value<uint32_t>(&opt_connect_timeout)->default_value(0)->notifier(&check_timeout_value), | 1370 | ("connect-timeout", po::value<uint32_t>(&opt_connect_timeout)->default_value(0)->notifier(&check_timeout_value), |
143 | 1371 | N_("Number of seconds before connection timeout.")) | 1371 | _("Number of seconds before connection timeout.")) |
144 | 1372 | ("max-input-line", po::value<uint32_t>(&opt_max_input_line)->default_value(16*1024L*1024L)->notifier(&check_max_input_line), | 1372 | ("max-input-line", po::value<uint32_t>(&opt_max_input_line)->default_value(16*1024L*1024L)->notifier(&check_max_input_line), |
146 | 1373 | N_("Max length of input line")) | 1373 | _("Max length of input line")) |
147 | 1374 | ("select-limit", po::value<uint32_t>(&select_limit)->default_value(1000L), | 1374 | ("select-limit", po::value<uint32_t>(&select_limit)->default_value(1000L), |
149 | 1375 | N_("Automatic limit for SELECT when using --safe-updates")) | 1375 | _("Automatic limit for SELECT when using --safe-updates")) |
150 | 1376 | ("max-join-size", po::value<uint32_t>(&max_join_size)->default_value(1000000L), | 1376 | ("max-join-size", po::value<uint32_t>(&max_join_size)->default_value(1000000L), |
152 | 1377 | N_("Automatic limit for rows in a join when using --safe-updates")) | 1377 | _("Automatic limit for rows in a join when using --safe-updates")) |
153 | 1378 | ; | 1378 | ; |
154 | 1379 | 1379 | ||
156 | 1380 | po::options_description client_options(N_("Options specific to the client")); | 1380 | po::options_description client_options(_("Options specific to the client")); |
157 | 1381 | client_options.add_options() | 1381 | client_options.add_options() |
158 | 1382 | ("host,h", po::value<string>(¤t_host)->default_value("localhost"), | 1382 | ("host,h", po::value<string>(¤t_host)->default_value("localhost"), |
160 | 1383 | N_("Connect to host")) | 1383 | _("Connect to host")) |
161 | 1384 | ("password,P", po::value<string>(¤t_password)->default_value(PASSWORD_SENTINEL), | 1384 | ("password,P", po::value<string>(¤t_password)->default_value(PASSWORD_SENTINEL), |
163 | 1385 | N_("Password to use when connecting to server. If password is not given it's asked from the tty.")) | 1385 | _("Password to use when connecting to server. If password is not given it's asked from the tty.")) |
164 | 1386 | ("port,p", po::value<uint32_t>()->default_value(0), | 1386 | ("port,p", po::value<uint32_t>()->default_value(0), |
166 | 1387 | N_("Port number to use for connection or 0 for default to, in order of preference, drizzle.cnf, $DRIZZLE_TCP_PORT, built-in default")) | 1387 | _("Port number to use for connection or 0 for default to, in order of preference, drizzle.cnf, $DRIZZLE_TCP_PORT, built-in default")) |
167 | 1388 | #ifdef DRIZZLE_ADMIN_TOOL | 1388 | #ifdef DRIZZLE_ADMIN_TOOL |
168 | 1389 | ("user,u", po::value<string>(¤t_user)->default_value("root"), | 1389 | ("user,u", po::value<string>(¤t_user)->default_value("root"), |
169 | 1390 | #else | 1390 | #else |
170 | 1391 | ("user,u", po::value<string>(¤t_user)->default_value(""), | 1391 | ("user,u", po::value<string>(¤t_user)->default_value(""), |
171 | 1392 | #endif | 1392 | #endif |
173 | 1393 | N_("User for login if not current user.")) | 1393 | _("User for login if not current user.")) |
174 | 1394 | ("protocol",po::value<string>(&opt_protocol)->default_value("mysql"), | 1394 | ("protocol",po::value<string>(&opt_protocol)->default_value("mysql"), |
176 | 1395 | N_("The protocol of connection (mysql or drizzle).")) | 1395 | _("The protocol of connection (mysql or drizzle).")) |
177 | 1396 | ; | 1396 | ; |
178 | 1397 | 1397 | ||
180 | 1398 | po::options_description long_options(N_("Allowed Options")); | 1398 | po::options_description long_options(_("Allowed Options")); |
181 | 1399 | long_options.add(commandline_options).add(drizzle_options).add(client_options); | 1399 | long_options.add(commandline_options).add(drizzle_options).add(client_options); |
182 | 1400 | 1400 | ||
183 | 1401 | std::string system_config_dir_drizzle(SYSCONFDIR); | 1401 | std::string system_config_dir_drizzle(SYSCONFDIR); |
184 | 1402 | 1402 | ||
185 | === modified file 'client/drizzledump.cc' | |||
186 | --- client/drizzledump.cc 2010-12-06 12:40:05 +0000 | |||
187 | +++ client/drizzledump.cc 2011-01-10 20:36:11 +0000 | |||
188 | @@ -472,99 +472,107 @@ | |||
189 | 472 | { | 472 | { |
190 | 473 | int exit_code; | 473 | int exit_code; |
191 | 474 | 474 | ||
193 | 475 | po::options_description commandline_options(N_("Options used only in command line")); | 475 | #if defined(ENABLE_NLS) |
194 | 476 | # if defined(HAVE_LOCALE_H) | ||
195 | 477 | setlocale(LC_ALL, ""); | ||
196 | 478 | # endif | ||
197 | 479 | bindtextdomain("drizzle7", LOCALEDIR); | ||
198 | 480 | textdomain("drizzle7"); | ||
199 | 481 | #endif | ||
200 | 482 | |||
201 | 483 | po::options_description commandline_options(_("Options used only in command line")); | ||
202 | 476 | commandline_options.add_options() | 484 | commandline_options.add_options() |
203 | 477 | ("all-databases,A", po::value<bool>(&opt_alldbs)->default_value(false)->zero_tokens(), | 485 | ("all-databases,A", po::value<bool>(&opt_alldbs)->default_value(false)->zero_tokens(), |
205 | 478 | N_("Dump all the databases. This will be same as --databases with all databases selected.")) | 486 | _("Dump all the databases. This will be same as --databases with all databases selected.")) |
206 | 479 | ("all-tablespaces,Y", po::value<bool>(&opt_alltspcs)->default_value(false)->zero_tokens(), | 487 | ("all-tablespaces,Y", po::value<bool>(&opt_alltspcs)->default_value(false)->zero_tokens(), |
208 | 480 | N_("Dump all the tablespaces.")) | 488 | _("Dump all the tablespaces.")) |
209 | 481 | ("complete-insert,c", po::value<bool>(&opt_complete_insert)->default_value(false)->zero_tokens(), | 489 | ("complete-insert,c", po::value<bool>(&opt_complete_insert)->default_value(false)->zero_tokens(), |
211 | 482 | N_("Use complete insert statements.")) | 490 | _("Use complete insert statements.")) |
212 | 483 | ("flush-logs,F", po::value<bool>(&flush_logs)->default_value(false)->zero_tokens(), | 491 | ("flush-logs,F", po::value<bool>(&flush_logs)->default_value(false)->zero_tokens(), |
214 | 484 | N_("Flush logs file in server before starting dump. Note that if you dump many databases at once (using the option --databases= or --all-databases), the logs will be flushed for each database dumped. The exception is when using --lock-all-tables in this case the logs will be flushed only once, corresponding to the moment all tables are locked. So if you want your dump and the log flush to happen at the same exact moment you should use --lock-all-tables or --flush-logs")) | 492 | _("Flush logs file in server before starting dump. Note that if you dump many databases at once (using the option --databases= or --all-databases), the logs will be flushed for each database dumped. The exception is when using --lock-all-tables in this case the logs will be flushed only once, corresponding to the moment all tables are locked. So if you want your dump and the log flush to happen at the same exact moment you should use --lock-all-tables or --flush-logs")) |
215 | 485 | ("force,f", po::value<bool>(&ignore_errors)->default_value(false)->zero_tokens(), | 493 | ("force,f", po::value<bool>(&ignore_errors)->default_value(false)->zero_tokens(), |
218 | 486 | N_("Continue even if we get an sql-error.")) | 494 | _("Continue even if we get an sql-error.")) |
219 | 487 | ("help,?", N_("Display this help message and exit.")) | 495 | ("help,?", _("Display this help message and exit.")) |
220 | 488 | ("lock-all-tables,x", po::value<bool>(&opt_lock_all_tables)->default_value(false)->zero_tokens(), | 496 | ("lock-all-tables,x", po::value<bool>(&opt_lock_all_tables)->default_value(false)->zero_tokens(), |
222 | 489 | N_("Locks all tables across all databases. This is achieved by taking a global read lock for the duration of the whole dump. Automatically turns --single-transaction off.")) | 497 | _("Locks all tables across all databases. This is achieved by taking a global read lock for the duration of the whole dump. Automatically turns --single-transaction off.")) |
223 | 490 | ("single-transaction", po::value<bool>(&opt_single_transaction)->default_value(false)->zero_tokens(), | 498 | ("single-transaction", po::value<bool>(&opt_single_transaction)->default_value(false)->zero_tokens(), |
225 | 491 | N_("Creates a consistent snapshot by dumping all tables in a single transaction. Works ONLY for tables stored in storage engines which support multiversioning (currently only InnoDB does); the dump is NOT guaranteed to be consistent for other storage engines. While a --single-transaction dump is in process, to ensure a valid dump file (correct table contents), no other connection should use the following statements: ALTER TABLE, DROP TABLE, RENAME TABLE, TRUNCATE TABLE, as consistent snapshot is not isolated from them.")) | 499 | _("Creates a consistent snapshot by dumping all tables in a single transaction. Works ONLY for tables stored in storage engines which support multiversioning (currently only InnoDB does); the dump is NOT guaranteed to be consistent for other storage engines. While a --single-transaction dump is in process, to ensure a valid dump file (correct table contents), no other connection should use the following statements: ALTER TABLE, DROP TABLE, RENAME TABLE, TRUNCATE TABLE, as consistent snapshot is not isolated from them.")) |
226 | 492 | ("skip-opt", | 500 | ("skip-opt", |
229 | 493 | N_("Disable --opt. Disables --add-drop-table, --add-locks, --create-options, ---extended-insert and --disable-keys.")) | 501 | _("Disable --opt. Disables --add-drop-table, --add-locks, --create-options, ---extended-insert and --disable-keys.")) |
230 | 494 | ("tables", N_("Overrides option --databases (-B).")) | 502 | ("tables", _("Overrides option --databases (-B).")) |
231 | 495 | ("show-progress-size", po::value<uint32_t>(&show_progress_size)->default_value(10000), | 503 | ("show-progress-size", po::value<uint32_t>(&show_progress_size)->default_value(10000), |
233 | 496 | N_("Number of rows before each output progress report (requires --verbose).")) | 504 | _("Number of rows before each output progress report (requires --verbose).")) |
234 | 497 | ("verbose,v", po::value<bool>(&verbose)->default_value(false)->zero_tokens(), | 505 | ("verbose,v", po::value<bool>(&verbose)->default_value(false)->zero_tokens(), |
242 | 498 | N_("Print info about the various stages.")) | 506 | _("Print info about the various stages.")) |
243 | 499 | ("version,V", N_("Output version information and exit.")) | 507 | ("version,V", _("Output version information and exit.")) |
244 | 500 | ("skip-comments", N_("Turn off Comments")) | 508 | ("skip-comments", _("Turn off Comments")) |
245 | 501 | ("skip-create", N_("Turn off create-options")) | 509 | ("skip-create", _("Turn off create-options")) |
246 | 502 | ("skip-extended-insert", N_("Turn off extended-insert")) | 510 | ("skip-extended-insert", _("Turn off extended-insert")) |
247 | 503 | ("skip-dump-date",N_( "Turn off dump date at the end of the output")) | 511 | ("skip-dump-date", _( "Turn off dump date at the end of the output")) |
248 | 504 | ("no-defaults", N_("Do not read from the configuration files")) | 512 | ("no-defaults", _("Do not read from the configuration files")) |
249 | 505 | ; | 513 | ; |
250 | 506 | 514 | ||
252 | 507 | po::options_description dump_options(N_("Options specific to the drizzle client")); | 515 | po::options_description dump_options(_("Options specific to the drizzle client")); |
253 | 508 | dump_options.add_options() | 516 | dump_options.add_options() |
254 | 509 | ("add-drop-database", po::value<bool>(&opt_drop_database)->default_value(false)->zero_tokens(), | 517 | ("add-drop-database", po::value<bool>(&opt_drop_database)->default_value(false)->zero_tokens(), |
257 | 510 | N_("Add a 'DROP DATABASE' before each create.")) | 518 | _("Add a 'DROP DATABASE' before each create.")) |
258 | 511 | ("skip-drop-table", N_("Do not add a 'drop table' before each create.")) | 519 | ("skip-drop-table", _("Do not add a 'drop table' before each create.")) |
259 | 512 | ("compact", po::value<bool>(&opt_compact)->default_value(false)->zero_tokens(), | 520 | ("compact", po::value<bool>(&opt_compact)->default_value(false)->zero_tokens(), |
261 | 513 | N_("Give less verbose output (useful for debugging). Disables structure comments and header/footer constructs. Enables options --skip-add-drop-table --no-set-names --skip-disable-keys")) | 521 | _("Give less verbose output (useful for debugging). Disables structure comments and header/footer constructs. Enables options --skip-add-drop-table --no-set-names --skip-disable-keys")) |
262 | 514 | ("databases,B", po::value<bool>(&opt_databases)->default_value(false)->zero_tokens(), | 522 | ("databases,B", po::value<bool>(&opt_databases)->default_value(false)->zero_tokens(), |
264 | 515 | N_("To dump several databases. Note the difference in usage; In this case no tables are given. All name arguments are regarded as databasenames. 'USE db_name;' will be included in the output.")) | 523 | _("To dump several databases. Note the difference in usage; In this case no tables are given. All name arguments are regarded as databasenames. 'USE db_name;' will be included in the output.")) |
265 | 516 | ("skip-disable-keys,K", | 524 | ("skip-disable-keys,K", |
267 | 517 | N_("'ALTER TABLE tb_name DISABLE KEYS; and 'ALTER TABLE tb_name ENABLE KEYS; will not be put in the output.")) | 525 | _("'ALTER TABLE tb_name DISABLE KEYS;' and 'ALTER TABLE tb_name ENABLE KEYS;' will not be put in the output.")) |
268 | 518 | ("ignore-table", po::value<string>(), | 526 | ("ignore-table", po::value<string>(), |
270 | 519 | N_("Do not dump the specified table. To specify more than one table to ignore, use the directive multiple times, once for each table. Each table must be specified with both database and table names, e.g. --ignore-table=database.table")) | 527 | _("Do not dump the specified table. To specify more than one table to ignore, use the directive multiple times, once for each table. Each table must be specified with both database and table names, e.g. --ignore-table=database.table")) |
271 | 520 | ("insert-ignore", po::value<bool>(&opt_ignore)->default_value(false)->zero_tokens(), | 528 | ("insert-ignore", po::value<bool>(&opt_ignore)->default_value(false)->zero_tokens(), |
273 | 521 | N_("Insert rows with INSERT IGNORE.")) | 529 | _("Insert rows with INSERT IGNORE.")) |
274 | 522 | ("no-autocommit", po::value<bool>(&opt_autocommit)->default_value(false)->zero_tokens(), | 530 | ("no-autocommit", po::value<bool>(&opt_autocommit)->default_value(false)->zero_tokens(), |
276 | 523 | N_("Wrap a table's data in START TRANSACTION/COMMIT statements.")) | 531 | _("Wrap a table's data in START TRANSACTION/COMMIT statements.")) |
277 | 524 | ("no-create-db,n", po::value<bool>(&opt_create_db)->default_value(false)->zero_tokens(), | 532 | ("no-create-db,n", po::value<bool>(&opt_create_db)->default_value(false)->zero_tokens(), |
279 | 525 | N_("'CREATE DATABASE IF NOT EXISTS db_name;' will not be put in the output. The above line will be added otherwise, if --databases or --all-databases option was given.")) | 533 | _("'CREATE DATABASE IF NOT EXISTS db_name;' will not be put in the output. The above line will be added otherwise, if --databases or --all-databases option was given.")) |
280 | 526 | ("no-data,d", po::value<bool>(&opt_no_data)->default_value(false)->zero_tokens(), | 534 | ("no-data,d", po::value<bool>(&opt_no_data)->default_value(false)->zero_tokens(), |
282 | 527 | N_("No row information.")) | 535 | _("No row information.")) |
283 | 528 | ("replace", po::value<bool>(&opt_replace_into)->default_value(false)->zero_tokens(), | 536 | ("replace", po::value<bool>(&opt_replace_into)->default_value(false)->zero_tokens(), |
285 | 529 | N_("Use REPLACE INTO instead of INSERT INTO.")) | 537 | _("Use REPLACE INTO instead of INSERT INTO.")) |
286 | 530 | ("destination-type", po::value<string>()->default_value("stdout"), | 538 | ("destination-type", po::value<string>()->default_value("stdout"), |
288 | 531 | N_("Where to send output to (stdout|database")) | 539 | _("Where to send output to (stdout|database")) |
289 | 532 | ("destination-host", po::value<string>(&opt_destination_host)->default_value("localhost"), | 540 | ("destination-host", po::value<string>(&opt_destination_host)->default_value("localhost"), |
291 | 533 | N_("Hostname for destination db server (requires --destination-type=database)")) | 541 | _("Hostname for destination db server (requires --destination-type=database)")) |
292 | 534 | ("destination-port", po::value<uint16_t>(&opt_destination_port)->default_value(4427), | 542 | ("destination-port", po::value<uint16_t>(&opt_destination_port)->default_value(4427), |
294 | 535 | N_("Port number for destination db server (requires --destination-type=database)")) | 543 | _("Port number for destination db server (requires --destination-type=database)")) |
295 | 536 | ("destination-user", po::value<string>(&opt_destination_user), | 544 | ("destination-user", po::value<string>(&opt_destination_user), |
297 | 537 | N_("User name for destination db server (resquires --destination-type=database)")) | 545 | _("User name for destination db server (resquires --destination-type=database)")) |
298 | 538 | ("destination-password", po::value<string>(&opt_destination_password), | 546 | ("destination-password", po::value<string>(&opt_destination_password), |
300 | 539 | N_("Password for destination db server (requires --destination-type=database)")) | 547 | _("Password for destination db server (requires --destination-type=database)")) |
301 | 540 | ("destination-database", po::value<string>(&opt_destination_database), | 548 | ("destination-database", po::value<string>(&opt_destination_database), |
303 | 541 | N_("The database in the destination db server (requires --destination-type=database, not for use with --all-databases)")) | 549 | _("The database in the destination db server (requires --destination-type=database, not for use with --all-databases)")) |
304 | 542 | ; | 550 | ; |
305 | 543 | 551 | ||
307 | 544 | po::options_description client_options(N_("Options specific to the client")); | 552 | po::options_description client_options(_("Options specific to the client")); |
308 | 545 | client_options.add_options() | 553 | client_options.add_options() |
309 | 546 | ("host,h", po::value<string>(¤t_host)->default_value("localhost"), | 554 | ("host,h", po::value<string>(¤t_host)->default_value("localhost"), |
311 | 547 | N_("Connect to host.")) | 555 | _("Connect to host.")) |
312 | 548 | ("password,P", po::value<string>(&password)->default_value(PASSWORD_SENTINEL), | 556 | ("password,P", po::value<string>(&password)->default_value(PASSWORD_SENTINEL), |
314 | 549 | N_("Password to use when connecting to server. If password is not given it's solicited on the tty.")) | 557 | _("Password to use when connecting to server. If password is not given it's solicited on the tty.")) |
315 | 550 | ("port,p", po::value<uint32_t>(&opt_drizzle_port)->default_value(0), | 558 | ("port,p", po::value<uint32_t>(&opt_drizzle_port)->default_value(0), |
317 | 551 | N_("Port number to use for connection.")) | 559 | _("Port number to use for connection.")) |
318 | 552 | ("user,u", po::value<string>(¤t_user)->default_value(""), | 560 | ("user,u", po::value<string>(¤t_user)->default_value(""), |
320 | 553 | N_("User for login if not current user.")) | 561 | _("User for login if not current user.")) |
321 | 554 | ("protocol",po::value<string>(&opt_protocol)->default_value("mysql"), | 562 | ("protocol",po::value<string>(&opt_protocol)->default_value("mysql"), |
323 | 555 | N_("The protocol of connection (mysql or drizzle).")) | 563 | _("The protocol of connection (mysql or drizzle).")) |
324 | 556 | ; | 564 | ; |
325 | 557 | 565 | ||
327 | 558 | po::options_description hidden_options(N_("Hidden Options")); | 566 | po::options_description hidden_options(_("Hidden Options")); |
328 | 559 | hidden_options.add_options() | 567 | hidden_options.add_options() |
331 | 560 | ("database-used", po::value<vector<string> >(), N_("Used to select the database")) | 568 | ("database-used", po::value<vector<string> >(), _("Used to select the database")) |
332 | 561 | ("Table-used", po::value<vector<string> >(), N_("Used to select the tables")) | 569 | ("Table-used", po::value<vector<string> >(), _("Used to select the tables")) |
333 | 562 | ; | 570 | ; |
334 | 563 | 571 | ||
336 | 564 | po::options_description all_options(N_("Allowed Options + Hidden Options")); | 572 | po::options_description all_options(_("Allowed Options + Hidden Options")); |
337 | 565 | all_options.add(commandline_options).add(dump_options).add(client_options).add(hidden_options); | 573 | all_options.add(commandline_options).add(dump_options).add(client_options).add(hidden_options); |
338 | 566 | 574 | ||
340 | 567 | po::options_description long_options(N_("Allowed Options")); | 575 | po::options_description long_options(_("Allowed Options")); |
341 | 568 | long_options.add(commandline_options).add(dump_options).add(client_options); | 576 | long_options.add(commandline_options).add(dump_options).add(client_options); |
342 | 569 | 577 | ||
343 | 570 | std::string system_config_dir_dump(SYSCONFDIR); | 578 | std::string system_config_dir_dump(SYSCONFDIR); |
344 | 571 | 579 | ||
345 | === modified file 'drizzled/drizzled.cc' | |||
346 | --- drizzled/drizzled.cc 2010-12-30 17:09:51 +0000 | |||
347 | +++ drizzled/drizzled.cc 2011-01-10 20:36:11 +0000 | |||
348 | @@ -597,12 +597,12 @@ | |||
349 | 597 | initgroups((char*) user, user_info_arg->pw_gid); | 597 | initgroups((char*) user, user_info_arg->pw_gid); |
350 | 598 | if (setgid(user_info_arg->pw_gid) == -1) | 598 | if (setgid(user_info_arg->pw_gid) == -1) |
351 | 599 | { | 599 | { |
353 | 600 | sql_perror(N_("Set process group ID failed")); | 600 | sql_perror(_("Set process group ID failed")); |
354 | 601 | unireg_abort(1); | 601 | unireg_abort(1); |
355 | 602 | } | 602 | } |
356 | 603 | if (setuid(user_info_arg->pw_uid) == -1) | 603 | if (setuid(user_info_arg->pw_uid) == -1) |
357 | 604 | { | 604 | { |
359 | 605 | sql_perror(N_("Set process user ID failed")); | 605 | sql_perror(_("Set process user ID failed")); |
360 | 606 | unireg_abort(1); | 606 | unireg_abort(1); |
361 | 607 | } | 607 | } |
362 | 608 | } | 608 | } |
363 | @@ -614,7 +614,7 @@ | |||
364 | 614 | { | 614 | { |
365 | 615 | if ((chroot(path) == -1) || !chdir("/")) | 615 | if ((chroot(path) == -1) || !chdir("/")) |
366 | 616 | { | 616 | { |
368 | 617 | sql_perror(N_("Process chroot failed")); | 617 | sql_perror(_("Process chroot failed")); |
369 | 618 | unireg_abort(1); | 618 | unireg_abort(1); |
370 | 619 | } | 619 | } |
371 | 620 | } | 620 | } |
372 | @@ -734,7 +734,7 @@ | |||
373 | 734 | global_system_variables.auto_increment_increment= 1; | 734 | global_system_variables.auto_increment_increment= 1; |
374 | 735 | if (in_auto_increment_increment < 1 || in_auto_increment_increment > UINT64_MAX) | 735 | if (in_auto_increment_increment < 1 || in_auto_increment_increment > UINT64_MAX) |
375 | 736 | { | 736 | { |
377 | 737 | cout << N_("Error: Invalid Value for auto_increment_increment"); | 737 | cout << _("Error: Invalid Value for auto_increment_increment"); |
378 | 738 | exit(-1); | 738 | exit(-1); |
379 | 739 | } | 739 | } |
380 | 740 | global_system_variables.auto_increment_increment= in_auto_increment_increment; | 740 | global_system_variables.auto_increment_increment= in_auto_increment_increment; |
381 | @@ -745,7 +745,7 @@ | |||
382 | 745 | global_system_variables.auto_increment_offset= 1; | 745 | global_system_variables.auto_increment_offset= 1; |
383 | 746 | if (in_auto_increment_offset < 1 || in_auto_increment_offset > UINT64_MAX) | 746 | if (in_auto_increment_offset < 1 || in_auto_increment_offset > UINT64_MAX) |
384 | 747 | { | 747 | { |
386 | 748 | cout << N_("Error: Invalid Value for auto_increment_offset"); | 748 | cout << _("Error: Invalid Value for auto_increment_offset"); |
387 | 749 | exit(-1); | 749 | exit(-1); |
388 | 750 | } | 750 | } |
389 | 751 | global_system_variables.auto_increment_offset= in_auto_increment_offset; | 751 | global_system_variables.auto_increment_offset= in_auto_increment_offset; |
390 | @@ -756,7 +756,7 @@ | |||
391 | 756 | global_system_variables.completion_type= 0; | 756 | global_system_variables.completion_type= 0; |
392 | 757 | if (in_completion_type > 2) | 757 | if (in_completion_type > 2) |
393 | 758 | { | 758 | { |
395 | 759 | cout << N_("Error: Invalid Value for completion_type"); | 759 | cout << _("Error: Invalid Value for completion_type"); |
396 | 760 | exit(-1); | 760 | exit(-1); |
397 | 761 | } | 761 | } |
398 | 762 | global_system_variables.completion_type= in_completion_type; | 762 | global_system_variables.completion_type= in_completion_type; |
399 | @@ -768,7 +768,7 @@ | |||
400 | 768 | global_system_variables.div_precincrement= 4; | 768 | global_system_variables.div_precincrement= 4; |
401 | 769 | if (in_div_precincrement > DECIMAL_MAX_SCALE) | 769 | if (in_div_precincrement > DECIMAL_MAX_SCALE) |
402 | 770 | { | 770 | { |
404 | 771 | cout << N_("Error: Invalid Value for div-precision-increment"); | 771 | cout << _("Error: Invalid Value for div-precision-increment"); |
405 | 772 | exit(-1); | 772 | exit(-1); |
406 | 773 | } | 773 | } |
407 | 774 | global_system_variables.div_precincrement= in_div_precincrement; | 774 | global_system_variables.div_precincrement= in_div_precincrement; |
408 | @@ -779,7 +779,7 @@ | |||
409 | 779 | global_system_variables.group_concat_max_len= 1024; | 779 | global_system_variables.group_concat_max_len= 1024; |
410 | 780 | if (in_group_concat_max_len > ULONG_MAX || in_group_concat_max_len < 4) | 780 | if (in_group_concat_max_len > ULONG_MAX || in_group_concat_max_len < 4) |
411 | 781 | { | 781 | { |
413 | 782 | cout << N_("Error: Invalid Value for group_concat_max_len"); | 782 | cout << _("Error: Invalid Value for group_concat_max_len"); |
414 | 783 | exit(-1); | 783 | exit(-1); |
415 | 784 | } | 784 | } |
416 | 785 | global_system_variables.group_concat_max_len= in_group_concat_max_len; | 785 | global_system_variables.group_concat_max_len= in_group_concat_max_len; |
417 | @@ -790,7 +790,7 @@ | |||
418 | 790 | global_system_variables.join_buff_size= (128*1024L); | 790 | global_system_variables.join_buff_size= (128*1024L); |
419 | 791 | if (in_join_buffer_size < IO_SIZE*2 || in_join_buffer_size > ULONG_MAX) | 791 | if (in_join_buffer_size < IO_SIZE*2 || in_join_buffer_size > ULONG_MAX) |
420 | 792 | { | 792 | { |
422 | 793 | cout << N_("Error: Invalid Value for join_buffer_size"); | 793 | cout << _("Error: Invalid Value for join_buffer_size"); |
423 | 794 | exit(-1); | 794 | exit(-1); |
424 | 795 | } | 795 | } |
425 | 796 | in_join_buffer_size-= in_join_buffer_size % IO_SIZE; | 796 | in_join_buffer_size-= in_join_buffer_size % IO_SIZE; |
426 | @@ -802,7 +802,7 @@ | |||
427 | 802 | global_system_variables.max_allowed_packet= (64*1024*1024L); | 802 | global_system_variables.max_allowed_packet= (64*1024*1024L); |
428 | 803 | if (in_max_allowed_packet < 1024 || in_max_allowed_packet > 1024*1024L*1024L) | 803 | if (in_max_allowed_packet < 1024 || in_max_allowed_packet > 1024*1024L*1024L) |
429 | 804 | { | 804 | { |
431 | 805 | cout << N_("Error: Invalid Value for max_allowed_packet"); | 805 | cout << _("Error: Invalid Value for max_allowed_packet"); |
432 | 806 | exit(-1); | 806 | exit(-1); |
433 | 807 | } | 807 | } |
434 | 808 | in_max_allowed_packet-= in_max_allowed_packet % 1024; | 808 | in_max_allowed_packet-= in_max_allowed_packet % 1024; |
435 | @@ -814,7 +814,7 @@ | |||
436 | 814 | max_connect_errors= MAX_CONNECT_ERRORS; | 814 | max_connect_errors= MAX_CONNECT_ERRORS; |
437 | 815 | if (in_max_connect_errors < 1 || in_max_connect_errors > ULONG_MAX) | 815 | if (in_max_connect_errors < 1 || in_max_connect_errors > ULONG_MAX) |
438 | 816 | { | 816 | { |
440 | 817 | cout << N_("Error: Invalid Value for max_connect_errors"); | 817 | cout << _("Error: Invalid Value for max_connect_errors"); |
441 | 818 | exit(-1); | 818 | exit(-1); |
442 | 819 | } | 819 | } |
443 | 820 | max_connect_errors= in_max_connect_errors; | 820 | max_connect_errors= in_max_connect_errors; |
444 | @@ -825,7 +825,7 @@ | |||
445 | 825 | global_system_variables.max_error_count= DEFAULT_ERROR_COUNT; | 825 | global_system_variables.max_error_count= DEFAULT_ERROR_COUNT; |
446 | 826 | if (in_max_error_count > 65535) | 826 | if (in_max_error_count > 65535) |
447 | 827 | { | 827 | { |
449 | 828 | cout << N_("Error: Invalid Value for max_error_count"); | 828 | cout << _("Error: Invalid Value for max_error_count"); |
450 | 829 | exit(-1); | 829 | exit(-1); |
451 | 830 | } | 830 | } |
452 | 831 | global_system_variables.max_error_count= in_max_error_count; | 831 | global_system_variables.max_error_count= in_max_error_count; |
453 | @@ -836,7 +836,7 @@ | |||
454 | 836 | global_system_variables.max_heap_table_size= (16*1024*1024L); | 836 | global_system_variables.max_heap_table_size= (16*1024*1024L); |
455 | 837 | if (in_max_heap_table_size < 16384 || in_max_heap_table_size > MAX_MEM_TABLE_SIZE) | 837 | if (in_max_heap_table_size < 16384 || in_max_heap_table_size > MAX_MEM_TABLE_SIZE) |
456 | 838 | { | 838 | { |
458 | 839 | cout << N_("Error: Invalid Value for max_heap_table_size"); | 839 | cout << _("Error: Invalid Value for max_heap_table_size"); |
459 | 840 | exit(-1); | 840 | exit(-1); |
460 | 841 | } | 841 | } |
461 | 842 | in_max_heap_table_size-= in_max_heap_table_size % 1024; | 842 | in_max_heap_table_size-= in_max_heap_table_size % 1024; |
462 | @@ -848,7 +848,7 @@ | |||
463 | 848 | global_system_variables.min_examined_row_limit= 0; | 848 | global_system_variables.min_examined_row_limit= 0; |
464 | 849 | if (in_min_examined_row_limit > ULONG_MAX) | 849 | if (in_min_examined_row_limit > ULONG_MAX) |
465 | 850 | { | 850 | { |
467 | 851 | cout << N_("Error: Invalid Value for min_examined_row_limit"); | 851 | cout << _("Error: Invalid Value for min_examined_row_limit"); |
468 | 852 | exit(-1); | 852 | exit(-1); |
469 | 853 | } | 853 | } |
470 | 854 | global_system_variables.min_examined_row_limit= in_min_examined_row_limit; | 854 | global_system_variables.min_examined_row_limit= in_min_examined_row_limit; |
471 | @@ -859,7 +859,7 @@ | |||
472 | 859 | global_system_variables.max_join_size= INT32_MAX; | 859 | global_system_variables.max_join_size= INT32_MAX; |
473 | 860 | if ((uint64_t)in_max_join_size < 1 || (uint64_t)in_max_join_size > INT32_MAX) | 860 | if ((uint64_t)in_max_join_size < 1 || (uint64_t)in_max_join_size > INT32_MAX) |
474 | 861 | { | 861 | { |
476 | 862 | cout << N_("Error: Invalid Value for max_join_size"); | 862 | cout << _("Error: Invalid Value for max_join_size"); |
477 | 863 | exit(-1); | 863 | exit(-1); |
478 | 864 | } | 864 | } |
479 | 865 | global_system_variables.max_join_size= in_max_join_size; | 865 | global_system_variables.max_join_size= in_max_join_size; |
480 | @@ -870,7 +870,7 @@ | |||
481 | 870 | global_system_variables.max_length_for_sort_data= 1024; | 870 | global_system_variables.max_length_for_sort_data= 1024; |
482 | 871 | if (in_max_length_for_sort_data < 4 || in_max_length_for_sort_data > 8192*1024L) | 871 | if (in_max_length_for_sort_data < 4 || in_max_length_for_sort_data > 8192*1024L) |
483 | 872 | { | 872 | { |
485 | 873 | cout << N_("Error: Invalid Value for max_length_for_sort_data"); | 873 | cout << _("Error: Invalid Value for max_length_for_sort_data"); |
486 | 874 | exit(-1); | 874 | exit(-1); |
487 | 875 | } | 875 | } |
488 | 876 | global_system_variables.max_length_for_sort_data= in_max_length_for_sort_data; | 876 | global_system_variables.max_length_for_sort_data= in_max_length_for_sort_data; |
489 | @@ -881,7 +881,7 @@ | |||
490 | 881 | global_system_variables.max_seeks_for_key= ULONG_MAX; | 881 | global_system_variables.max_seeks_for_key= ULONG_MAX; |
491 | 882 | if (in_max_seeks_for_key < 1 || in_max_seeks_for_key > ULONG_MAX) | 882 | if (in_max_seeks_for_key < 1 || in_max_seeks_for_key > ULONG_MAX) |
492 | 883 | { | 883 | { |
494 | 884 | cout << N_("Error: Invalid Value for max_seeks_for_key"); | 884 | cout << _("Error: Invalid Value for max_seeks_for_key"); |
495 | 885 | exit(-1); | 885 | exit(-1); |
496 | 886 | } | 886 | } |
497 | 887 | global_system_variables.max_seeks_for_key= in_max_seeks_for_key; | 887 | global_system_variables.max_seeks_for_key= in_max_seeks_for_key; |
498 | @@ -892,7 +892,7 @@ | |||
499 | 892 | global_system_variables.max_sort_length= 1024; | 892 | global_system_variables.max_sort_length= 1024; |
500 | 893 | if ((int64_t)in_max_sort_length < 4 || (int64_t)in_max_sort_length > 8192*1024L) | 893 | if ((int64_t)in_max_sort_length < 4 || (int64_t)in_max_sort_length > 8192*1024L) |
501 | 894 | { | 894 | { |
503 | 895 | cout << N_("Error: Invalid Value for max_sort_length"); | 895 | cout << _("Error: Invalid Value for max_sort_length"); |
504 | 896 | exit(-1); | 896 | exit(-1); |
505 | 897 | } | 897 | } |
506 | 898 | global_system_variables.max_sort_length= in_max_sort_length; | 898 | global_system_variables.max_sort_length= in_max_sort_length; |
507 | @@ -903,7 +903,7 @@ | |||
508 | 903 | global_system_variables.optimizer_search_depth= 0; | 903 | global_system_variables.optimizer_search_depth= 0; |
509 | 904 | if (in_optimizer_search_depth > MAX_TABLES + 2) | 904 | if (in_optimizer_search_depth > MAX_TABLES + 2) |
510 | 905 | { | 905 | { |
512 | 906 | cout << N_("Error: Invalid Value for optimizer_search_depth"); | 906 | cout << _("Error: Invalid Value for optimizer_search_depth"); |
513 | 907 | exit(-1); | 907 | exit(-1); |
514 | 908 | } | 908 | } |
515 | 909 | global_system_variables.optimizer_search_depth= in_optimizer_search_depth; | 909 | global_system_variables.optimizer_search_depth= in_optimizer_search_depth; |
516 | @@ -914,7 +914,7 @@ | |||
517 | 914 | global_system_variables.preload_buff_size= (32*1024L); | 914 | global_system_variables.preload_buff_size= (32*1024L); |
518 | 915 | if (in_preload_buff_size < 1024 || in_preload_buff_size > 1024*1024*1024L) | 915 | if (in_preload_buff_size < 1024 || in_preload_buff_size > 1024*1024*1024L) |
519 | 916 | { | 916 | { |
521 | 917 | cout << N_("Error: Invalid Value for preload_buff_size"); | 917 | cout << _("Error: Invalid Value for preload_buff_size"); |
522 | 918 | exit(-1); | 918 | exit(-1); |
523 | 919 | } | 919 | } |
524 | 920 | global_system_variables.preload_buff_size= in_preload_buff_size; | 920 | global_system_variables.preload_buff_size= in_preload_buff_size; |
525 | @@ -925,7 +925,7 @@ | |||
526 | 925 | global_system_variables.query_alloc_block_size= QUERY_ALLOC_BLOCK_SIZE; | 925 | global_system_variables.query_alloc_block_size= QUERY_ALLOC_BLOCK_SIZE; |
527 | 926 | if (in_query_alloc_block_size < 1024) | 926 | if (in_query_alloc_block_size < 1024) |
528 | 927 | { | 927 | { |
530 | 928 | cout << N_("Error: Invalid Value for query_alloc_block_size"); | 928 | cout << _("Error: Invalid Value for query_alloc_block_size"); |
531 | 929 | exit(-1); | 929 | exit(-1); |
532 | 930 | } | 930 | } |
533 | 931 | in_query_alloc_block_size-= in_query_alloc_block_size % 1024; | 931 | in_query_alloc_block_size-= in_query_alloc_block_size % 1024; |
534 | @@ -937,7 +937,7 @@ | |||
535 | 937 | global_system_variables.query_prealloc_size= QUERY_ALLOC_PREALLOC_SIZE; | 937 | global_system_variables.query_prealloc_size= QUERY_ALLOC_PREALLOC_SIZE; |
536 | 938 | if (in_query_prealloc_size < QUERY_ALLOC_PREALLOC_SIZE) | 938 | if (in_query_prealloc_size < QUERY_ALLOC_PREALLOC_SIZE) |
537 | 939 | { | 939 | { |
539 | 940 | cout << N_("Error: Invalid Value for query_prealloc_size"); | 940 | cout << _("Error: Invalid Value for query_prealloc_size"); |
540 | 941 | exit(-1); | 941 | exit(-1); |
541 | 942 | } | 942 | } |
542 | 943 | in_query_prealloc_size-= in_query_prealloc_size % 1024; | 943 | in_query_prealloc_size-= in_query_prealloc_size % 1024; |
543 | @@ -949,7 +949,7 @@ | |||
544 | 949 | global_system_variables.range_alloc_block_size= RANGE_ALLOC_BLOCK_SIZE; | 949 | global_system_variables.range_alloc_block_size= RANGE_ALLOC_BLOCK_SIZE; |
545 | 950 | if (in_range_alloc_block_size < RANGE_ALLOC_BLOCK_SIZE) | 950 | if (in_range_alloc_block_size < RANGE_ALLOC_BLOCK_SIZE) |
546 | 951 | { | 951 | { |
548 | 952 | cout << N_("Error: Invalid Value for range_alloc_block_size"); | 952 | cout << _("Error: Invalid Value for range_alloc_block_size"); |
549 | 953 | exit(-1); | 953 | exit(-1); |
550 | 954 | } | 954 | } |
551 | 955 | in_range_alloc_block_size-= in_range_alloc_block_size % 1024; | 955 | in_range_alloc_block_size-= in_range_alloc_block_size % 1024; |
552 | @@ -961,7 +961,7 @@ | |||
553 | 961 | global_system_variables.read_buff_size= (128*1024L); | 961 | global_system_variables.read_buff_size= (128*1024L); |
554 | 962 | if (in_read_buff_size < IO_SIZE*2 || in_read_buff_size > INT32_MAX) | 962 | if (in_read_buff_size < IO_SIZE*2 || in_read_buff_size > INT32_MAX) |
555 | 963 | { | 963 | { |
557 | 964 | cout << N_("Error: Invalid Value for read_buff_size"); | 964 | cout << _("Error: Invalid Value for read_buff_size"); |
558 | 965 | exit(-1); | 965 | exit(-1); |
559 | 966 | } | 966 | } |
560 | 967 | in_read_buff_size-= in_read_buff_size % IO_SIZE; | 967 | in_read_buff_size-= in_read_buff_size % IO_SIZE; |
561 | @@ -973,7 +973,7 @@ | |||
562 | 973 | global_system_variables.read_rnd_buff_size= (256*1024L); | 973 | global_system_variables.read_rnd_buff_size= (256*1024L); |
563 | 974 | if (in_read_rnd_buff_size < 64 || in_read_rnd_buff_size > UINT32_MAX) | 974 | if (in_read_rnd_buff_size < 64 || in_read_rnd_buff_size > UINT32_MAX) |
564 | 975 | { | 975 | { |
566 | 976 | cout << N_("Error: Invalid Value for read_rnd_buff_size"); | 976 | cout << _("Error: Invalid Value for read_rnd_buff_size"); |
567 | 977 | exit(-1); | 977 | exit(-1); |
568 | 978 | } | 978 | } |
569 | 979 | global_system_variables.read_rnd_buff_size= in_read_rnd_buff_size; | 979 | global_system_variables.read_rnd_buff_size= in_read_rnd_buff_size; |
570 | @@ -984,7 +984,7 @@ | |||
571 | 984 | global_system_variables.sortbuff_size= MAX_SORT_MEMORY; | 984 | global_system_variables.sortbuff_size= MAX_SORT_MEMORY; |
572 | 985 | if ((uint32_t)in_sortbuff_size < MIN_SORT_MEMORY) | 985 | if ((uint32_t)in_sortbuff_size < MIN_SORT_MEMORY) |
573 | 986 | { | 986 | { |
575 | 987 | cout << N_("Error: Invalid Value for sort_buff_size"); | 987 | cout << _("Error: Invalid Value for sort_buff_size"); |
576 | 988 | exit(-1); | 988 | exit(-1); |
577 | 989 | } | 989 | } |
578 | 990 | global_system_variables.sortbuff_size= in_sortbuff_size; | 990 | global_system_variables.sortbuff_size= in_sortbuff_size; |
579 | @@ -995,7 +995,7 @@ | |||
580 | 995 | table_def_size= 128; | 995 | table_def_size= 128; |
581 | 996 | if (in_table_def_size < 1 || in_table_def_size > 512*1024L) | 996 | if (in_table_def_size < 1 || in_table_def_size > 512*1024L) |
582 | 997 | { | 997 | { |
584 | 998 | cout << N_("Error: Invalid Value for table_def_size"); | 998 | cout << _("Error: Invalid Value for table_def_size"); |
585 | 999 | exit(-1); | 999 | exit(-1); |
586 | 1000 | } | 1000 | } |
587 | 1001 | table_def_size= in_table_def_size; | 1001 | table_def_size= in_table_def_size; |
588 | @@ -1006,7 +1006,7 @@ | |||
589 | 1006 | table_cache_size= TABLE_OPEN_CACHE_DEFAULT; | 1006 | table_cache_size= TABLE_OPEN_CACHE_DEFAULT; |
590 | 1007 | if (in_table_cache_size < TABLE_OPEN_CACHE_MIN || in_table_cache_size > 512*1024L) | 1007 | if (in_table_cache_size < TABLE_OPEN_CACHE_MIN || in_table_cache_size > 512*1024L) |
591 | 1008 | { | 1008 | { |
593 | 1009 | cout << N_("Error: Invalid Value for table_cache_size"); | 1009 | cout << _("Error: Invalid Value for table_cache_size"); |
594 | 1010 | exit(-1); | 1010 | exit(-1); |
595 | 1011 | } | 1011 | } |
596 | 1012 | table_cache_size= in_table_cache_size; | 1012 | table_cache_size= in_table_cache_size; |
597 | @@ -1017,7 +1017,7 @@ | |||
598 | 1017 | table_lock_wait_timeout= 50; | 1017 | table_lock_wait_timeout= 50; |
599 | 1018 | if (in_table_lock_wait_timeout < 1 || in_table_lock_wait_timeout > 1024*1024*1024) | 1018 | if (in_table_lock_wait_timeout < 1 || in_table_lock_wait_timeout > 1024*1024*1024) |
600 | 1019 | { | 1019 | { |
602 | 1020 | cout << N_("Error: Invalid Value for table_lock_wait_timeout"); | 1020 | cout << _("Error: Invalid Value for table_lock_wait_timeout"); |
603 | 1021 | exit(-1); | 1021 | exit(-1); |
604 | 1022 | } | 1022 | } |
605 | 1023 | table_lock_wait_timeout= in_table_lock_wait_timeout; | 1023 | table_lock_wait_timeout= in_table_lock_wait_timeout; |
606 | @@ -1033,7 +1033,7 @@ | |||
607 | 1033 | global_system_variables.tmp_table_size= 16*1024*1024L; | 1033 | global_system_variables.tmp_table_size= 16*1024*1024L; |
608 | 1034 | if (in_tmp_table_size < 1024 || in_tmp_table_size > MAX_MEM_TABLE_SIZE) | 1034 | if (in_tmp_table_size < 1024 || in_tmp_table_size > MAX_MEM_TABLE_SIZE) |
609 | 1035 | { | 1035 | { |
611 | 1036 | cout << N_("Error: Invalid Value for table_lock_wait_timeout"); | 1036 | cout << _("Error: Invalid Value for table_lock_wait_timeout"); |
612 | 1037 | exit(-1); | 1037 | exit(-1); |
613 | 1038 | } | 1038 | } |
614 | 1039 | global_system_variables.tmp_table_size= in_tmp_table_size; | 1039 | global_system_variables.tmp_table_size= in_tmp_table_size; |
615 | @@ -1044,7 +1044,7 @@ | |||
616 | 1044 | global_system_variables.transaction_message_threshold= 1024*1024; | 1044 | global_system_variables.transaction_message_threshold= 1024*1024; |
617 | 1045 | if ((int64_t) in_transaction_message_threshold < 128*1024 || (int64_t)in_transaction_message_threshold > 1024*1024) | 1045 | if ((int64_t) in_transaction_message_threshold < 128*1024 || (int64_t)in_transaction_message_threshold > 1024*1024) |
618 | 1046 | { | 1046 | { |
620 | 1047 | cout << N_("Error: Invalid Value for transaction_message_threshold valid values are between 131072 - 1048576 bytes"); | 1047 | cout << _("Error: Invalid Value for transaction_message_threshold valid values are between 131072 - 1048576 bytes"); |
621 | 1048 | exit(-1); | 1048 | exit(-1); |
622 | 1049 | } | 1049 | } |
623 | 1050 | global_system_variables.transaction_message_threshold= in_transaction_message_threshold; | 1050 | global_system_variables.transaction_message_threshold= in_transaction_message_threshold; |
624 | @@ -1158,138 +1158,138 @@ | |||
625 | 1158 | 1158 | ||
626 | 1159 | config_options.add_options() | 1159 | config_options.add_options() |
627 | 1160 | ("help,?", po::value<bool>(&opt_help)->default_value(false)->zero_tokens(), | 1160 | ("help,?", po::value<bool>(&opt_help)->default_value(false)->zero_tokens(), |
629 | 1161 | N_("Display this help and exit.")) | 1161 | _("Display this help and exit.")) |
630 | 1162 | ("no-defaults", po::value<bool>()->default_value(false)->zero_tokens(), | 1162 | ("no-defaults", po::value<bool>()->default_value(false)->zero_tokens(), |
632 | 1163 | N_("Configuration file defaults are not used if no-defaults is set")) | 1163 | _("Configuration file defaults are not used if no-defaults is set")) |
633 | 1164 | ("defaults-file", po::value<vector<string> >()->composing()->notifier(&compose_defaults_file_list), | 1164 | ("defaults-file", po::value<vector<string> >()->composing()->notifier(&compose_defaults_file_list), |
635 | 1165 | N_("Configuration file to use")) | 1165 | _("Configuration file to use")) |
636 | 1166 | ("config-dir", po::value<fs::path>(&system_config_dir), | 1166 | ("config-dir", po::value<fs::path>(&system_config_dir), |
638 | 1167 | N_("Base location for config files")) | 1167 | _("Base location for config files")) |
639 | 1168 | ("plugin-dir", po::value<fs::path>(&plugin_dir)->notifier(¬ify_plugin_dir), | 1168 | ("plugin-dir", po::value<fs::path>(&plugin_dir)->notifier(¬ify_plugin_dir), |
641 | 1169 | N_("Directory for plugins.")) | 1169 | _("Directory for plugins.")) |
642 | 1170 | ; | 1170 | ; |
643 | 1171 | 1171 | ||
644 | 1172 | plugin_load_options.add_options() | 1172 | plugin_load_options.add_options() |
645 | 1173 | ("plugin-add", po::value<vector<string> >()->composing()->notifier(&compose_plugin_add), | 1173 | ("plugin-add", po::value<vector<string> >()->composing()->notifier(&compose_plugin_add), |
647 | 1174 | N_("Optional comma separated list of plugins to load at startup in addition " | 1174 | _("Optional comma separated list of plugins to load at startup in addition " |
648 | 1175 | "to the default list of plugins. " | 1175 | "to the default list of plugins. " |
649 | 1176 | "[for example: --plugin_add=crc32,logger_gearman]")) | 1176 | "[for example: --plugin_add=crc32,logger_gearman]")) |
650 | 1177 | ("plugin-remove", po::value<vector<string> >()->composing()->notifier(&compose_plugin_remove), | 1177 | ("plugin-remove", po::value<vector<string> >()->composing()->notifier(&compose_plugin_remove), |
652 | 1178 | N_("Optional comma separated list of plugins to not load at startup. Effectively " | 1178 | _("Optional comma separated list of plugins to not load at startup. Effectively " |
653 | 1179 | "removes a plugin from the list of plugins to be loaded. " | 1179 | "removes a plugin from the list of plugins to be loaded. " |
654 | 1180 | "[for example: --plugin_remove=crc32,logger_gearman]")) | 1180 | "[for example: --plugin_remove=crc32,logger_gearman]")) |
655 | 1181 | ("plugin-load", po::value<string>()->notifier(¬ify_plugin_load)->default_value(PANDORA_PLUGIN_LIST), | 1181 | ("plugin-load", po::value<string>()->notifier(¬ify_plugin_load)->default_value(PANDORA_PLUGIN_LIST), |
657 | 1182 | N_("Optional comma separated list of plugins to load at starup instead of " | 1182 | _("Optional comma separated list of plugins to load at starup instead of " |
658 | 1183 | "the default plugin load list. " | 1183 | "the default plugin load list. " |
659 | 1184 | "[for example: --plugin_load=crc32,logger_gearman]")) | 1184 | "[for example: --plugin_load=crc32,logger_gearman]")) |
660 | 1185 | ; | 1185 | ; |
661 | 1186 | 1186 | ||
662 | 1187 | long_options.add_options() | 1187 | long_options.add_options() |
663 | 1188 | ("auto-increment-increment", po::value<uint64_t>(&global_system_variables.auto_increment_increment)->default_value(1)->notifier(&check_limits_aii), | 1188 | ("auto-increment-increment", po::value<uint64_t>(&global_system_variables.auto_increment_increment)->default_value(1)->notifier(&check_limits_aii), |
665 | 1189 | N_("Auto-increment columns are incremented by this")) | 1189 | _("Auto-increment columns are incremented by this")) |
666 | 1190 | ("auto-increment-offset", po::value<uint64_t>(&global_system_variables.auto_increment_offset)->default_value(1)->notifier(&check_limits_aio), | 1190 | ("auto-increment-offset", po::value<uint64_t>(&global_system_variables.auto_increment_offset)->default_value(1)->notifier(&check_limits_aio), |
668 | 1191 | N_("Offset added to Auto-increment columns. Used when auto-increment-increment != 1")) | 1191 | _("Offset added to Auto-increment columns. Used when auto-increment-increment != 1")) |
669 | 1192 | ("basedir,b", po::value<fs::path>(&basedir), | 1192 | ("basedir,b", po::value<fs::path>(&basedir), |
671 | 1193 | N_("Path to installation directory. All paths are usually resolved " | 1193 | _("Path to installation directory. All paths are usually resolved " |
672 | 1194 | "relative to this.")) | 1194 | "relative to this.")) |
673 | 1195 | ("chroot,r", po::value<string>(), | 1195 | ("chroot,r", po::value<string>(), |
675 | 1196 | N_("Chroot drizzled daemon during startup.")) | 1196 | _("Chroot drizzled daemon during startup.")) |
676 | 1197 | ("collation-server", po::value<string>(), | 1197 | ("collation-server", po::value<string>(), |
678 | 1198 | N_("Set the default collation.")) | 1198 | _("Set the default collation.")) |
679 | 1199 | ("completion-type", po::value<uint32_t>(&global_system_variables.completion_type)->default_value(0)->notifier(&check_limits_completion_type), | 1199 | ("completion-type", po::value<uint32_t>(&global_system_variables.completion_type)->default_value(0)->notifier(&check_limits_completion_type), |
682 | 1200 | N_("Default completion type.")) | 1200 | _("Default completion type.")) |
683 | 1201 | ("core-file", N_("Write core on errors.")) | 1201 | ("core-file", _("Write core on errors.")) |
684 | 1202 | ("datadir", po::value<fs::path>(&data_home), | 1202 | ("datadir", po::value<fs::path>(&data_home), |
686 | 1203 | N_("Path to the database root.")) | 1203 | _("Path to the database root.")) |
687 | 1204 | ("default-storage-engine", po::value<string>(), | 1204 | ("default-storage-engine", po::value<string>(), |
689 | 1205 | N_("Set the default storage engine for tables.")) | 1205 | _("Set the default storage engine for tables.")) |
690 | 1206 | ("default-time-zone", po::value<string>(), | 1206 | ("default-time-zone", po::value<string>(), |
692 | 1207 | N_("Set the default time zone.")) | 1207 | _("Set the default time zone.")) |
693 | 1208 | ("exit-info,T", po::value<long>(), | 1208 | ("exit-info,T", po::value<long>(), |
695 | 1209 | N_("Used for debugging; Use at your own risk!")) | 1209 | _("Used for debugging; Use at your own risk!")) |
696 | 1210 | ("gdb", po::value<bool>(&opt_debugging)->default_value(false)->zero_tokens(), | 1210 | ("gdb", po::value<bool>(&opt_debugging)->default_value(false)->zero_tokens(), |
698 | 1211 | N_("Set up signals usable for debugging")) | 1211 | _("Set up signals usable for debugging")) |
699 | 1212 | ("lc-time-name", po::value<string>(), | 1212 | ("lc-time-name", po::value<string>(), |
701 | 1213 | N_("Set the language used for the month names and the days of the week.")) | 1213 | _("Set the language used for the month names and the days of the week.")) |
702 | 1214 | ("log-warnings,W", po::value<bool>(&global_system_variables.log_warnings)->default_value(false)->zero_tokens(), | 1214 | ("log-warnings,W", po::value<bool>(&global_system_variables.log_warnings)->default_value(false)->zero_tokens(), |
704 | 1215 | N_("Log some not critical warnings to the log file.")) | 1215 | _("Log some not critical warnings to the log file.")) |
705 | 1216 | ("pid-file", po::value<fs::path>(&pid_file), | 1216 | ("pid-file", po::value<fs::path>(&pid_file), |
707 | 1217 | N_("Pid file used by drizzled.")) | 1217 | _("Pid file used by drizzled.")) |
708 | 1218 | ("port-open-timeout", po::value<uint32_t>(&drizzled_bind_timeout)->default_value(0), | 1218 | ("port-open-timeout", po::value<uint32_t>(&drizzled_bind_timeout)->default_value(0), |
710 | 1219 | N_("Maximum time in seconds to wait for the port to become free. ")) | 1219 | _("Maximum time in seconds to wait for the port to become free. ")) |
711 | 1220 | ("replicate-query", po::value<bool>(&global_system_variables.replicate_query)->default_value(false)->zero_tokens(), | 1220 | ("replicate-query", po::value<bool>(&global_system_variables.replicate_query)->default_value(false)->zero_tokens(), |
713 | 1221 | N_("Include the SQL query in replicated protobuf messages.")) | 1221 | _("Include the SQL query in replicated protobuf messages.")) |
714 | 1222 | ("secure-file-priv", po::value<fs::path>(&secure_file_priv)->notifier(expand_secure_file_priv), | 1222 | ("secure-file-priv", po::value<fs::path>(&secure_file_priv)->notifier(expand_secure_file_priv), |
716 | 1223 | N_("Limit LOAD DATA, SELECT ... OUTFILE, and LOAD_FILE() to files " | 1223 | _("Limit LOAD DATA, SELECT ... OUTFILE, and LOAD_FILE() to files " |
717 | 1224 | "within specified directory")) | 1224 | "within specified directory")) |
718 | 1225 | ("server-id", po::value<uint32_t>(&server_id)->default_value(0), | 1225 | ("server-id", po::value<uint32_t>(&server_id)->default_value(0), |
720 | 1226 | N_("Uniquely identifies the server instance in the community of " | 1226 | _("Uniquely identifies the server instance in the community of " |
721 | 1227 | "replication partners.")) | 1227 | "replication partners.")) |
722 | 1228 | ("skip-stack-trace", | 1228 | ("skip-stack-trace", |
724 | 1229 | N_("Don't print a stack trace on failure.")) | 1229 | _("Don't print a stack trace on failure.")) |
725 | 1230 | ("symbolic-links,s", po::value<bool>(&internal::my_use_symdir)->default_value(IF_PURIFY(false,true))->zero_tokens(), | 1230 | ("symbolic-links,s", po::value<bool>(&internal::my_use_symdir)->default_value(IF_PURIFY(false,true))->zero_tokens(), |
727 | 1231 | N_("Enable symbolic link support.")) | 1231 | _("Enable symbolic link support.")) |
728 | 1232 | ("timed-mutexes", po::value<bool>(&internal::timed_mutexes)->default_value(false)->zero_tokens(), | 1232 | ("timed-mutexes", po::value<bool>(&internal::timed_mutexes)->default_value(false)->zero_tokens(), |
730 | 1233 | N_("Specify whether to time mutexes (only InnoDB mutexes are currently " | 1233 | _("Specify whether to time mutexes (only InnoDB mutexes are currently " |
731 | 1234 | "supported)")) | 1234 | "supported)")) |
732 | 1235 | ("tmpdir,t", po::value<string>(), | 1235 | ("tmpdir,t", po::value<string>(), |
734 | 1236 | N_("Path for temporary files.")) | 1236 | _("Path for temporary files.")) |
735 | 1237 | ("transaction-isolation", po::value<string>(), | 1237 | ("transaction-isolation", po::value<string>(), |
737 | 1238 | N_("Default transaction isolation level.")) | 1238 | _("Default transaction isolation level.")) |
738 | 1239 | ("transaction-message-threshold", po::value<size_t>(&global_system_variables.transaction_message_threshold)->default_value(1024*1024)->notifier(&check_limits_transaction_message_threshold), | 1239 | ("transaction-message-threshold", po::value<size_t>(&global_system_variables.transaction_message_threshold)->default_value(1024*1024)->notifier(&check_limits_transaction_message_threshold), |
740 | 1240 | N_("Max message size written to transaction log, valid values 131072 - 1048576 bytes.")) | 1240 | _("Max message size written to transaction log, valid values 131072 - 1048576 bytes.")) |
741 | 1241 | ("user,u", po::value<string>(), | 1241 | ("user,u", po::value<string>(), |
743 | 1242 | N_("Run drizzled daemon as user.")) | 1242 | _("Run drizzled daemon as user.")) |
744 | 1243 | ("version,V", | 1243 | ("version,V", |
746 | 1244 | N_("Output version information and exit.")) | 1244 | _("Output version information and exit.")) |
747 | 1245 | ("back-log", po::value<back_log_constraints>(&back_log), | 1245 | ("back-log", po::value<back_log_constraints>(&back_log), |
749 | 1246 | N_("The number of outstanding connection requests Drizzle can have. This " | 1246 | _("The number of outstanding connection requests Drizzle can have. This " |
750 | 1247 | "comes into play when the main Drizzle thread gets very many connection " | 1247 | "comes into play when the main Drizzle thread gets very many connection " |
751 | 1248 | "requests in a very short time.")) | 1248 | "requests in a very short time.")) |
752 | 1249 | ("bulk-insert-buffer-size", | 1249 | ("bulk-insert-buffer-size", |
753 | 1250 | po::value<uint64_t>(&global_system_variables.bulk_insert_buff_size)->default_value(8192*1024), | 1250 | po::value<uint64_t>(&global_system_variables.bulk_insert_buff_size)->default_value(8192*1024), |
755 | 1251 | N_("Size of tree cache used in bulk insert optimization. Note that this is " | 1251 | _("Size of tree cache used in bulk insert optimization. Note that this is " |
756 | 1252 | "a limit per thread!")) | 1252 | "a limit per thread!")) |
757 | 1253 | ("div-precision-increment", po::value<uint32_t>(&global_system_variables.div_precincrement)->default_value(4)->notifier(&check_limits_dpi), | 1253 | ("div-precision-increment", po::value<uint32_t>(&global_system_variables.div_precincrement)->default_value(4)->notifier(&check_limits_dpi), |
759 | 1254 | N_("Precision of the result of '/' operator will be increased on that " | 1254 | _("Precision of the result of '/' operator will be increased on that " |
760 | 1255 | "value.")) | 1255 | "value.")) |
761 | 1256 | ("group-concat-max-len", po::value<uint64_t>(&global_system_variables.group_concat_max_len)->default_value(1024)->notifier(&check_limits_gcml), | 1256 | ("group-concat-max-len", po::value<uint64_t>(&global_system_variables.group_concat_max_len)->default_value(1024)->notifier(&check_limits_gcml), |
763 | 1257 | N_("The maximum length of the result of function group_concat.")) | 1257 | _("The maximum length of the result of function group_concat.")) |
764 | 1258 | ("join-buffer-size", po::value<uint64_t>(&global_system_variables.join_buff_size)->default_value(128*1024L)->notifier(&check_limits_join_buffer_size), | 1258 | ("join-buffer-size", po::value<uint64_t>(&global_system_variables.join_buff_size)->default_value(128*1024L)->notifier(&check_limits_join_buffer_size), |
766 | 1259 | N_("The size of the buffer that is used for full joins.")) | 1259 | _("The size of the buffer that is used for full joins.")) |
767 | 1260 | ("join-heap-threshold", | 1260 | ("join-heap-threshold", |
768 | 1261 | po::value<uint64_t>()->default_value(0), | 1261 | po::value<uint64_t>()->default_value(0), |
770 | 1262 | N_("A global cap on the amount of memory that can be allocated by session join buffers (0 means unlimited)")) | 1262 | _("A global cap on the amount of memory that can be allocated by session join buffers (0 means unlimited)")) |
771 | 1263 | ("max-allowed-packet", po::value<uint32_t>(&global_system_variables.max_allowed_packet)->default_value(64*1024*1024L)->notifier(&check_limits_map), | 1263 | ("max-allowed-packet", po::value<uint32_t>(&global_system_variables.max_allowed_packet)->default_value(64*1024*1024L)->notifier(&check_limits_map), |
773 | 1264 | N_("Max packetlength to send/receive from to server.")) | 1264 | _("Max packetlength to send/receive from to server.")) |
774 | 1265 | ("max-connect-errors", po::value<uint64_t>(&max_connect_errors)->default_value(MAX_CONNECT_ERRORS)->notifier(&check_limits_mce), | 1265 | ("max-connect-errors", po::value<uint64_t>(&max_connect_errors)->default_value(MAX_CONNECT_ERRORS)->notifier(&check_limits_mce), |
776 | 1266 | N_("If there is more than this number of interrupted connections from a " | 1266 | _("If there is more than this number of interrupted connections from a " |
777 | 1267 | "host this host will be blocked from further connections.")) | 1267 | "host this host will be blocked from further connections.")) |
778 | 1268 | ("max-error-count", po::value<uint64_t>(&global_system_variables.max_error_count)->default_value(DEFAULT_ERROR_COUNT)->notifier(&check_limits_max_err_cnt), | 1268 | ("max-error-count", po::value<uint64_t>(&global_system_variables.max_error_count)->default_value(DEFAULT_ERROR_COUNT)->notifier(&check_limits_max_err_cnt), |
780 | 1269 | N_("Max number of errors/warnings to store for a statement.")) | 1269 | _("Max number of errors/warnings to store for a statement.")) |
781 | 1270 | ("max-heap-table-size", po::value<uint64_t>(&global_system_variables.max_heap_table_size)->default_value(16*1024*1024L)->notifier(&check_limits_mhts), | 1270 | ("max-heap-table-size", po::value<uint64_t>(&global_system_variables.max_heap_table_size)->default_value(16*1024*1024L)->notifier(&check_limits_mhts), |
783 | 1271 | N_("Don't allow creation of heap tables bigger than this.")) | 1271 | _("Don't allow creation of heap tables bigger than this.")) |
784 | 1272 | ("max-join-size", po::value<drizzled::ha_rows>(&global_system_variables.max_join_size)->default_value(INT32_MAX)->notifier(&check_limits_max_join_size), | 1272 | ("max-join-size", po::value<drizzled::ha_rows>(&global_system_variables.max_join_size)->default_value(INT32_MAX)->notifier(&check_limits_max_join_size), |
786 | 1273 | N_("Joins that are probably going to read more than max_join_size records " | 1273 | _("Joins that are probably going to read more than max_join_size records " |
787 | 1274 | "return an error.")) | 1274 | "return an error.")) |
788 | 1275 | ("max-length-for-sort-data", po::value<uint64_t>(&global_system_variables.max_length_for_sort_data)->default_value(1024)->notifier(&check_limits_mlfsd), | 1275 | ("max-length-for-sort-data", po::value<uint64_t>(&global_system_variables.max_length_for_sort_data)->default_value(1024)->notifier(&check_limits_mlfsd), |
790 | 1276 | N_("Max number of bytes in sorted records.")) | 1276 | _("Max number of bytes in sorted records.")) |
791 | 1277 | ("max-seeks-for-key", po::value<uint64_t>(&global_system_variables.max_seeks_for_key)->default_value(ULONG_MAX)->notifier(&check_limits_msfk), | 1277 | ("max-seeks-for-key", po::value<uint64_t>(&global_system_variables.max_seeks_for_key)->default_value(ULONG_MAX)->notifier(&check_limits_msfk), |
793 | 1278 | N_("Limit assumed max number of seeks when looking up rows based on a key")) | 1278 | _("Limit assumed max number of seeks when looking up rows based on a key")) |
794 | 1279 | ("max-sort-length", po::value<size_t>(&global_system_variables.max_sort_length)->default_value(1024)->notifier(&check_limits_max_sort_length), | 1279 | ("max-sort-length", po::value<size_t>(&global_system_variables.max_sort_length)->default_value(1024)->notifier(&check_limits_max_sort_length), |
796 | 1280 | N_("The number of bytes to use when sorting BLOB or TEXT values " | 1280 | _("The number of bytes to use when sorting BLOB or TEXT values " |
797 | 1281 | "(only the first max_sort_length bytes of each value are used; the " | 1281 | "(only the first max_sort_length bytes of each value are used; the " |
798 | 1282 | "rest are ignored).")) | 1282 | "rest are ignored).")) |
799 | 1283 | ("max-write-lock-count", po::value<uint64_t>(&max_write_lock_count)->default_value(UINT64_MAX), | 1283 | ("max-write-lock-count", po::value<uint64_t>(&max_write_lock_count)->default_value(UINT64_MAX), |
801 | 1284 | N_("After this many write locks, allow some read locks to run in between.")) | 1284 | _("After this many write locks, allow some read locks to run in between.")) |
802 | 1285 | ("min-examined-row-limit", po::value<uint64_t>(&global_system_variables.min_examined_row_limit)->default_value(0)->notifier(&check_limits_merl), | 1285 | ("min-examined-row-limit", po::value<uint64_t>(&global_system_variables.min_examined_row_limit)->default_value(0)->notifier(&check_limits_merl), |
804 | 1286 | N_("Don't log queries which examine less than min_examined_row_limit " | 1286 | _("Don't log queries which examine less than min_examined_row_limit " |
805 | 1287 | "rows to file.")) | 1287 | "rows to file.")) |
806 | 1288 | ("disable-optimizer-prune", | 1288 | ("disable-optimizer-prune", |
808 | 1289 | N_("Do not apply any heuristic(s) during query optimization to prune, " | 1289 | _("Do not apply any heuristic(s) during query optimization to prune, " |
809 | 1290 | "thus perform an exhaustive search from the optimizer search space.")) | 1290 | "thus perform an exhaustive search from the optimizer search space.")) |
810 | 1291 | ("optimizer-search-depth", po::value<uint32_t>(&global_system_variables.optimizer_search_depth)->default_value(0)->notifier(&check_limits_osd), | 1291 | ("optimizer-search-depth", po::value<uint32_t>(&global_system_variables.optimizer_search_depth)->default_value(0)->notifier(&check_limits_osd), |
812 | 1292 | N_("Maximum depth of search performed by the query optimizer. Values " | 1292 | _("Maximum depth of search performed by the query optimizer. Values " |
813 | 1293 | "larger than the number of relations in a query result in better query " | 1293 | "larger than the number of relations in a query result in better query " |
814 | 1294 | "plans, but take longer to compile a query. Smaller values than the " | 1294 | "plans, but take longer to compile a query. Smaller values than the " |
815 | 1295 | "number of tables in a relation result in faster optimization, but may " | 1295 | "number of tables in a relation result in faster optimization, but may " |
816 | @@ -1298,52 +1298,52 @@ | |||
817 | 1298 | "optimizer will switch to the original find_best (used for " | 1298 | "optimizer will switch to the original find_best (used for " |
818 | 1299 | "testing/comparison).")) | 1299 | "testing/comparison).")) |
819 | 1300 | ("preload-buffer-size", po::value<uint64_t>(&global_system_variables.preload_buff_size)->default_value(32*1024L)->notifier(&check_limits_pbs), | 1300 | ("preload-buffer-size", po::value<uint64_t>(&global_system_variables.preload_buff_size)->default_value(32*1024L)->notifier(&check_limits_pbs), |
821 | 1301 | N_("The size of the buffer that is allocated when preloading indexes")) | 1301 | _("The size of the buffer that is allocated when preloading indexes")) |
822 | 1302 | ("query-alloc-block-size", | 1302 | ("query-alloc-block-size", |
823 | 1303 | po::value<uint32_t>(&global_system_variables.query_alloc_block_size)->default_value(QUERY_ALLOC_BLOCK_SIZE)->notifier(&check_limits_qabs), | 1303 | po::value<uint32_t>(&global_system_variables.query_alloc_block_size)->default_value(QUERY_ALLOC_BLOCK_SIZE)->notifier(&check_limits_qabs), |
825 | 1304 | N_("Allocation block size for query parsing and execution")) | 1304 | _("Allocation block size for query parsing and execution")) |
826 | 1305 | ("query-prealloc-size", | 1305 | ("query-prealloc-size", |
827 | 1306 | po::value<uint32_t>(&global_system_variables.query_prealloc_size)->default_value(QUERY_ALLOC_PREALLOC_SIZE)->notifier(&check_limits_qps), | 1306 | po::value<uint32_t>(&global_system_variables.query_prealloc_size)->default_value(QUERY_ALLOC_PREALLOC_SIZE)->notifier(&check_limits_qps), |
829 | 1307 | N_("Persistent buffer for query parsing and execution")) | 1307 | _("Persistent buffer for query parsing and execution")) |
830 | 1308 | ("range-alloc-block-size", | 1308 | ("range-alloc-block-size", |
831 | 1309 | po::value<size_t>(&global_system_variables.range_alloc_block_size)->default_value(RANGE_ALLOC_BLOCK_SIZE)->notifier(&check_limits_rabs), | 1309 | po::value<size_t>(&global_system_variables.range_alloc_block_size)->default_value(RANGE_ALLOC_BLOCK_SIZE)->notifier(&check_limits_rabs), |
833 | 1310 | N_("Allocation block size for storing ranges during optimization")) | 1310 | _("Allocation block size for storing ranges during optimization")) |
834 | 1311 | ("read-buffer-size", | 1311 | ("read-buffer-size", |
835 | 1312 | po::value<uint32_t>(&global_system_variables.read_buff_size)->default_value(128*1024L)->notifier(&check_limits_read_buffer_size), | 1312 | po::value<uint32_t>(&global_system_variables.read_buff_size)->default_value(128*1024L)->notifier(&check_limits_read_buffer_size), |
837 | 1313 | N_("Each thread that does a sequential scan allocates a buffer of this " | 1313 | _("Each thread that does a sequential scan allocates a buffer of this " |
838 | 1314 | "size for each table it scans. If you do many sequential scans, you may " | 1314 | "size for each table it scans. If you do many sequential scans, you may " |
839 | 1315 | "want to increase this value.")) | 1315 | "want to increase this value.")) |
840 | 1316 | ("read-buffer-threshold", | 1316 | ("read-buffer-threshold", |
841 | 1317 | po::value<uint64_t>()->default_value(0), | 1317 | po::value<uint64_t>()->default_value(0), |
843 | 1318 | N_("A global cap on the size of read-buffer-size (0 means unlimited)")) | 1318 | _("A global cap on the size of read-buffer-size (0 means unlimited)")) |
844 | 1319 | ("read-rnd-buffer-size", | 1319 | ("read-rnd-buffer-size", |
845 | 1320 | po::value<uint32_t>(&global_system_variables.read_rnd_buff_size)->default_value(256*1024L)->notifier(&check_limits_read_rnd_buffer_size), | 1320 | po::value<uint32_t>(&global_system_variables.read_rnd_buff_size)->default_value(256*1024L)->notifier(&check_limits_read_rnd_buffer_size), |
847 | 1321 | N_("When reading rows in sorted order after a sort, the rows are read " | 1321 | _("When reading rows in sorted order after a sort, the rows are read " |
848 | 1322 | "through this buffer to avoid a disk seeks. If not set, then it's set " | 1322 | "through this buffer to avoid a disk seeks. If not set, then it's set " |
849 | 1323 | "to the value of record_buffer.")) | 1323 | "to the value of record_buffer.")) |
850 | 1324 | ("read-rnd-threshold", | 1324 | ("read-rnd-threshold", |
851 | 1325 | po::value<uint64_t>()->default_value(0), | 1325 | po::value<uint64_t>()->default_value(0), |
853 | 1326 | N_("A global cap on the size of read-rnd-buffer-size (0 means unlimited)")) | 1326 | _("A global cap on the size of read-rnd-buffer-size (0 means unlimited)")) |
854 | 1327 | ("scheduler", po::value<string>(), | 1327 | ("scheduler", po::value<string>(), |
856 | 1328 | N_("Select scheduler to be used (by default multi-thread).")) | 1328 | _("Select scheduler to be used (by default multi-thread).")) |
857 | 1329 | ("sort-buffer-size", | 1329 | ("sort-buffer-size", |
858 | 1330 | po::value<size_t>(&global_system_variables.sortbuff_size)->default_value(MAX_SORT_MEMORY)->notifier(&check_limits_sort_buffer_size), | 1330 | po::value<size_t>(&global_system_variables.sortbuff_size)->default_value(MAX_SORT_MEMORY)->notifier(&check_limits_sort_buffer_size), |
860 | 1331 | N_("Each thread that needs to do a sort allocates a buffer of this size.")) | 1331 | _("Each thread that needs to do a sort allocates a buffer of this size.")) |
861 | 1332 | ("sort-heap-threshold", | 1332 | ("sort-heap-threshold", |
862 | 1333 | po::value<uint64_t>()->default_value(0), | 1333 | po::value<uint64_t>()->default_value(0), |
864 | 1334 | N_("A global cap on the amount of memory that can be allocated by session sort buffers (0 means unlimited)")) | 1334 | _("A global cap on the amount of memory that can be allocated by session sort buffers (0 means unlimited)")) |
865 | 1335 | ("table-definition-cache", po::value<size_t>(&table_def_size)->default_value(128)->notifier(&check_limits_tdc), | 1335 | ("table-definition-cache", po::value<size_t>(&table_def_size)->default_value(128)->notifier(&check_limits_tdc), |
867 | 1336 | N_("The number of cached table definitions.")) | 1336 | _("The number of cached table definitions.")) |
868 | 1337 | ("table-open-cache", po::value<uint64_t>(&table_cache_size)->default_value(TABLE_OPEN_CACHE_DEFAULT)->notifier(&check_limits_toc), | 1337 | ("table-open-cache", po::value<uint64_t>(&table_cache_size)->default_value(TABLE_OPEN_CACHE_DEFAULT)->notifier(&check_limits_toc), |
870 | 1338 | N_("The number of cached open tables.")) | 1338 | _("The number of cached open tables.")) |
871 | 1339 | ("table-lock-wait-timeout", po::value<uint64_t>(&table_lock_wait_timeout)->default_value(50)->notifier(&check_limits_tlwt), | 1339 | ("table-lock-wait-timeout", po::value<uint64_t>(&table_lock_wait_timeout)->default_value(50)->notifier(&check_limits_tlwt), |
873 | 1340 | N_("Timeout in seconds to wait for a table level lock before returning an " | 1340 | _("Timeout in seconds to wait for a table level lock before returning an " |
874 | 1341 | "error. Used only if the connection has active cursors.")) | 1341 | "error. Used only if the connection has active cursors.")) |
875 | 1342 | ("thread-stack", po::value<size_t>(&my_thread_stack_size)->default_value(DEFAULT_THREAD_STACK)->notifier(&check_limits_thread_stack), | 1342 | ("thread-stack", po::value<size_t>(&my_thread_stack_size)->default_value(DEFAULT_THREAD_STACK)->notifier(&check_limits_thread_stack), |
877 | 1343 | N_("The stack size for each thread.")) | 1343 | _("The stack size for each thread.")) |
878 | 1344 | ("tmp-table-size", | 1344 | ("tmp-table-size", |
879 | 1345 | po::value<uint64_t>(&global_system_variables.tmp_table_size)->default_value(16*1024*1024L)->notifier(&check_limits_tmp_table_size), | 1345 | po::value<uint64_t>(&global_system_variables.tmp_table_size)->default_value(16*1024*1024L)->notifier(&check_limits_tmp_table_size), |
881 | 1346 | N_("If an internal in-memory temporary table exceeds this size, Drizzle will" | 1346 | _("If an internal in-memory temporary table exceeds this size, Drizzle will" |
882 | 1347 | " automatically convert it to an on-disk MyISAM table.")) | 1347 | " automatically convert it to an on-disk MyISAM table.")) |
883 | 1348 | ; | 1348 | ; |
884 | 1349 | 1349 | ||
885 | @@ -2234,7 +2234,7 @@ | |||
886 | 2234 | (vm["sort-heap-threshold"].as<uint64_t>() < | 2234 | (vm["sort-heap-threshold"].as<uint64_t>() < |
887 | 2235 | global_system_variables.sortbuff_size)) | 2235 | global_system_variables.sortbuff_size)) |
888 | 2236 | { | 2236 | { |
890 | 2237 | cout << N_("Error: sort-heap-threshold cannot be less than sort-buffer-size") << endl; | 2237 | cout << _("Error: sort-heap-threshold cannot be less than sort-buffer-size") << endl; |
891 | 2238 | exit(-1); | 2238 | exit(-1); |
892 | 2239 | } | 2239 | } |
893 | 2240 | 2240 | ||
894 | @@ -2247,7 +2247,7 @@ | |||
895 | 2247 | (vm["join-heap-threshold"].as<uint64_t>() < | 2247 | (vm["join-heap-threshold"].as<uint64_t>() < |
896 | 2248 | global_system_variables.join_buff_size)) | 2248 | global_system_variables.join_buff_size)) |
897 | 2249 | { | 2249 | { |
899 | 2250 | cout << N_("Error: join-heap-threshold cannot be less than join-buffer-size") << endl; | 2250 | cout << _("Error: join-heap-threshold cannot be less than join-buffer-size") << endl; |
900 | 2251 | exit(-1); | 2251 | exit(-1); |
901 | 2252 | } | 2252 | } |
902 | 2253 | 2253 | ||
903 | @@ -2260,7 +2260,7 @@ | |||
904 | 2260 | (vm["read-rnd-threshold"].as<uint64_t>() < | 2260 | (vm["read-rnd-threshold"].as<uint64_t>() < |
905 | 2261 | global_system_variables.read_rnd_buff_size)) | 2261 | global_system_variables.read_rnd_buff_size)) |
906 | 2262 | { | 2262 | { |
908 | 2263 | cout << N_("Error: read-rnd-threshold cannot be less than read-rnd-buffer-size") << endl; | 2263 | cout << _("Error: read-rnd-threshold cannot be less than read-rnd-buffer-size") << endl; |
909 | 2264 | exit(-1); | 2264 | exit(-1); |
910 | 2265 | } | 2265 | } |
911 | 2266 | 2266 | ||
912 | @@ -2273,7 +2273,7 @@ | |||
913 | 2273 | (vm["read-buffer-threshold"].as<uint64_t>() < | 2273 | (vm["read-buffer-threshold"].as<uint64_t>() < |
914 | 2274 | global_system_variables.read_buff_size)) | 2274 | global_system_variables.read_buff_size)) |
915 | 2275 | { | 2275 | { |
917 | 2276 | cout << N_("Error: read-buffer-threshold cannot be less than read-buffer-size") << endl; | 2276 | cout << _("Error: read-buffer-threshold cannot be less than read-buffer-size") << endl; |
918 | 2277 | exit(-1); | 2277 | exit(-1); |
919 | 2278 | } | 2278 | } |
920 | 2279 | 2279 | ||
921 | 2280 | 2280 | ||
922 | === modified file 'drizzled/main.cc' | |||
923 | --- drizzled/main.cc 2010-12-30 15:27:27 +0000 | |||
924 | +++ drizzled/main.cc 2011-01-10 20:36:11 +0000 | |||
925 | @@ -221,8 +221,8 @@ | |||
926 | 221 | # if defined(HAVE_LOCALE_H) | 221 | # if defined(HAVE_LOCALE_H) |
927 | 222 | setlocale(LC_ALL, ""); | 222 | setlocale(LC_ALL, ""); |
928 | 223 | # endif | 223 | # endif |
931 | 224 | bindtextdomain("drizzle", LOCALEDIR); | 224 | bindtextdomain("drizzle7", LOCALEDIR); |
932 | 225 | textdomain("drizzle"); | 225 | textdomain("drizzle7"); |
933 | 226 | #endif | 226 | #endif |
934 | 227 | 227 | ||
935 | 228 | module::Registry &modules= module::Registry::singleton(); | 228 | module::Registry &modules= module::Registry::singleton(); |
936 | 229 | 229 | ||
937 | === modified file 'plugin/logging_gearman/logging_gearman.cc' | |||
938 | --- plugin/logging_gearman/logging_gearman.cc 2011-01-01 03:24:09 +0000 | |||
939 | +++ plugin/logging_gearman/logging_gearman.cc 2011-01-10 20:36:11 +0000 | |||
940 | @@ -299,10 +299,10 @@ | |||
941 | 299 | { | 299 | { |
942 | 300 | context("host", | 300 | context("host", |
943 | 301 | po::value<std::string>()->default_value("localhost"), | 301 | po::value<std::string>()->default_value("localhost"), |
945 | 302 | N_("Hostname for logging to a Gearman server")); | 302 | _("Hostname for logging to a Gearman server")); |
946 | 303 | context("function", | 303 | context("function", |
947 | 304 | po::value<std::string>()->default_value("drizzlelog"), | 304 | po::value<std::string>()->default_value("drizzlelog"), |
949 | 305 | N_("Gearman Function to send logging to")); | 305 | _("Gearman Function to send logging to")); |
950 | 306 | } | 306 | } |
951 | 307 | 307 | ||
952 | 308 | } /* namespace drizzle_plugin */ | 308 | } /* namespace drizzle_plugin */ |
953 | 309 | 309 | ||
954 | === modified file 'plugin/logging_query/logging_query.cc' | |||
955 | --- plugin/logging_query/logging_query.cc 2010-12-31 21:25:11 +0000 | |||
956 | +++ plugin/logging_query/logging_query.cc 2011-01-10 20:36:11 +0000 | |||
957 | @@ -316,22 +316,22 @@ | |||
958 | 316 | { | 316 | { |
959 | 317 | context("enable", | 317 | context("enable", |
960 | 318 | po::value<bool>(&sysvar_logging_query_enable)->default_value(false)->zero_tokens(), | 318 | po::value<bool>(&sysvar_logging_query_enable)->default_value(false)->zero_tokens(), |
962 | 319 | N_("Enable logging to CSV file")); | 319 | _("Enable logging to CSV file")); |
963 | 320 | context("filename", | 320 | context("filename", |
964 | 321 | po::value<string>(), | 321 | po::value<string>(), |
966 | 322 | N_("File to log to")); | 322 | _("File to log to")); |
967 | 323 | context("pcre", | 323 | context("pcre", |
968 | 324 | po::value<string>()->default_value(""), | 324 | po::value<string>()->default_value(""), |
970 | 325 | N_("PCRE to match the query against")); | 325 | _("PCRE to match the query against")); |
971 | 326 | context("threshold-slow", | 326 | context("threshold-slow", |
972 | 327 | po::value<uint32_constraint>(&sysvar_logging_query_threshold_slow)->default_value(0), | 327 | po::value<uint32_constraint>(&sysvar_logging_query_threshold_slow)->default_value(0), |
974 | 328 | N_("Threshold for logging slow queries, in microseconds")); | 328 | _("Threshold for logging slow queries, in microseconds")); |
975 | 329 | context("threshold-big-resultset", | 329 | context("threshold-big-resultset", |
976 | 330 | po::value<uint32_constraint>(&sysvar_logging_query_threshold_big_resultset)->default_value(0), | 330 | po::value<uint32_constraint>(&sysvar_logging_query_threshold_big_resultset)->default_value(0), |
978 | 331 | N_("Threshold for logging big queries, for rows returned")); | 331 | _("Threshold for logging big queries, for rows returned")); |
979 | 332 | context("threshold-big-examined", | 332 | context("threshold-big-examined", |
980 | 333 | po::value<uint32_constraint>(&sysvar_logging_query_threshold_big_examined)->default_value(0), | 333 | po::value<uint32_constraint>(&sysvar_logging_query_threshold_big_examined)->default_value(0), |
982 | 334 | N_("Threshold for logging big queries, for rows examined")); | 334 | _("Threshold for logging big queries, for rows examined")); |
983 | 335 | } | 335 | } |
984 | 336 | 336 | ||
985 | 337 | } /* namespace drizzle_plugin */ | 337 | } /* namespace drizzle_plugin */ |
986 | 338 | 338 | ||
987 | === modified file 'plugin/logging_stats/logging_stats.cc' | |||
988 | --- plugin/logging_stats/logging_stats.cc 2011-01-01 01:54:09 +0000 | |||
989 | +++ plugin/logging_stats/logging_stats.cc 2011-01-10 20:36:11 +0000 | |||
990 | @@ -370,14 +370,14 @@ | |||
991 | 370 | { | 370 | { |
992 | 371 | context("max-user-count", | 371 | context("max-user-count", |
993 | 372 | po::value<max_user_count_constraint>(&sysvar_logging_stats_max_user_count)->default_value(500), | 372 | po::value<max_user_count_constraint>(&sysvar_logging_stats_max_user_count)->default_value(500), |
995 | 373 | N_("Max number of users that will be logged")); | 373 | _("Max number of users that will be logged")); |
996 | 374 | context("bucket-count", | 374 | context("bucket-count", |
997 | 375 | po::value<bucket_count_constraint>(&sysvar_logging_stats_bucket_count)->default_value(10), | 375 | po::value<bucket_count_constraint>(&sysvar_logging_stats_bucket_count)->default_value(10), |
999 | 376 | N_("Max number of range locks to use for Scoreboard")); | 376 | _("Max number of range locks to use for Scoreboard")); |
1000 | 377 | context("scoreboard-size", | 377 | context("scoreboard-size", |
1001 | 378 | po::value<scoreboard_size_constraint>(&sysvar_logging_stats_scoreboard_size)->default_value(2000), | 378 | po::value<scoreboard_size_constraint>(&sysvar_logging_stats_scoreboard_size)->default_value(2000), |
1004 | 379 | N_("Max number of concurrent sessions that will be logged")); | 379 | _("Max number of concurrent sessions that will be logged")); |
1005 | 380 | context("disable", N_("Enable Logging Statistics Collection")); | 380 | context("disable", _("Enable Logging Statistics Collection")); |
1006 | 381 | } | 381 | } |
1007 | 382 | 382 | ||
1008 | 383 | DRIZZLE_DECLARE_PLUGIN | 383 | DRIZZLE_DECLARE_PLUGIN |
1009 | 384 | 384 | ||
1010 | === modified file 'plugin/memcached_query_cache/memcached_qc.cc' | |||
1011 | --- plugin/memcached_query_cache/memcached_qc.cc 2010-12-18 04:43:40 +0000 | |||
1012 | +++ plugin/memcached_query_cache/memcached_qc.cc 2011-01-10 20:36:11 +0000 | |||
1013 | @@ -385,13 +385,13 @@ | |||
1014 | 385 | { | 385 | { |
1015 | 386 | context("servers", | 386 | context("servers", |
1016 | 387 | po::value<string>()->default_value("127.0.0.1:11211"), | 387 | po::value<string>()->default_value("127.0.0.1:11211"), |
1018 | 388 | N_("List of memcached servers.")); | 388 | _("List of memcached servers.")); |
1019 | 389 | context("expiry", | 389 | context("expiry", |
1020 | 390 | po::value<uint64_constraint>(&expiry_time)->default_value(1000), | 390 | po::value<uint64_constraint>(&expiry_time)->default_value(1000), |
1022 | 391 | N_("Expiry time of memcached entries")); | 391 | _("Expiry time of memcached entries")); |
1023 | 392 | context("enable", | 392 | context("enable", |
1024 | 393 | po::value<bool>(&sysvar_memcached_qc_enable)->default_value(false)->zero_tokens(), | 393 | po::value<bool>(&sysvar_memcached_qc_enable)->default_value(false)->zero_tokens(), |
1026 | 394 | N_("Enable Memcached Query Cache")); | 394 | _("Enable Memcached Query Cache")); |
1027 | 395 | } | 395 | } |
1028 | 396 | 396 | ||
1029 | 397 | DRIZZLE_DECLARE_PLUGIN | 397 | DRIZZLE_DECLARE_PLUGIN |
1030 | 398 | 398 | ||
1031 | === modified file 'plugin/memcached_stats/memcached_stats.cc' | |||
1032 | --- plugin/memcached_stats/memcached_stats.cc 2010-12-18 04:43:40 +0000 | |||
1033 | +++ plugin/memcached_stats/memcached_stats.cc 2011-01-10 20:36:11 +0000 | |||
1034 | @@ -84,7 +84,7 @@ | |||
1035 | 84 | { | 84 | { |
1036 | 85 | context("servers", | 85 | context("servers", |
1037 | 86 | po::value<std::string>()->default_value(""), | 86 | po::value<std::string>()->default_value(""), |
1039 | 87 | N_("List of memcached servers.")); | 87 | _("List of memcached servers.")); |
1040 | 88 | } | 88 | } |
1041 | 89 | 89 | ||
1042 | 90 | } /* namespace drizzle_plugin */ | 90 | } /* namespace drizzle_plugin */ |
1043 | 91 | 91 | ||
1044 | === modified file 'plugin/multi_thread/multi_thread.cc' | |||
1045 | --- plugin/multi_thread/multi_thread.cc 2011-01-08 18:21:31 +0000 | |||
1046 | +++ plugin/multi_thread/multi_thread.cc 2011-01-10 20:36:11 +0000 | |||
1047 | @@ -208,7 +208,7 @@ | |||
1048 | 208 | { | 208 | { |
1049 | 209 | context("max-threads", | 209 | context("max-threads", |
1050 | 210 | po::value<max_threads_constraint>(&max_threads)->default_value(2048), | 210 | po::value<max_threads_constraint>(&max_threads)->default_value(2048), |
1052 | 211 | N_("Maximum number of user threads available.")); | 211 | _("Maximum number of user threads available.")); |
1053 | 212 | } | 212 | } |
1054 | 213 | 213 | ||
1055 | 214 | DRIZZLE_DECLARE_PLUGIN | 214 | DRIZZLE_DECLARE_PLUGIN |
1056 | 215 | 215 | ||
1057 | === modified file 'plugin/myisam/ha_myisam.cc' | |||
1058 | --- plugin/myisam/ha_myisam.cc 2010-12-18 10:19:12 +0000 | |||
1059 | +++ plugin/myisam/ha_myisam.cc 2011-01-10 20:36:11 +0000 | |||
1060 | @@ -1503,10 +1503,10 @@ | |||
1061 | 1503 | { | 1503 | { |
1062 | 1504 | context("max-sort-file-size", | 1504 | context("max-sort-file-size", |
1063 | 1505 | po::value<uint64_t>(&max_sort_file_size)->default_value(INT32_MAX), | 1505 | po::value<uint64_t>(&max_sort_file_size)->default_value(INT32_MAX), |
1065 | 1506 | N_("Don't use the fast sort index method to created index if the temporary file would get bigger than this.")); | 1506 | _("Don't use the fast sort index method to created index if the temporary file would get bigger than this.")); |
1066 | 1507 | context("sort-buffer-size", | 1507 | context("sort-buffer-size", |
1067 | 1508 | po::value<sort_buffer_constraint>(&sort_buffer_size)->default_value(8192*1024), | 1508 | po::value<sort_buffer_constraint>(&sort_buffer_size)->default_value(8192*1024), |
1069 | 1509 | N_("The buffer that is allocated when sorting the index when doing a REPAIR or when creating indexes with CREATE INDEX or ALTER TABLE.")); | 1509 | _("The buffer that is allocated when sorting the index when doing a REPAIR or when creating indexes with CREATE INDEX or ALTER TABLE.")); |
1070 | 1510 | } | 1510 | } |
1071 | 1511 | 1511 | ||
1072 | 1512 | 1512 | ||
1073 | 1513 | 1513 | ||
1074 | === modified file 'plugin/mysql_protocol/mysql_protocol.cc' | |||
1075 | --- plugin/mysql_protocol/mysql_protocol.cc 2011-01-04 04:05:27 +0000 | |||
1076 | +++ plugin/mysql_protocol/mysql_protocol.cc 2011-01-10 20:36:11 +0000 | |||
1077 | @@ -1011,32 +1011,32 @@ | |||
1078 | 1011 | { | 1011 | { |
1079 | 1012 | context("port", | 1012 | context("port", |
1080 | 1013 | po::value<port_constraint>(&port)->default_value(3306), | 1013 | po::value<port_constraint>(&port)->default_value(3306), |
1082 | 1014 | N_("Port number to use for connection or 0 for default to with MySQL " | 1014 | _("Port number to use for connection or 0 for default to with MySQL " |
1083 | 1015 | "protocol.")); | 1015 | "protocol.")); |
1084 | 1016 | context("connect-timeout", | 1016 | context("connect-timeout", |
1085 | 1017 | po::value<timeout_constraint>(&connect_timeout)->default_value(10), | 1017 | po::value<timeout_constraint>(&connect_timeout)->default_value(10), |
1087 | 1018 | N_("Connect Timeout.")); | 1018 | _("Connect Timeout.")); |
1088 | 1019 | context("read-timeout", | 1019 | context("read-timeout", |
1089 | 1020 | po::value<timeout_constraint>(&read_timeout)->default_value(30), | 1020 | po::value<timeout_constraint>(&read_timeout)->default_value(30), |
1091 | 1021 | N_("Read Timeout.")); | 1021 | _("Read Timeout.")); |
1092 | 1022 | context("write-timeout", | 1022 | context("write-timeout", |
1093 | 1023 | po::value<timeout_constraint>(&write_timeout)->default_value(60), | 1023 | po::value<timeout_constraint>(&write_timeout)->default_value(60), |
1095 | 1024 | N_("Write Timeout.")); | 1024 | _("Write Timeout.")); |
1096 | 1025 | context("retry-count", | 1025 | context("retry-count", |
1097 | 1026 | po::value<retry_constraint>(&retry_count)->default_value(10), | 1026 | po::value<retry_constraint>(&retry_count)->default_value(10), |
1099 | 1027 | N_("Retry Count.")); | 1027 | _("Retry Count.")); |
1100 | 1028 | context("buffer-length", | 1028 | context("buffer-length", |
1101 | 1029 | po::value<buffer_constraint>(&buffer_length)->default_value(16384), | 1029 | po::value<buffer_constraint>(&buffer_length)->default_value(16384), |
1103 | 1030 | N_("Buffer length.")); | 1030 | _("Buffer length.")); |
1104 | 1031 | context("bind-address", | 1031 | context("bind-address", |
1105 | 1032 | po::value<string>()->default_value(""), | 1032 | po::value<string>()->default_value(""), |
1107 | 1033 | N_("Address to bind to.")); | 1033 | _("Address to bind to.")); |
1108 | 1034 | context("max-connections", | 1034 | context("max-connections", |
1109 | 1035 | po::value<uint32_t>(&ListenMySQLProtocol::mysql_counters->max_connections)->default_value(1000), | 1035 | po::value<uint32_t>(&ListenMySQLProtocol::mysql_counters->max_connections)->default_value(1000), |
1111 | 1036 | N_("Maximum simultaneous connections.")); | 1036 | _("Maximum simultaneous connections.")); |
1112 | 1037 | context("admin-ip-addresses", | 1037 | context("admin-ip-addresses", |
1113 | 1038 | po::value<vector<string> >()->composing()->notifier(&ClientMySQLProtocol::mysql_compose_ip_addresses), | 1038 | po::value<vector<string> >()->composing()->notifier(&ClientMySQLProtocol::mysql_compose_ip_addresses), |
1115 | 1039 | N_("A restrictive IP address list for incoming admin connections.")); | 1039 | _("A restrictive IP address list for incoming admin connections.")); |
1116 | 1040 | } | 1040 | } |
1117 | 1041 | 1041 | ||
1118 | 1042 | static int mysql_protocol_connection_count_func(drizzle_show_var *var, char *buff) | 1042 | static int mysql_protocol_connection_count_func(drizzle_show_var *var, char *buff) |
1119 | 1043 | 1043 | ||
1120 | === modified file 'plugin/mysql_unix_socket_protocol/protocol.cc' | |||
1121 | --- plugin/mysql_unix_socket_protocol/protocol.cc 2010-12-13 14:34:37 +0000 | |||
1122 | +++ plugin/mysql_unix_socket_protocol/protocol.cc 2011-01-10 20:36:11 +0000 | |||
1123 | @@ -165,12 +165,12 @@ | |||
1124 | 165 | { | 165 | { |
1125 | 166 | context("path", | 166 | context("path", |
1126 | 167 | po::value<fs::path>()->default_value(DRIZZLE_UNIX_SOCKET_PATH), | 167 | po::value<fs::path>()->default_value(DRIZZLE_UNIX_SOCKET_PATH), |
1128 | 168 | N_("Path used for MySQL UNIX Socket Protocol.")); | 168 | _("Path used for MySQL UNIX Socket Protocol.")); |
1129 | 169 | context("clobber", | 169 | context("clobber", |
1131 | 170 | N_("Clobber socket file if one is there already.")); | 170 | _("Clobber socket file if one is there already.")); |
1132 | 171 | context("max-connections", | 171 | context("max-connections", |
1133 | 172 | po::value<uint32_t>(&Protocol::mysql_unix_counters->max_connections)->default_value(1000), | 172 | po::value<uint32_t>(&Protocol::mysql_unix_counters->max_connections)->default_value(1000), |
1135 | 173 | N_("Maximum simultaneous connections.")); | 173 | _("Maximum simultaneous connections.")); |
1136 | 174 | } | 174 | } |
1137 | 175 | 175 | ||
1138 | 176 | } /* namespace mysql_unix_socket_protocol */ | 176 | } /* namespace mysql_unix_socket_protocol */ |
1139 | 177 | 177 | ||
1140 | === modified file 'plugin/pbms/src/parameters_ms.cc' | |||
1141 | --- plugin/pbms/src/parameters_ms.cc 2010-12-18 04:43:40 +0000 | |||
1142 | +++ plugin/pbms/src/parameters_ms.cc 2011-01-10 20:36:11 +0000 | |||
1143 | @@ -423,42 +423,42 @@ | |||
1144 | 423 | { | 423 | { |
1145 | 424 | context("port", | 424 | context("port", |
1146 | 425 | po::value<port_constraint>(&pbms_port_number)->default_value(DEFAULT_PBMS_PORT), | 425 | po::value<port_constraint>(&pbms_port_number)->default_value(DEFAULT_PBMS_PORT), |
1148 | 426 | N_("Port number to use for connection or 0 for default PBMS port ")); | 426 | _("Port number to use for connection or 0 for default PBMS port ")); |
1149 | 427 | context("repository-threshold", | 427 | context("repository-threshold", |
1150 | 428 | po::value<std::string>(&my_repository_threshold)->default_value(MS_REPO_THRESHOLD_DEF), | 428 | po::value<std::string>(&my_repository_threshold)->default_value(MS_REPO_THRESHOLD_DEF), |
1152 | 429 | N_("The maximum size of a BLOB repository file.")); | 429 | _("The maximum size of a BLOB repository file.")); |
1153 | 430 | context("temp-log-threshold", | 430 | context("temp-log-threshold", |
1154 | 431 | po::value<std::string>(&my_temp_log_threshold)->default_value(MS_TEMP_LOG_THRESHOLD_DEF), | 431 | po::value<std::string>(&my_temp_log_threshold)->default_value(MS_TEMP_LOG_THRESHOLD_DEF), |
1156 | 432 | N_("The maximum size of a temorary BLOB log file.")); | 432 | _("The maximum size of a temorary BLOB log file.")); |
1157 | 433 | context("http-metadata-headers", | 433 | context("http-metadata-headers", |
1158 | 434 | po::value<std::string>(&my_http_metadata_headers)->default_value(MS_HTTP_METADATA_HEADERS_DEF), | 434 | po::value<std::string>(&my_http_metadata_headers)->default_value(MS_HTTP_METADATA_HEADERS_DEF), |
1160 | 435 | N_("A ':' delimited list of metadata header names to be used to initialize " | 435 | _("A ':' delimited list of metadata header names to be used to initialize " |
1161 | 436 | "the pbms_metadata_header table when a database is created.")); | 436 | "the pbms_metadata_header table when a database is created.")); |
1162 | 437 | context("garbage-threshold", | 437 | context("garbage-threshold", |
1163 | 438 | po::value<percent_constraint>(&my_garbage_threshold)->default_value(MS_DEFAULT_GARBAGE_LEVEL), | 438 | po::value<percent_constraint>(&my_garbage_threshold)->default_value(MS_DEFAULT_GARBAGE_LEVEL), |
1165 | 439 | N_("The percentage of garbage in a repository file before it is compacted.")); | 439 | _("The percentage of garbage in a repository file before it is compacted.")); |
1166 | 440 | context("temp-blob-timeout", | 440 | context("temp-blob-timeout", |
1167 | 441 | po::value<uint32_nonzero_constraint>(&my_temp_blob_timeout)->default_value(MS_DEFAULT_TEMP_LOG_WAIT), | 441 | po::value<uint32_nonzero_constraint>(&my_temp_blob_timeout)->default_value(MS_DEFAULT_TEMP_LOG_WAIT), |
1169 | 442 | N_("The timeout, in seconds, for temporary BLOBs. Uploaded blob data is removed after this time, unless committed to the database.")); | 442 | _("The timeout, in seconds, for temporary BLOBs. Uploaded blob data is removed after this time, unless committed to the database.")); |
1170 | 443 | context("max-keep-alive", | 443 | context("max-keep-alive", |
1171 | 444 | po::value<uint32_nonzero_constraint>(&my_temp_blob_timeout)->default_value(MS_DEFAULT_KEEP_ALIVE), | 444 | po::value<uint32_nonzero_constraint>(&my_temp_blob_timeout)->default_value(MS_DEFAULT_KEEP_ALIVE), |
1173 | 445 | N_("The timeout, in milli-seconds, before the HTTP server will close an inactive HTTP connection.")); | 445 | _("The timeout, in milli-seconds, before the HTTP server will close an inactive HTTP connection.")); |
1174 | 446 | context("next-backup-db-id", | 446 | context("next-backup-db-id", |
1175 | 447 | po::value<uint32_nonzero_constraint>(&my_backup_db_id)->default_value(1), | 447 | po::value<uint32_nonzero_constraint>(&my_backup_db_id)->default_value(1), |
1177 | 448 | N_("The next backup ID to use when backing up a PBMS database.")); | 448 | _("The next backup ID to use when backing up a PBMS database.")); |
1178 | 449 | context("watch-tables", | 449 | context("watch-tables", |
1179 | 450 | po::value<std::string>(&my_table_list)->default_value("*"), | 450 | po::value<std::string>(&my_table_list)->default_value("*"), |
1181 | 451 | N_("A comma delimited list of tables to watch of the format: <database>.<table>, ...")); | 451 | _("A comma delimited list of tables to watch of the format: <database>.<table>, ...")); |
1182 | 452 | context("watch-disable", | 452 | context("watch-disable", |
1184 | 453 | N_("Enable PBMS daemon Insert/Update/Delete event scanning")); | 453 | _("Enable PBMS daemon Insert/Update/Delete event scanning")); |
1185 | 454 | 454 | ||
1186 | 455 | context("before-insert-position", | 455 | context("before-insert-position", |
1187 | 456 | po::value<before_position_constraint>(&my_before_insert_position)->default_value(1), | 456 | po::value<before_position_constraint>(&my_before_insert_position)->default_value(1), |
1189 | 457 | N_("Before insert row event observer call position")); | 457 | _("Before insert row event observer call position")); |
1190 | 458 | 458 | ||
1191 | 459 | context("before-update-position", | 459 | context("before-update-position", |
1192 | 460 | po::value<before_position_constraint>(&my_before_update_position)->default_value(1), | 460 | po::value<before_position_constraint>(&my_before_update_position)->default_value(1), |
1194 | 461 | N_("Before update row event observer call position")); | 461 | _("Before update row event observer call position")); |
1195 | 462 | 462 | ||
1196 | 463 | } | 463 | } |
1197 | 464 | #endif | 464 | #endif |
1198 | 465 | 465 | ||
1199 | === modified file 'plugin/rabbitmq/rabbitmq_log.cc' | |||
1200 | --- plugin/rabbitmq/rabbitmq_log.cc 2010-12-05 20:05:39 +0000 | |||
1201 | +++ plugin/rabbitmq/rabbitmq_log.cc 2011-01-10 20:36:11 +0000 | |||
1202 | @@ -152,28 +152,28 @@ | |||
1203 | 152 | { | 152 | { |
1204 | 153 | context("host", | 153 | context("host", |
1205 | 154 | po::value<string>()->default_value("localhost"), | 154 | po::value<string>()->default_value("localhost"), |
1207 | 155 | N_("Host name to connect to")); | 155 | _("Host name to connect to")); |
1208 | 156 | context("port", | 156 | context("port", |
1209 | 157 | po::value<port_constraint>(&sysvar_rabbitmq_port)->default_value(5672), | 157 | po::value<port_constraint>(&sysvar_rabbitmq_port)->default_value(5672), |
1211 | 158 | N_("Port to connect to")); | 158 | _("Port to connect to")); |
1212 | 159 | context("virtualhost", | 159 | context("virtualhost", |
1213 | 160 | po::value<string>()->default_value("/"), | 160 | po::value<string>()->default_value("/"), |
1215 | 161 | N_("RabbitMQ virtualhost")); | 161 | _("RabbitMQ virtualhost")); |
1216 | 162 | context("username", | 162 | context("username", |
1217 | 163 | po::value<string>()->default_value("guest"), | 163 | po::value<string>()->default_value("guest"), |
1219 | 164 | N_("RabbitMQ username")); | 164 | _("RabbitMQ username")); |
1220 | 165 | context("password", | 165 | context("password", |
1221 | 166 | po::value<string>()->default_value("guest"), | 166 | po::value<string>()->default_value("guest"), |
1223 | 167 | N_("RabbitMQ password")); | 167 | _("RabbitMQ password")); |
1224 | 168 | context("use-replicator", | 168 | context("use-replicator", |
1225 | 169 | po::value<string>()->default_value("default_replicator"), | 169 | po::value<string>()->default_value("default_replicator"), |
1227 | 170 | N_("Name of the replicator plugin to use (default='default_replicator')")); | 170 | _("Name of the replicator plugin to use (default='default_replicator')")); |
1228 | 171 | context("exchange", | 171 | context("exchange", |
1229 | 172 | po::value<string>()->default_value("ReplicationExchange"), | 172 | po::value<string>()->default_value("ReplicationExchange"), |
1231 | 173 | N_("Name of RabbitMQ exchange to publish to")); | 173 | _("Name of RabbitMQ exchange to publish to")); |
1232 | 174 | context("routingkey", | 174 | context("routingkey", |
1233 | 175 | po::value<string>()->default_value("ReplicationRoutingKey"), | 175 | po::value<string>()->default_value("ReplicationRoutingKey"), |
1235 | 176 | N_("Name of RabbitMQ routing key to use")); | 176 | _("Name of RabbitMQ routing key to use")); |
1236 | 177 | } | 177 | } |
1237 | 178 | 178 | ||
1238 | 179 | } /* namespace drizzle_plugin */ | 179 | } /* namespace drizzle_plugin */ |
1239 | 180 | 180 | ||
1240 | === modified file 'plugin/syslog/module.cc' | |||
1241 | --- plugin/syslog/module.cc 2010-12-03 19:56:07 +0000 | |||
1242 | +++ plugin/syslog/module.cc 2011-01-10 20:36:11 +0000 | |||
1243 | @@ -92,31 +92,31 @@ | |||
1244 | 92 | { | 92 | { |
1245 | 93 | context("ident", | 93 | context("ident", |
1246 | 94 | po::value<string>()->default_value("drizzled"), | 94 | po::value<string>()->default_value("drizzled"), |
1248 | 95 | N_("Syslog Ident")); | 95 | _("Syslog Ident")); |
1249 | 96 | context("facility", | 96 | context("facility", |
1250 | 97 | po::value<string>()->default_value("local0"), | 97 | po::value<string>()->default_value("local0"), |
1252 | 98 | N_("Syslog Facility")); | 98 | _("Syslog Facility")); |
1253 | 99 | context("logging-enable", | 99 | context("logging-enable", |
1254 | 100 | po::value<bool>(&sysvar_logging_enable)->default_value(false)->zero_tokens(), | 100 | po::value<bool>(&sysvar_logging_enable)->default_value(false)->zero_tokens(), |
1256 | 101 | N_("Enable logging to syslog of the query log")); | 101 | _("Enable logging to syslog of the query log")); |
1257 | 102 | context("logging-priority", | 102 | context("logging-priority", |
1258 | 103 | po::value<string>()->default_value("warning"), | 103 | po::value<string>()->default_value("warning"), |
1260 | 104 | N_("Syslog Priority of query logging")); | 104 | _("Syslog Priority of query logging")); |
1261 | 105 | context("logging-threshold-slow", | 105 | context("logging-threshold-slow", |
1262 | 106 | po::value<uint64_constraint>(&sysvar_logging_threshold_slow)->default_value(0), | 106 | po::value<uint64_constraint>(&sysvar_logging_threshold_slow)->default_value(0), |
1264 | 107 | N_("Threshold for logging slow queries, in microseconds")); | 107 | _("Threshold for logging slow queries, in microseconds")); |
1265 | 108 | context("logging-threshold-big-resultset", | 108 | context("logging-threshold-big-resultset", |
1266 | 109 | po::value<uint64_constraint>(&sysvar_logging_threshold_big_resultset)->default_value(0), | 109 | po::value<uint64_constraint>(&sysvar_logging_threshold_big_resultset)->default_value(0), |
1268 | 110 | N_("Threshold for logging big queries, for rows returned")); | 110 | _("Threshold for logging big queries, for rows returned")); |
1269 | 111 | context("logging-threshold-big-examined", | 111 | context("logging-threshold-big-examined", |
1270 | 112 | po::value<uint64_constraint>(&sysvar_logging_threshold_big_examined)->default_value(0), | 112 | po::value<uint64_constraint>(&sysvar_logging_threshold_big_examined)->default_value(0), |
1272 | 113 | N_("Threshold for logging big queries, for rows examined")); | 113 | _("Threshold for logging big queries, for rows examined")); |
1273 | 114 | context("errmsg-enable", | 114 | context("errmsg-enable", |
1274 | 115 | po::value<bool>(&sysvar_errmsg_enable)->default_value(false)->zero_tokens(), | 115 | po::value<bool>(&sysvar_errmsg_enable)->default_value(false)->zero_tokens(), |
1276 | 116 | N_("Enable logging to syslog of the error messages")); | 116 | _("Enable logging to syslog of the error messages")); |
1277 | 117 | context("errmsg-priority", | 117 | context("errmsg-priority", |
1278 | 118 | po::value<string>()->default_value("warning"), | 118 | po::value<string>()->default_value("warning"), |
1280 | 119 | N_("Syslog Priority of error messages")); | 119 | _("Syslog Priority of error messages")); |
1281 | 120 | } | 120 | } |
1282 | 121 | 121 | ||
1283 | 122 | } /* namespace drizzle_plugin */ | 122 | } /* namespace drizzle_plugin */ |
1284 | 123 | 123 | ||
1285 | === modified file 'plugin/transaction_log/module.cc' | |||
1286 | --- plugin/transaction_log/module.cc 2010-12-18 04:43:40 +0000 | |||
1287 | +++ plugin/transaction_log/module.cc 2011-01-10 20:36:11 +0000 | |||
1288 | @@ -255,25 +255,25 @@ | |||
1289 | 255 | { | 255 | { |
1290 | 256 | context("truncate-debug", | 256 | context("truncate-debug", |
1291 | 257 | po::value<bool>(&sysvar_transaction_log_truncate_debug)->default_value(false)->zero_tokens(), | 257 | po::value<bool>(&sysvar_transaction_log_truncate_debug)->default_value(false)->zero_tokens(), |
1293 | 258 | N_("DEBUGGING - Truncate transaction log")); | 258 | _("DEBUGGING - Truncate transaction log")); |
1294 | 259 | context("enable-checksum", | 259 | context("enable-checksum", |
1295 | 260 | po::value<bool>(&sysvar_transaction_log_checksum_enabled)->default_value(false)->zero_tokens(), | 260 | po::value<bool>(&sysvar_transaction_log_checksum_enabled)->default_value(false)->zero_tokens(), |
1297 | 261 | N_("Enable CRC32 Checksumming of each written transaction log entry")); | 261 | _("Enable CRC32 Checksumming of each written transaction log entry")); |
1298 | 262 | context("enable", | 262 | context("enable", |
1299 | 263 | po::value<bool>(&sysvar_transaction_log_enabled)->default_value(false)->zero_tokens(), | 263 | po::value<bool>(&sysvar_transaction_log_enabled)->default_value(false)->zero_tokens(), |
1301 | 264 | N_("Enable transaction log")); | 264 | _("Enable transaction log")); |
1302 | 265 | context("file", | 265 | context("file", |
1303 | 266 | po::value<string>(&sysvar_transaction_log_file)->default_value(DEFAULT_LOG_FILE_PATH), | 266 | po::value<string>(&sysvar_transaction_log_file)->default_value(DEFAULT_LOG_FILE_PATH), |
1305 | 267 | N_("Path to the file to use for transaction log")); | 267 | _("Path to the file to use for transaction log")); |
1306 | 268 | context("use-replicator", | 268 | context("use-replicator", |
1307 | 269 | po::value<string>(&sysvar_transaction_log_use_replicator)->default_value(DEFAULT_USE_REPLICATOR), | 269 | po::value<string>(&sysvar_transaction_log_use_replicator)->default_value(DEFAULT_USE_REPLICATOR), |
1309 | 270 | N_("Name of the replicator plugin to use (default='default_replicator')")); | 270 | _("Name of the replicator plugin to use (default='default_replicator')")); |
1310 | 271 | context("flush-frequency", | 271 | context("flush-frequency", |
1311 | 272 | po::value<flush_constraint>(&sysvar_transaction_log_flush_frequency)->default_value(0), | 272 | po::value<flush_constraint>(&sysvar_transaction_log_flush_frequency)->default_value(0), |
1313 | 273 | N_("0 == rely on operating system to sync log file (default), 1 == sync file at each transaction write, 2 == sync log file once per second")); | 273 | _("0 == rely on operating system to sync log file (default), 1 == sync file at each transaction write, 2 == sync log file once per second")); |
1314 | 274 | context("num-write-buffers", | 274 | context("num-write-buffers", |
1315 | 275 | po::value<write_buffers_constraint>(&sysvar_transaction_log_num_write_buffers)->default_value(8), | 275 | po::value<write_buffers_constraint>(&sysvar_transaction_log_num_write_buffers)->default_value(8), |
1317 | 276 | N_("Number of slots for in-memory write buffers (default=8).")); | 276 | _("Number of slots for in-memory write buffers (default=8).")); |
1318 | 277 | } | 277 | } |
1319 | 278 | 278 | ||
1320 | 279 | DRIZZLE_PLUGIN(init, NULL, init_options); | 279 | DRIZZLE_PLUGIN(init, NULL, init_options); |
1321 | 280 | 280 | ||
1322 | === modified file 'plugin/transaction_log/utilities/transaction_reader.cc' | |||
1323 | --- plugin/transaction_log/utilities/transaction_reader.cc 2010-12-18 04:43:40 +0000 | |||
1324 | +++ plugin/transaction_log/utilities/transaction_reader.cc 2011-01-10 20:36:11 +0000 | |||
1325 | @@ -469,30 +469,30 @@ | |||
1326 | 469 | */ | 469 | */ |
1327 | 470 | po::options_description desc("Program options"); | 470 | po::options_description desc("Program options"); |
1328 | 471 | desc.add_options() | 471 | desc.add_options() |
1331 | 472 | ("help", N_("Display help and exit")) | 472 | ("help", _("Display help and exit")) |
1332 | 473 | ("use-innodb-replication-log", N_("Read from the innodb transaction log")) | 473 | ("use-innodb-replication-log", _("Read from the innodb transaction log")) |
1333 | 474 | ("user,u", po::value<string>(¤t_user)->default_value(""), | 474 | ("user,u", po::value<string>(¤t_user)->default_value(""), |
1335 | 475 | N_("User for login if not current user.")) | 475 | _("User for login if not current user.")) |
1336 | 476 | ("port,p", po::value<uint32_t>(&opt_drizzle_port)->default_value(0), | 476 | ("port,p", po::value<uint32_t>(&opt_drizzle_port)->default_value(0), |
1338 | 477 | N_("Port number to use for connection.")) | 477 | _("Port number to use for connection.")) |
1339 | 478 | ("password,P", po::value<string>(&opt_password)->default_value(""), | 478 | ("password,P", po::value<string>(&opt_password)->default_value(""), |
1341 | 479 | N_("Password to use when connecting to server")) | 479 | _("Password to use when connecting to server")) |
1342 | 480 | ("protocol",po::value<string>(&opt_protocol)->default_value("mysql"), | 480 | ("protocol",po::value<string>(&opt_protocol)->default_value("mysql"), |
1348 | 481 | N_("The protocol of connection (mysql or drizzle).")) | 481 | _("The protocol of connection (mysql or drizzle).")) |
1349 | 482 | ("checksum", N_("Perform checksum")) | 482 | ("checksum", _("Perform checksum")) |
1350 | 483 | ("ignore-events", N_("Ignore event messages")) | 483 | ("ignore-events", _("Ignore event messages")) |
1351 | 484 | ("input-file", po::value< vector<string> >(), N_("Transaction log file")) | 484 | ("input-file", po::value< vector<string> >(), _("Transaction log file")) |
1352 | 485 | ("raw", N_("Print raw Protobuf messages instead of SQL")) | 485 | ("raw", _("Print raw Protobuf messages instead of SQL")) |
1353 | 486 | ("start-pos", | 486 | ("start-pos", |
1354 | 487 | po::value<int>(&opt_start_pos), | 487 | po::value<int>(&opt_start_pos), |
1356 | 488 | N_("Start reading from the given file position")) | 488 | _("Start reading from the given file position")) |
1357 | 489 | ("start-transaction-id", | 489 | ("start-transaction-id", |
1358 | 490 | po::value<uint64_t>(&opt_start_transaction_id), | 490 | po::value<uint64_t>(&opt_start_transaction_id), |
1360 | 491 | N_("Only output for the given transaction ID and later")) | 491 | _("Only output for the given transaction ID and later")) |
1361 | 492 | ("transaction-id", | 492 | ("transaction-id", |
1362 | 493 | po::value<uint64_t>(&opt_transaction_id), | 493 | po::value<uint64_t>(&opt_transaction_id), |
1365 | 494 | N_("Only output for the given transaction ID")) | 494 | _("Only output for the given transaction ID")) |
1366 | 495 | ("summarize", N_("Summarize message contents")); | 495 | ("summarize", _("Summarize message contents")); |
1367 | 496 | 496 | ||
1368 | 497 | /* | 497 | /* |
1369 | 498 | * We allow one positional argument that will be transaction file name | 498 | * We allow one positional argument that will be transaction file name |