Merge lp:~linuxjedi/drizzle/trunk-translation-bugs into lp:drizzle/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
Reviewer Review Type Date Requested Status
Drizzle Developers Pending
Review via email: mp+45747@code.launchpad.net

Description of the change

Fix intl domain
Add intl domain for drizzledump
Fix boost::program_options translation output

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
=== modified file 'client/drizzle.cc'
--- client/drizzle.cc 2011-01-04 22:06:30 +0000
+++ client/drizzle.cc 2011-01-10 20:36:11 +0000
@@ -1280,122 +1280,122 @@
1280# if defined(HAVE_LOCALE_H)1280# if defined(HAVE_LOCALE_H)
1281 setlocale(LC_ALL, "");1281 setlocale(LC_ALL, "");
1282# endif1282# endif
1283 bindtextdomain("drizzle", LOCALEDIR);1283 bindtextdomain("drizzle7", LOCALEDIR);
1284 textdomain("drizzle");1284 textdomain("drizzle7");
1285#endif1285#endif
12861286
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"));
1288 commandline_options.add_options()1288 commandline_options.add_options()
1289 ("help,?",N_("Displays this help and exit."))1289 ("help,?",_("Displays this help and exit."))
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)"))
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(),
1292 N_("Display column type information."))1292 _("Display column type information."))
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(),
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"))
1295 ("vertical,E", po::value<bool>(&vertical)->default_value(false)->zero_tokens(),1295 ("vertical,E", po::value<bool>(&vertical)->default_value(false)->zero_tokens(),
1296 N_("Print the output of a query (rows) vertically."))1296 _("Print the output of a query (rows) vertically."))
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(),
1298 N_("Continue even if we get an sql error."))1298 _("Continue even if we get an sql error."))
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(),
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."))
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(),
1302 N_("Turn off beep on error."))1302 _("Turn off beep on error."))
1303 ("disable-line-numbers", N_("Do not write line numbers for errors."))1303 ("disable-line-numbers", _("Do not write line numbers for errors."))
1304 ("disable-column-names", N_("Do not write column names in results."))1304 ("disable-column-names", _("Do not write column names in results."))
1305 ("skip-column-names,N", 1305 ("skip-column-names,N",
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."))
1307 ("set-variable,O", po::value<string>(),1307 ("set-variable,O", po::value<string>(),
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."))
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(),
1310 N_("Output in table format.")) 1310 _("Output in table format."))
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(),
1312 N_("Only allow UPDATE and DELETE that uses keys."))1312 _("Only allow UPDATE and DELETE that uses keys."))
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(),
1314 N_("Synonym for option --safe-updates, -U."))1314 _("Synonym for option --safe-updates, -U."))
1315 ("verbose,v", po::value<string>(&opt_verbose)->default_value(""),1315 ("verbose,v", po::value<string>(&opt_verbose)->default_value(""),
1316 N_("-v vvv implies that verbose= 3, Used to specify verbose"))1316 _("-v vvv implies that verbose= 3, Used to specify verbose"))
1317 ("version,V", N_("Output version information and exit."))1317 ("version,V", _("Output version information and exit."))
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(),
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"))
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(),
1321 N_("Show warnings after every statement."))1321 _("Show warnings after every statement."))
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),
1323 N_("Number of lines before each import progress report."))1323 _("Number of lines before each import progress report."))
1324 ("ping", po::value<bool>(&opt_ping)->default_value(false)->zero_tokens(),1324 ("ping", po::value<bool>(&opt_ping)->default_value(false)->zero_tokens(),
1325 N_("Ping the server to check if it's alive."))1325 _("Ping the server to check if it's alive."))
1326 ("no-defaults", po::value<bool>()->default_value(false)->zero_tokens(),1326 ("no-defaults", po::value<bool>()->default_value(false)->zero_tokens(),
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"))
1328 ;1328 ;
13291329
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"));
1331 drizzle_options.add_options()1331 drizzle_options.add_options()
1332 ("disable-auto-rehash,A",1332 ("disable-auto-rehash,A",
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."))
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(),
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."))
1336 ("database,D", po::value<string>(&current_db)->default_value(""),1336 ("database,D", po::value<string>(&current_db)->default_value(""),
1337 N_("Database to use."))1337 _("Database to use."))
1338 ("default-character-set",po::value<string>(),1338 ("default-character-set",po::value<string>(),
1339 N_("(not used)"))1339 _("(not used)"))
1340 ("delimiter", po::value<string>(&delimiter_str)->default_value(";"),1340 ("delimiter", po::value<string>(&delimiter_str)->default_value(";"),
1341 N_("Delimiter to be used."))1341 _("Delimiter to be used."))
1342 ("execute,e", po::value<string>(),1342 ("execute,e", po::value<string>(),
1343 N_("Execute command and quit. (Disables --force and history file)"))1343 _("Execute command and quit. (Disables --force and history file)"))
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(),
1345 N_("Enable LOAD DATA LOCAL INFILE."))1345 _("Enable LOAD DATA LOCAL INFILE."))
1346 ("unbuffered,n", po::value<bool>(&unbuffered)->default_value(false)->zero_tokens(),1346 ("unbuffered,n", po::value<bool>(&unbuffered)->default_value(false)->zero_tokens(),
1347 N_("Flush buffer after each query."))1347 _("Flush buffer after each query."))
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(),
1349 N_("Ignore SIGINT (CTRL-C)"))1349 _("Ignore SIGINT (CTRL-C)"))
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(),
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."))
1352 ("pager", po::value<string>(),1352 ("pager", po::value<string>(),
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."))
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(),
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."))
1356 ("prompt", po::value<string>(&current_prompt)->default_value(""), 1356 ("prompt", po::value<string>(&current_prompt)->default_value(""),
1357 N_("Set the drizzle prompt to this value."))1357 _("Set the drizzle prompt to this value."))
1358 ("quick,q", po::value<bool>(&quick)->default_value(false)->zero_tokens(),1358 ("quick,q", po::value<bool>(&quick)->default_value(false)->zero_tokens(),
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."))
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(),
1361 N_("Write fields without conversion. Used with --batch.")) 1361 _("Write fields without conversion. Used with --batch."))
1362 ("disable-reconnect", N_("Do not reconnect if the connection is lost."))1362 ("disable-reconnect", _("Do not reconnect if the connection is lost."))
1363 ("shutdown", po::value<bool>()->zero_tokens(),1363 ("shutdown", po::value<bool>()->zero_tokens(),
1364 N_("Shutdown the server"))1364 _("Shutdown the server"))
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."))
1366 ("tee", po::value<string>(),1366 ("tee", po::value<string>(),
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."))
1368 ("disable-tee", po::value<bool>()->default_value(false)->zero_tokens(), 1368 ("disable-tee", po::value<bool>()->default_value(false)->zero_tokens(),
1369 N_("Disable outfile. See interactive help (\\h) also."))1369 _("Disable outfile. See interactive help (\\h) also."))
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),
1371 N_("Number of seconds before connection timeout."))1371 _("Number of seconds before connection timeout."))
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),
1373 N_("Max length of input line"))1373 _("Max length of input line"))
1374 ("select-limit", po::value<uint32_t>(&select_limit)->default_value(1000L),1374 ("select-limit", po::value<uint32_t>(&select_limit)->default_value(1000L),
1375 N_("Automatic limit for SELECT when using --safe-updates"))1375 _("Automatic limit for SELECT when using --safe-updates"))
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),
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"))
1378 ;1378 ;
13791379
1380 po::options_description client_options(N_("Options specific to the client"));1380 po::options_description client_options(_("Options specific to the client"));
1381 client_options.add_options()1381 client_options.add_options()
1382 ("host,h", po::value<string>(&current_host)->default_value("localhost"),1382 ("host,h", po::value<string>(&current_host)->default_value("localhost"),
1383 N_("Connect to host"))1383 _("Connect to host"))
1384 ("password,P", po::value<string>(&current_password)->default_value(PASSWORD_SENTINEL),1384 ("password,P", po::value<string>(&current_password)->default_value(PASSWORD_SENTINEL),
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."))
1386 ("port,p", po::value<uint32_t>()->default_value(0),1386 ("port,p", po::value<uint32_t>()->default_value(0),
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"))
1388#ifdef DRIZZLE_ADMIN_TOOL1388#ifdef DRIZZLE_ADMIN_TOOL
1389 ("user,u", po::value<string>(&current_user)->default_value("root"),1389 ("user,u", po::value<string>(&current_user)->default_value("root"),
1390#else1390#else
1391 ("user,u", po::value<string>(&current_user)->default_value(""),1391 ("user,u", po::value<string>(&current_user)->default_value(""),
1392#endif1392#endif
1393 N_("User for login if not current user."))1393 _("User for login if not current user."))
1394 ("protocol",po::value<string>(&opt_protocol)->default_value("mysql"),1394 ("protocol",po::value<string>(&opt_protocol)->default_value("mysql"),
1395 N_("The protocol of connection (mysql or drizzle)."))1395 _("The protocol of connection (mysql or drizzle)."))
1396 ;1396 ;
13971397
1398 po::options_description long_options(N_("Allowed Options"));1398 po::options_description long_options(_("Allowed Options"));
1399 long_options.add(commandline_options).add(drizzle_options).add(client_options);1399 long_options.add(commandline_options).add(drizzle_options).add(client_options);
14001400
1401 std::string system_config_dir_drizzle(SYSCONFDIR); 1401 std::string system_config_dir_drizzle(SYSCONFDIR);
14021402
=== modified file 'client/drizzledump.cc'
--- client/drizzledump.cc 2010-12-06 12:40:05 +0000
+++ client/drizzledump.cc 2011-01-10 20:36:11 +0000
@@ -472,99 +472,107 @@
472{472{
473 int exit_code;473 int exit_code;
474474
475 po::options_description commandline_options(N_("Options used only in command line"));475#if defined(ENABLE_NLS)
476# if defined(HAVE_LOCALE_H)
477 setlocale(LC_ALL, "");
478# endif
479 bindtextdomain("drizzle7", LOCALEDIR);
480 textdomain("drizzle7");
481#endif
482
483 po::options_description commandline_options(_("Options used only in command line"));
476 commandline_options.add_options()484 commandline_options.add_options()
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(),
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."))
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(),
480 N_("Dump all the tablespaces."))488 _("Dump all the tablespaces."))
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(),
482 N_("Use complete insert statements."))490 _("Use complete insert statements."))
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(),
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"))
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(),
486 N_("Continue even if we get an sql-error."))494 _("Continue even if we get an sql-error."))
487 ("help,?", N_("Display this help message and exit."))495 ("help,?", _("Display this help message and exit."))
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(),
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."))
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(),
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."))
492 ("skip-opt", 500 ("skip-opt",
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."))
494 ("tables", N_("Overrides option --databases (-B)."))502 ("tables", _("Overrides option --databases (-B)."))
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),
496 N_("Number of rows before each output progress report (requires --verbose)."))504 _("Number of rows before each output progress report (requires --verbose)."))
497 ("verbose,v", po::value<bool>(&verbose)->default_value(false)->zero_tokens(),505 ("verbose,v", po::value<bool>(&verbose)->default_value(false)->zero_tokens(),
498 N_("Print info about the various stages."))506 _("Print info about the various stages."))
499 ("version,V", N_("Output version information and exit."))507 ("version,V", _("Output version information and exit."))
500 ("skip-comments", N_("Turn off Comments"))508 ("skip-comments", _("Turn off Comments"))
501 ("skip-create", N_("Turn off create-options"))509 ("skip-create", _("Turn off create-options"))
502 ("skip-extended-insert", N_("Turn off extended-insert"))510 ("skip-extended-insert", _("Turn off extended-insert"))
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"))
504 ("no-defaults", N_("Do not read from the configuration files"))512 ("no-defaults", _("Do not read from the configuration files"))
505 ;513 ;
506514
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"));
508 dump_options.add_options()516 dump_options.add_options()
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(),
510 N_("Add a 'DROP DATABASE' before each create."))518 _("Add a 'DROP DATABASE' before each create."))
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."))
512 ("compact", po::value<bool>(&opt_compact)->default_value(false)->zero_tokens(),520 ("compact", po::value<bool>(&opt_compact)->default_value(false)->zero_tokens(),
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"))
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(),
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."))
516 ("skip-disable-keys,K",524 ("skip-disable-keys,K",
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."))
518 ("ignore-table", po::value<string>(),526 ("ignore-table", po::value<string>(),
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"))
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(),
521 N_("Insert rows with INSERT IGNORE."))529 _("Insert rows with INSERT IGNORE."))
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(),
523 N_("Wrap a table's data in START TRANSACTION/COMMIT statements."))531 _("Wrap a table's data in START TRANSACTION/COMMIT statements."))
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(),
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."))
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(),
527 N_("No row information."))535 _("No row information."))
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(),
529 N_("Use REPLACE INTO instead of INSERT INTO."))537 _("Use REPLACE INTO instead of INSERT INTO."))
530 ("destination-type", po::value<string>()->default_value("stdout"),538 ("destination-type", po::value<string>()->default_value("stdout"),
531 N_("Where to send output to (stdout|database"))539 _("Where to send output to (stdout|database"))
532 ("destination-host", po::value<string>(&opt_destination_host)->default_value("localhost"),540 ("destination-host", po::value<string>(&opt_destination_host)->default_value("localhost"),
533 N_("Hostname for destination db server (requires --destination-type=database)"))541 _("Hostname for destination db server (requires --destination-type=database)"))
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),
535 N_("Port number for destination db server (requires --destination-type=database)"))543 _("Port number for destination db server (requires --destination-type=database)"))
536 ("destination-user", po::value<string>(&opt_destination_user),544 ("destination-user", po::value<string>(&opt_destination_user),
537 N_("User name for destination db server (resquires --destination-type=database)"))545 _("User name for destination db server (resquires --destination-type=database)"))
538 ("destination-password", po::value<string>(&opt_destination_password),546 ("destination-password", po::value<string>(&opt_destination_password),
539 N_("Password for destination db server (requires --destination-type=database)"))547 _("Password for destination db server (requires --destination-type=database)"))
540 ("destination-database", po::value<string>(&opt_destination_database),548 ("destination-database", po::value<string>(&opt_destination_database),
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)"))
542 ;550 ;
543551
544 po::options_description client_options(N_("Options specific to the client"));552 po::options_description client_options(_("Options specific to the client"));
545 client_options.add_options()553 client_options.add_options()
546 ("host,h", po::value<string>(&current_host)->default_value("localhost"),554 ("host,h", po::value<string>(&current_host)->default_value("localhost"),
547 N_("Connect to host."))555 _("Connect to host."))
548 ("password,P", po::value<string>(&password)->default_value(PASSWORD_SENTINEL),556 ("password,P", po::value<string>(&password)->default_value(PASSWORD_SENTINEL),
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."))
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),
551 N_("Port number to use for connection."))559 _("Port number to use for connection."))
552 ("user,u", po::value<string>(&current_user)->default_value(""),560 ("user,u", po::value<string>(&current_user)->default_value(""),
553 N_("User for login if not current user."))561 _("User for login if not current user."))
554 ("protocol",po::value<string>(&opt_protocol)->default_value("mysql"),562 ("protocol",po::value<string>(&opt_protocol)->default_value("mysql"),
555 N_("The protocol of connection (mysql or drizzle)."))563 _("The protocol of connection (mysql or drizzle)."))
556 ;564 ;
557565
558 po::options_description hidden_options(N_("Hidden Options"));566 po::options_description hidden_options(_("Hidden Options"));
559 hidden_options.add_options()567 hidden_options.add_options()
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"))
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"))
562 ;570 ;
563571
564 po::options_description all_options(N_("Allowed Options + Hidden Options"));572 po::options_description all_options(_("Allowed Options + Hidden Options"));
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);
566574
567 po::options_description long_options(N_("Allowed Options"));575 po::options_description long_options(_("Allowed Options"));
568 long_options.add(commandline_options).add(dump_options).add(client_options);576 long_options.add(commandline_options).add(dump_options).add(client_options);
569577
570 std::string system_config_dir_dump(SYSCONFDIR); 578 std::string system_config_dir_dump(SYSCONFDIR);
571579
=== modified file 'drizzled/drizzled.cc'
--- drizzled/drizzled.cc 2010-12-30 17:09:51 +0000
+++ drizzled/drizzled.cc 2011-01-10 20:36:11 +0000
@@ -597,12 +597,12 @@
597 initgroups((char*) user, user_info_arg->pw_gid);597 initgroups((char*) user, user_info_arg->pw_gid);
598 if (setgid(user_info_arg->pw_gid) == -1)598 if (setgid(user_info_arg->pw_gid) == -1)
599 {599 {
600 sql_perror(N_("Set process group ID failed"));600 sql_perror(_("Set process group ID failed"));
601 unireg_abort(1);601 unireg_abort(1);
602 }602 }
603 if (setuid(user_info_arg->pw_uid) == -1)603 if (setuid(user_info_arg->pw_uid) == -1)
604 {604 {
605 sql_perror(N_("Set process user ID failed"));605 sql_perror(_("Set process user ID failed"));
606 unireg_abort(1);606 unireg_abort(1);
607 }607 }
608}608}
@@ -614,7 +614,7 @@
614{614{
615 if ((chroot(path) == -1) || !chdir("/"))615 if ((chroot(path) == -1) || !chdir("/"))
616 {616 {
617 sql_perror(N_("Process chroot failed"));617 sql_perror(_("Process chroot failed"));
618 unireg_abort(1);618 unireg_abort(1);
619 }619 }
620}620}
@@ -734,7 +734,7 @@
734 global_system_variables.auto_increment_increment= 1;734 global_system_variables.auto_increment_increment= 1;
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)
736 {736 {
737 cout << N_("Error: Invalid Value for auto_increment_increment");737 cout << _("Error: Invalid Value for auto_increment_increment");
738 exit(-1);738 exit(-1);
739 }739 }
740 global_system_variables.auto_increment_increment= in_auto_increment_increment;740 global_system_variables.auto_increment_increment= in_auto_increment_increment;
@@ -745,7 +745,7 @@
745 global_system_variables.auto_increment_offset= 1;745 global_system_variables.auto_increment_offset= 1;
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)
747 {747 {
748 cout << N_("Error: Invalid Value for auto_increment_offset");748 cout << _("Error: Invalid Value for auto_increment_offset");
749 exit(-1);749 exit(-1);
750 }750 }
751 global_system_variables.auto_increment_offset= in_auto_increment_offset;751 global_system_variables.auto_increment_offset= in_auto_increment_offset;
@@ -756,7 +756,7 @@
756 global_system_variables.completion_type= 0;756 global_system_variables.completion_type= 0;
757 if (in_completion_type > 2)757 if (in_completion_type > 2)
758 {758 {
759 cout << N_("Error: Invalid Value for completion_type");759 cout << _("Error: Invalid Value for completion_type");
760 exit(-1);760 exit(-1);
761 }761 }
762 global_system_variables.completion_type= in_completion_type;762 global_system_variables.completion_type= in_completion_type;
@@ -768,7 +768,7 @@
768 global_system_variables.div_precincrement= 4;768 global_system_variables.div_precincrement= 4;
769 if (in_div_precincrement > DECIMAL_MAX_SCALE)769 if (in_div_precincrement > DECIMAL_MAX_SCALE)
770 {770 {
771 cout << N_("Error: Invalid Value for div-precision-increment");771 cout << _("Error: Invalid Value for div-precision-increment");
772 exit(-1);772 exit(-1);
773 }773 }
774 global_system_variables.div_precincrement= in_div_precincrement;774 global_system_variables.div_precincrement= in_div_precincrement;
@@ -779,7 +779,7 @@
779 global_system_variables.group_concat_max_len= 1024;779 global_system_variables.group_concat_max_len= 1024;
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)
781 {781 {
782 cout << N_("Error: Invalid Value for group_concat_max_len");782 cout << _("Error: Invalid Value for group_concat_max_len");
783 exit(-1);783 exit(-1);
784 }784 }
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;
@@ -790,7 +790,7 @@
790 global_system_variables.join_buff_size= (128*1024L);790 global_system_variables.join_buff_size= (128*1024L);
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)
792 {792 {
793 cout << N_("Error: Invalid Value for join_buffer_size");793 cout << _("Error: Invalid Value for join_buffer_size");
794 exit(-1);794 exit(-1);
795 }795 }
796 in_join_buffer_size-= in_join_buffer_size % IO_SIZE;796 in_join_buffer_size-= in_join_buffer_size % IO_SIZE;
@@ -802,7 +802,7 @@
802 global_system_variables.max_allowed_packet= (64*1024*1024L);802 global_system_variables.max_allowed_packet= (64*1024*1024L);
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)
804 {804 {
805 cout << N_("Error: Invalid Value for max_allowed_packet");805 cout << _("Error: Invalid Value for max_allowed_packet");
806 exit(-1);806 exit(-1);
807 }807 }
808 in_max_allowed_packet-= in_max_allowed_packet % 1024;808 in_max_allowed_packet-= in_max_allowed_packet % 1024;
@@ -814,7 +814,7 @@
814 max_connect_errors= MAX_CONNECT_ERRORS;814 max_connect_errors= MAX_CONNECT_ERRORS;
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)
816 {816 {
817 cout << N_("Error: Invalid Value for max_connect_errors");817 cout << _("Error: Invalid Value for max_connect_errors");
818 exit(-1);818 exit(-1);
819 }819 }
820 max_connect_errors= in_max_connect_errors;820 max_connect_errors= in_max_connect_errors;
@@ -825,7 +825,7 @@
825 global_system_variables.max_error_count= DEFAULT_ERROR_COUNT;825 global_system_variables.max_error_count= DEFAULT_ERROR_COUNT;
826 if (in_max_error_count > 65535)826 if (in_max_error_count > 65535)
827 {827 {
828 cout << N_("Error: Invalid Value for max_error_count");828 cout << _("Error: Invalid Value for max_error_count");
829 exit(-1);829 exit(-1);
830 }830 }
831 global_system_variables.max_error_count= in_max_error_count;831 global_system_variables.max_error_count= in_max_error_count;
@@ -836,7 +836,7 @@
836 global_system_variables.max_heap_table_size= (16*1024*1024L);836 global_system_variables.max_heap_table_size= (16*1024*1024L);
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)
838 {838 {
839 cout << N_("Error: Invalid Value for max_heap_table_size");839 cout << _("Error: Invalid Value for max_heap_table_size");
840 exit(-1);840 exit(-1);
841 }841 }
842 in_max_heap_table_size-= in_max_heap_table_size % 1024;842 in_max_heap_table_size-= in_max_heap_table_size % 1024;
@@ -848,7 +848,7 @@
848 global_system_variables.min_examined_row_limit= 0;848 global_system_variables.min_examined_row_limit= 0;
849 if (in_min_examined_row_limit > ULONG_MAX)849 if (in_min_examined_row_limit > ULONG_MAX)
850 {850 {
851 cout << N_("Error: Invalid Value for min_examined_row_limit");851 cout << _("Error: Invalid Value for min_examined_row_limit");
852 exit(-1);852 exit(-1);
853 }853 }
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;
@@ -859,7 +859,7 @@
859 global_system_variables.max_join_size= INT32_MAX;859 global_system_variables.max_join_size= INT32_MAX;
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)
861 {861 {
862 cout << N_("Error: Invalid Value for max_join_size");862 cout << _("Error: Invalid Value for max_join_size");
863 exit(-1);863 exit(-1);
864 }864 }
865 global_system_variables.max_join_size= in_max_join_size;865 global_system_variables.max_join_size= in_max_join_size;
@@ -870,7 +870,7 @@
870 global_system_variables.max_length_for_sort_data= 1024;870 global_system_variables.max_length_for_sort_data= 1024;
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)
872 {872 {
873 cout << N_("Error: Invalid Value for max_length_for_sort_data");873 cout << _("Error: Invalid Value for max_length_for_sort_data");
874 exit(-1);874 exit(-1);
875 }875 }
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;
@@ -881,7 +881,7 @@
881 global_system_variables.max_seeks_for_key= ULONG_MAX;881 global_system_variables.max_seeks_for_key= ULONG_MAX;
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)
883 {883 {
884 cout << N_("Error: Invalid Value for max_seeks_for_key");884 cout << _("Error: Invalid Value for max_seeks_for_key");
885 exit(-1);885 exit(-1);
886 }886 }
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;
@@ -892,7 +892,7 @@
892 global_system_variables.max_sort_length= 1024;892 global_system_variables.max_sort_length= 1024;
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)
894 {894 {
895 cout << N_("Error: Invalid Value for max_sort_length");895 cout << _("Error: Invalid Value for max_sort_length");
896 exit(-1);896 exit(-1);
897 }897 }
898 global_system_variables.max_sort_length= in_max_sort_length;898 global_system_variables.max_sort_length= in_max_sort_length;
@@ -903,7 +903,7 @@
903 global_system_variables.optimizer_search_depth= 0;903 global_system_variables.optimizer_search_depth= 0;
904 if (in_optimizer_search_depth > MAX_TABLES + 2)904 if (in_optimizer_search_depth > MAX_TABLES + 2)
905 {905 {
906 cout << N_("Error: Invalid Value for optimizer_search_depth");906 cout << _("Error: Invalid Value for optimizer_search_depth");
907 exit(-1);907 exit(-1);
908 }908 }
909 global_system_variables.optimizer_search_depth= in_optimizer_search_depth;909 global_system_variables.optimizer_search_depth= in_optimizer_search_depth;
@@ -914,7 +914,7 @@
914 global_system_variables.preload_buff_size= (32*1024L);914 global_system_variables.preload_buff_size= (32*1024L);
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)
916 {916 {
917 cout << N_("Error: Invalid Value for preload_buff_size");917 cout << _("Error: Invalid Value for preload_buff_size");
918 exit(-1);918 exit(-1);
919 }919 }
920 global_system_variables.preload_buff_size= in_preload_buff_size;920 global_system_variables.preload_buff_size= in_preload_buff_size;
@@ -925,7 +925,7 @@
925 global_system_variables.query_alloc_block_size= QUERY_ALLOC_BLOCK_SIZE;925 global_system_variables.query_alloc_block_size= QUERY_ALLOC_BLOCK_SIZE;
926 if (in_query_alloc_block_size < 1024)926 if (in_query_alloc_block_size < 1024)
927 {927 {
928 cout << N_("Error: Invalid Value for query_alloc_block_size");928 cout << _("Error: Invalid Value for query_alloc_block_size");
929 exit(-1);929 exit(-1);
930 }930 }
931 in_query_alloc_block_size-= in_query_alloc_block_size % 1024;931 in_query_alloc_block_size-= in_query_alloc_block_size % 1024;
@@ -937,7 +937,7 @@
937 global_system_variables.query_prealloc_size= QUERY_ALLOC_PREALLOC_SIZE;937 global_system_variables.query_prealloc_size= QUERY_ALLOC_PREALLOC_SIZE;
938 if (in_query_prealloc_size < QUERY_ALLOC_PREALLOC_SIZE)938 if (in_query_prealloc_size < QUERY_ALLOC_PREALLOC_SIZE)
939 {939 {
940 cout << N_("Error: Invalid Value for query_prealloc_size");940 cout << _("Error: Invalid Value for query_prealloc_size");
941 exit(-1);941 exit(-1);
942 }942 }
943 in_query_prealloc_size-= in_query_prealloc_size % 1024;943 in_query_prealloc_size-= in_query_prealloc_size % 1024;
@@ -949,7 +949,7 @@
949 global_system_variables.range_alloc_block_size= RANGE_ALLOC_BLOCK_SIZE;949 global_system_variables.range_alloc_block_size= RANGE_ALLOC_BLOCK_SIZE;
950 if (in_range_alloc_block_size < RANGE_ALLOC_BLOCK_SIZE)950 if (in_range_alloc_block_size < RANGE_ALLOC_BLOCK_SIZE)
951 {951 {
952 cout << N_("Error: Invalid Value for range_alloc_block_size");952 cout << _("Error: Invalid Value for range_alloc_block_size");
953 exit(-1);953 exit(-1);
954 }954 }
955 in_range_alloc_block_size-= in_range_alloc_block_size % 1024;955 in_range_alloc_block_size-= in_range_alloc_block_size % 1024;
@@ -961,7 +961,7 @@
961 global_system_variables.read_buff_size= (128*1024L);961 global_system_variables.read_buff_size= (128*1024L);
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)
963 {963 {
964 cout << N_("Error: Invalid Value for read_buff_size");964 cout << _("Error: Invalid Value for read_buff_size");
965 exit(-1);965 exit(-1);
966 }966 }
967 in_read_buff_size-= in_read_buff_size % IO_SIZE;967 in_read_buff_size-= in_read_buff_size % IO_SIZE;
@@ -973,7 +973,7 @@
973 global_system_variables.read_rnd_buff_size= (256*1024L);973 global_system_variables.read_rnd_buff_size= (256*1024L);
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)
975 {975 {
976 cout << N_("Error: Invalid Value for read_rnd_buff_size");976 cout << _("Error: Invalid Value for read_rnd_buff_size");
977 exit(-1);977 exit(-1);
978 }978 }
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;
@@ -984,7 +984,7 @@
984 global_system_variables.sortbuff_size= MAX_SORT_MEMORY;984 global_system_variables.sortbuff_size= MAX_SORT_MEMORY;
985 if ((uint32_t)in_sortbuff_size < MIN_SORT_MEMORY)985 if ((uint32_t)in_sortbuff_size < MIN_SORT_MEMORY)
986 {986 {
987 cout << N_("Error: Invalid Value for sort_buff_size");987 cout << _("Error: Invalid Value for sort_buff_size");
988 exit(-1);988 exit(-1);
989 }989 }
990 global_system_variables.sortbuff_size= in_sortbuff_size;990 global_system_variables.sortbuff_size= in_sortbuff_size;
@@ -995,7 +995,7 @@
995 table_def_size= 128;995 table_def_size= 128;
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)
997 {997 {
998 cout << N_("Error: Invalid Value for table_def_size");998 cout << _("Error: Invalid Value for table_def_size");
999 exit(-1);999 exit(-1);
1000 }1000 }
1001 table_def_size= in_table_def_size;1001 table_def_size= in_table_def_size;
@@ -1006,7 +1006,7 @@
1006 table_cache_size= TABLE_OPEN_CACHE_DEFAULT;1006 table_cache_size= TABLE_OPEN_CACHE_DEFAULT;
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)
1008 {1008 {
1009 cout << N_("Error: Invalid Value for table_cache_size");1009 cout << _("Error: Invalid Value for table_cache_size");
1010 exit(-1);1010 exit(-1);
1011 }1011 }
1012 table_cache_size= in_table_cache_size;1012 table_cache_size= in_table_cache_size;
@@ -1017,7 +1017,7 @@
1017 table_lock_wait_timeout= 50;1017 table_lock_wait_timeout= 50;
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)
1019 {1019 {
1020 cout << N_("Error: Invalid Value for table_lock_wait_timeout");1020 cout << _("Error: Invalid Value for table_lock_wait_timeout");
1021 exit(-1);1021 exit(-1);
1022 }1022 }
1023 table_lock_wait_timeout= in_table_lock_wait_timeout;1023 table_lock_wait_timeout= in_table_lock_wait_timeout;
@@ -1033,7 +1033,7 @@
1033 global_system_variables.tmp_table_size= 16*1024*1024L;1033 global_system_variables.tmp_table_size= 16*1024*1024L;
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)
1035 {1035 {
1036 cout << N_("Error: Invalid Value for table_lock_wait_timeout");1036 cout << _("Error: Invalid Value for table_lock_wait_timeout");
1037 exit(-1);1037 exit(-1);
1038 }1038 }
1039 global_system_variables.tmp_table_size= in_tmp_table_size;1039 global_system_variables.tmp_table_size= in_tmp_table_size;
@@ -1044,7 +1044,7 @@
1044 global_system_variables.transaction_message_threshold= 1024*1024;1044 global_system_variables.transaction_message_threshold= 1024*1024;
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)
1046 {1046 {
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");
1048 exit(-1);1048 exit(-1);
1049 }1049 }
1050 global_system_variables.transaction_message_threshold= in_transaction_message_threshold;1050 global_system_variables.transaction_message_threshold= in_transaction_message_threshold;
@@ -1158,138 +1158,138 @@
11581158
1159 config_options.add_options()1159 config_options.add_options()
1160 ("help,?", po::value<bool>(&opt_help)->default_value(false)->zero_tokens(),1160 ("help,?", po::value<bool>(&opt_help)->default_value(false)->zero_tokens(),
1161 N_("Display this help and exit."))1161 _("Display this help and exit."))
1162 ("no-defaults", po::value<bool>()->default_value(false)->zero_tokens(),1162 ("no-defaults", po::value<bool>()->default_value(false)->zero_tokens(),
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"))
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),
1165 N_("Configuration file to use"))1165 _("Configuration file to use"))
1166 ("config-dir", po::value<fs::path>(&system_config_dir),1166 ("config-dir", po::value<fs::path>(&system_config_dir),
1167 N_("Base location for config files"))1167 _("Base location for config files"))
1168 ("plugin-dir", po::value<fs::path>(&plugin_dir)->notifier(&notify_plugin_dir),1168 ("plugin-dir", po::value<fs::path>(&plugin_dir)->notifier(&notify_plugin_dir),
1169 N_("Directory for plugins."))1169 _("Directory for plugins."))
1170 ;1170 ;
11711171
1172 plugin_load_options.add_options()1172 plugin_load_options.add_options()
1173 ("plugin-add", po::value<vector<string> >()->composing()->notifier(&compose_plugin_add),1173 ("plugin-add", po::value<vector<string> >()->composing()->notifier(&compose_plugin_add),
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 "
1175 "to the default list of plugins. "1175 "to the default list of plugins. "
1176 "[for example: --plugin_add=crc32,logger_gearman]")) 1176 "[for example: --plugin_add=crc32,logger_gearman]"))
1177 ("plugin-remove", po::value<vector<string> >()->composing()->notifier(&compose_plugin_remove),1177 ("plugin-remove", po::value<vector<string> >()->composing()->notifier(&compose_plugin_remove),
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 "
1179 "removes a plugin from the list of plugins to be loaded. "1179 "removes a plugin from the list of plugins to be loaded. "
1180 "[for example: --plugin_remove=crc32,logger_gearman]"))1180 "[for example: --plugin_remove=crc32,logger_gearman]"))
1181 ("plugin-load", po::value<string>()->notifier(&notify_plugin_load)->default_value(PANDORA_PLUGIN_LIST),1181 ("plugin-load", po::value<string>()->notifier(&notify_plugin_load)->default_value(PANDORA_PLUGIN_LIST),
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 "
1183 "the default plugin load list. "1183 "the default plugin load list. "
1184 "[for example: --plugin_load=crc32,logger_gearman]"))1184 "[for example: --plugin_load=crc32,logger_gearman]"))
1185 ;1185 ;
11861186
1187 long_options.add_options()1187 long_options.add_options()
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),
1189 N_("Auto-increment columns are incremented by this"))1189 _("Auto-increment columns are incremented by this"))
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),
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"))
1192 ("basedir,b", po::value<fs::path>(&basedir),1192 ("basedir,b", po::value<fs::path>(&basedir),
1193 N_("Path to installation directory. All paths are usually resolved "1193 _("Path to installation directory. All paths are usually resolved "
1194 "relative to this."))1194 "relative to this."))
1195 ("chroot,r", po::value<string>(),1195 ("chroot,r", po::value<string>(),
1196 N_("Chroot drizzled daemon during startup."))1196 _("Chroot drizzled daemon during startup."))
1197 ("collation-server", po::value<string>(),1197 ("collation-server", po::value<string>(),
1198 N_("Set the default collation.")) 1198 _("Set the default collation."))
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),
1200 N_("Default completion type."))1200 _("Default completion type."))
1201 ("core-file", N_("Write core on errors."))1201 ("core-file", _("Write core on errors."))
1202 ("datadir", po::value<fs::path>(&data_home),1202 ("datadir", po::value<fs::path>(&data_home),
1203 N_("Path to the database root."))1203 _("Path to the database root."))
1204 ("default-storage-engine", po::value<string>(),1204 ("default-storage-engine", po::value<string>(),
1205 N_("Set the default storage engine for tables."))1205 _("Set the default storage engine for tables."))
1206 ("default-time-zone", po::value<string>(),1206 ("default-time-zone", po::value<string>(),
1207 N_("Set the default time zone."))1207 _("Set the default time zone."))
1208 ("exit-info,T", po::value<long>(),1208 ("exit-info,T", po::value<long>(),
1209 N_("Used for debugging; Use at your own risk!"))1209 _("Used for debugging; Use at your own risk!"))
1210 ("gdb", po::value<bool>(&opt_debugging)->default_value(false)->zero_tokens(),1210 ("gdb", po::value<bool>(&opt_debugging)->default_value(false)->zero_tokens(),
1211 N_("Set up signals usable for debugging"))1211 _("Set up signals usable for debugging"))
1212 ("lc-time-name", po::value<string>(),1212 ("lc-time-name", po::value<string>(),
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."))
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(),
1215 N_("Log some not critical warnings to the log file.")) 1215 _("Log some not critical warnings to the log file."))
1216 ("pid-file", po::value<fs::path>(&pid_file),1216 ("pid-file", po::value<fs::path>(&pid_file),
1217 N_("Pid file used by drizzled."))1217 _("Pid file used by drizzled."))
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),
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. "))
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(),
1221 N_("Include the SQL query in replicated protobuf messages."))1221 _("Include the SQL query in replicated protobuf messages."))
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),
1223 N_("Limit LOAD DATA, SELECT ... OUTFILE, and LOAD_FILE() to files "1223 _("Limit LOAD DATA, SELECT ... OUTFILE, and LOAD_FILE() to files "
1224 "within specified directory"))1224 "within specified directory"))
1225 ("server-id", po::value<uint32_t>(&server_id)->default_value(0),1225 ("server-id", po::value<uint32_t>(&server_id)->default_value(0),
1226 N_("Uniquely identifies the server instance in the community of "1226 _("Uniquely identifies the server instance in the community of "
1227 "replication partners."))1227 "replication partners."))
1228 ("skip-stack-trace", 1228 ("skip-stack-trace",
1229 N_("Don't print a stack trace on failure."))1229 _("Don't print a stack trace on failure."))
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(),
1231 N_("Enable symbolic link support."))1231 _("Enable symbolic link support."))
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(),
1233 N_("Specify whether to time mutexes (only InnoDB mutexes are currently "1233 _("Specify whether to time mutexes (only InnoDB mutexes are currently "
1234 "supported)")) 1234 "supported)"))
1235 ("tmpdir,t", po::value<string>(),1235 ("tmpdir,t", po::value<string>(),
1236 N_("Path for temporary files."))1236 _("Path for temporary files."))
1237 ("transaction-isolation", po::value<string>(),1237 ("transaction-isolation", po::value<string>(),
1238 N_("Default transaction isolation level."))1238 _("Default transaction isolation level."))
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),
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."))
1241 ("user,u", po::value<string>(),1241 ("user,u", po::value<string>(),
1242 N_("Run drizzled daemon as user.")) 1242 _("Run drizzled daemon as user."))
1243 ("version,V", 1243 ("version,V",
1244 N_("Output version information and exit."))1244 _("Output version information and exit."))
1245 ("back-log", po::value<back_log_constraints>(&back_log),1245 ("back-log", po::value<back_log_constraints>(&back_log),
1246 N_("The number of outstanding connection requests Drizzle can have. This "1246 _("The number of outstanding connection requests Drizzle can have. This "
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 "
1248 "requests in a very short time."))1248 "requests in a very short time."))
1249 ("bulk-insert-buffer-size", 1249 ("bulk-insert-buffer-size",
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),
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 "
1252 "a limit per thread!"))1252 "a limit per thread!"))
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),
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 "
1255 "value."))1255 "value."))
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),
1257 N_("The maximum length of the result of function group_concat."))1257 _("The maximum length of the result of function group_concat."))
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),
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."))
1260 ("join-heap-threshold",1260 ("join-heap-threshold",
1261 po::value<uint64_t>()->default_value(0),1261 po::value<uint64_t>()->default_value(0),
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)"))
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),
1264 N_("Max packetlength to send/receive from to server."))1264 _("Max packetlength to send/receive from to server."))
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),
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 "
1267 "host this host will be blocked from further connections."))1267 "host this host will be blocked from further connections."))
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),
1269 N_("Max number of errors/warnings to store for a statement."))1269 _("Max number of errors/warnings to store for a statement."))
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),
1271 N_("Don't allow creation of heap tables bigger than this."))1271 _("Don't allow creation of heap tables bigger than this."))
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),
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 "
1274 "return an error."))1274 "return an error."))
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),
1276 N_("Max number of bytes in sorted records."))1276 _("Max number of bytes in sorted records."))
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),
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"))
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),
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 "
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 "
1282 "rest are ignored)."))1282 "rest are ignored)."))
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),
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."))
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),
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 "
1287 "rows to file."))1287 "rows to file."))
1288 ("disable-optimizer-prune",1288 ("disable-optimizer-prune",
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, "
1290 "thus perform an exhaustive search from the optimizer search space."))1290 "thus perform an exhaustive search from the optimizer search space."))
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),
1292 N_("Maximum depth of search performed by the query optimizer. Values "1292 _("Maximum depth of search performed by the query optimizer. Values "
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 "
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 "
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 "
@@ -1298,52 +1298,52 @@
1298 "optimizer will switch to the original find_best (used for "1298 "optimizer will switch to the original find_best (used for "
1299 "testing/comparison)."))1299 "testing/comparison)."))
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),
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"))
1302 ("query-alloc-block-size", 1302 ("query-alloc-block-size",
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),
1304 N_("Allocation block size for query parsing and execution"))1304 _("Allocation block size for query parsing and execution"))
1305 ("query-prealloc-size",1305 ("query-prealloc-size",
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),
1307 N_("Persistent buffer for query parsing and execution"))1307 _("Persistent buffer for query parsing and execution"))
1308 ("range-alloc-block-size",1308 ("range-alloc-block-size",
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),
1310 N_("Allocation block size for storing ranges during optimization"))1310 _("Allocation block size for storing ranges during optimization"))
1311 ("read-buffer-size",1311 ("read-buffer-size",
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),
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 "
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 "
1315 "want to increase this value."))1315 "want to increase this value."))
1316 ("read-buffer-threshold",1316 ("read-buffer-threshold",
1317 po::value<uint64_t>()->default_value(0),1317 po::value<uint64_t>()->default_value(0),
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)"))
1319 ("read-rnd-buffer-size",1319 ("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),1320 po::value<uint32_t>(&global_system_variables.read_rnd_buff_size)->default_value(256*1024L)->notifier(&check_limits_read_rnd_buffer_size),
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 "
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 "
1323 "to the value of record_buffer."))1323 "to the value of record_buffer."))
1324 ("read-rnd-threshold",1324 ("read-rnd-threshold",
1325 po::value<uint64_t>()->default_value(0),1325 po::value<uint64_t>()->default_value(0),
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)"))
1327 ("scheduler", po::value<string>(),1327 ("scheduler", po::value<string>(),
1328 N_("Select scheduler to be used (by default multi-thread)."))1328 _("Select scheduler to be used (by default multi-thread)."))
1329 ("sort-buffer-size",1329 ("sort-buffer-size",
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),
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."))
1332 ("sort-heap-threshold",1332 ("sort-heap-threshold",
1333 po::value<uint64_t>()->default_value(0),1333 po::value<uint64_t>()->default_value(0),
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)"))
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),
1336 N_("The number of cached table definitions."))1336 _("The number of cached table definitions."))
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),
1338 N_("The number of cached open tables."))1338 _("The number of cached open tables."))
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),
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 "
1341 "error. Used only if the connection has active cursors."))1341 "error. Used only if the connection has active cursors."))
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),
1343 N_("The stack size for each thread."))1343 _("The stack size for each thread."))
1344 ("tmp-table-size", 1344 ("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),1345 po::value<uint64_t>(&global_system_variables.tmp_table_size)->default_value(16*1024*1024L)->notifier(&check_limits_tmp_table_size),
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"
1347 " automatically convert it to an on-disk MyISAM table."))1347 " automatically convert it to an on-disk MyISAM table."))
1348 ;1348 ;
13491349
@@ -2234,7 +2234,7 @@
2234 (vm["sort-heap-threshold"].as<uint64_t>() < 2234 (vm["sort-heap-threshold"].as<uint64_t>() <
2235 global_system_variables.sortbuff_size))2235 global_system_variables.sortbuff_size))
2236 {2236 {
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;
2238 exit(-1);2238 exit(-1);
2239 }2239 }
22402240
@@ -2247,7 +2247,7 @@
2247 (vm["join-heap-threshold"].as<uint64_t>() <2247 (vm["join-heap-threshold"].as<uint64_t>() <
2248 global_system_variables.join_buff_size))2248 global_system_variables.join_buff_size))
2249 {2249 {
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;
2251 exit(-1);2251 exit(-1);
2252 }2252 }
22532253
@@ -2260,7 +2260,7 @@
2260 (vm["read-rnd-threshold"].as<uint64_t>() <2260 (vm["read-rnd-threshold"].as<uint64_t>() <
2261 global_system_variables.read_rnd_buff_size))2261 global_system_variables.read_rnd_buff_size))
2262 {2262 {
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;
2264 exit(-1);2264 exit(-1);
2265 }2265 }
22662266
@@ -2273,7 +2273,7 @@
2273 (vm["read-buffer-threshold"].as<uint64_t>() <2273 (vm["read-buffer-threshold"].as<uint64_t>() <
2274 global_system_variables.read_buff_size))2274 global_system_variables.read_buff_size))
2275 {2275 {
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;
2277 exit(-1);2277 exit(-1);
2278 }2278 }
22792279
22802280
=== modified file 'drizzled/main.cc'
--- drizzled/main.cc 2010-12-30 15:27:27 +0000
+++ drizzled/main.cc 2011-01-10 20:36:11 +0000
@@ -221,8 +221,8 @@
221# if defined(HAVE_LOCALE_H)221# if defined(HAVE_LOCALE_H)
222 setlocale(LC_ALL, "");222 setlocale(LC_ALL, "");
223# endif223# endif
224 bindtextdomain("drizzle", LOCALEDIR);224 bindtextdomain("drizzle7", LOCALEDIR);
225 textdomain("drizzle");225 textdomain("drizzle7");
226#endif226#endif
227227
228 module::Registry &modules= module::Registry::singleton();228 module::Registry &modules= module::Registry::singleton();
229229
=== modified file 'plugin/logging_gearman/logging_gearman.cc'
--- plugin/logging_gearman/logging_gearman.cc 2011-01-01 03:24:09 +0000
+++ plugin/logging_gearman/logging_gearman.cc 2011-01-10 20:36:11 +0000
@@ -299,10 +299,10 @@
299{299{
300 context("host",300 context("host",
301 po::value<std::string>()->default_value("localhost"),301 po::value<std::string>()->default_value("localhost"),
302 N_("Hostname for logging to a Gearman server"));302 _("Hostname for logging to a Gearman server"));
303 context("function",303 context("function",
304 po::value<std::string>()->default_value("drizzlelog"),304 po::value<std::string>()->default_value("drizzlelog"),
305 N_("Gearman Function to send logging to"));305 _("Gearman Function to send logging to"));
306}306}
307307
308} /* namespace drizzle_plugin */308} /* namespace drizzle_plugin */
309309
=== modified file 'plugin/logging_query/logging_query.cc'
--- plugin/logging_query/logging_query.cc 2010-12-31 21:25:11 +0000
+++ plugin/logging_query/logging_query.cc 2011-01-10 20:36:11 +0000
@@ -316,22 +316,22 @@
316{316{
317 context("enable",317 context("enable",
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(),
319 N_("Enable logging to CSV file"));319 _("Enable logging to CSV file"));
320 context("filename",320 context("filename",
321 po::value<string>(),321 po::value<string>(),
322 N_("File to log to"));322 _("File to log to"));
323 context("pcre",323 context("pcre",
324 po::value<string>()->default_value(""),324 po::value<string>()->default_value(""),
325 N_("PCRE to match the query against"));325 _("PCRE to match the query against"));
326 context("threshold-slow",326 context("threshold-slow",
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),
328 N_("Threshold for logging slow queries, in microseconds"));328 _("Threshold for logging slow queries, in microseconds"));
329 context("threshold-big-resultset",329 context("threshold-big-resultset",
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),
331 N_("Threshold for logging big queries, for rows returned"));331 _("Threshold for logging big queries, for rows returned"));
332 context("threshold-big-examined",332 context("threshold-big-examined",
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),
334 N_("Threshold for logging big queries, for rows examined"));334 _("Threshold for logging big queries, for rows examined"));
335}335}
336336
337} /* namespace drizzle_plugin */337} /* namespace drizzle_plugin */
338338
=== modified file 'plugin/logging_stats/logging_stats.cc'
--- plugin/logging_stats/logging_stats.cc 2011-01-01 01:54:09 +0000
+++ plugin/logging_stats/logging_stats.cc 2011-01-10 20:36:11 +0000
@@ -370,14 +370,14 @@
370{370{
371 context("max-user-count",371 context("max-user-count",
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),
373 N_("Max number of users that will be logged"));373 _("Max number of users that will be logged"));
374 context("bucket-count",374 context("bucket-count",
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),
376 N_("Max number of range locks to use for Scoreboard"));376 _("Max number of range locks to use for Scoreboard"));
377 context("scoreboard-size",377 context("scoreboard-size",
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),
379 N_("Max number of concurrent sessions that will be logged"));379 _("Max number of concurrent sessions that will be logged"));
380 context("disable", N_("Enable Logging Statistics Collection"));380 context("disable", _("Enable Logging Statistics Collection"));
381}381}
382382
383DRIZZLE_DECLARE_PLUGIN383DRIZZLE_DECLARE_PLUGIN
384384
=== modified file 'plugin/memcached_query_cache/memcached_qc.cc'
--- plugin/memcached_query_cache/memcached_qc.cc 2010-12-18 04:43:40 +0000
+++ plugin/memcached_query_cache/memcached_qc.cc 2011-01-10 20:36:11 +0000
@@ -385,13 +385,13 @@
385{385{
386 context("servers",386 context("servers",
387 po::value<string>()->default_value("127.0.0.1:11211"),387 po::value<string>()->default_value("127.0.0.1:11211"),
388 N_("List of memcached servers."));388 _("List of memcached servers."));
389 context("expiry",389 context("expiry",
390 po::value<uint64_constraint>(&expiry_time)->default_value(1000),390 po::value<uint64_constraint>(&expiry_time)->default_value(1000),
391 N_("Expiry time of memcached entries"));391 _("Expiry time of memcached entries"));
392 context("enable",392 context("enable",
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(),
394 N_("Enable Memcached Query Cache"));394 _("Enable Memcached Query Cache"));
395}395}
396396
397DRIZZLE_DECLARE_PLUGIN397DRIZZLE_DECLARE_PLUGIN
398398
=== modified file 'plugin/memcached_stats/memcached_stats.cc'
--- plugin/memcached_stats/memcached_stats.cc 2010-12-18 04:43:40 +0000
+++ plugin/memcached_stats/memcached_stats.cc 2011-01-10 20:36:11 +0000
@@ -84,7 +84,7 @@
84{84{
85 context("servers",85 context("servers",
86 po::value<std::string>()->default_value(""),86 po::value<std::string>()->default_value(""),
87 N_("List of memcached servers."));87 _("List of memcached servers."));
88}88}
8989
90} /* namespace drizzle_plugin */90} /* namespace drizzle_plugin */
9191
=== modified file 'plugin/multi_thread/multi_thread.cc'
--- plugin/multi_thread/multi_thread.cc 2011-01-08 18:21:31 +0000
+++ plugin/multi_thread/multi_thread.cc 2011-01-10 20:36:11 +0000
@@ -208,7 +208,7 @@
208{208{
209 context("max-threads",209 context("max-threads",
210 po::value<max_threads_constraint>(&max_threads)->default_value(2048),210 po::value<max_threads_constraint>(&max_threads)->default_value(2048),
211 N_("Maximum number of user threads available."));211 _("Maximum number of user threads available."));
212}212}
213213
214DRIZZLE_DECLARE_PLUGIN214DRIZZLE_DECLARE_PLUGIN
215215
=== modified file 'plugin/myisam/ha_myisam.cc'
--- plugin/myisam/ha_myisam.cc 2010-12-18 10:19:12 +0000
+++ plugin/myisam/ha_myisam.cc 2011-01-10 20:36:11 +0000
@@ -1503,10 +1503,10 @@
1503{1503{
1504 context("max-sort-file-size",1504 context("max-sort-file-size",
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),
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."));
1507 context("sort-buffer-size",1507 context("sort-buffer-size",
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),
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."));
1510}1510}
15111511
15121512
15131513
=== modified file 'plugin/mysql_protocol/mysql_protocol.cc'
--- plugin/mysql_protocol/mysql_protocol.cc 2011-01-04 04:05:27 +0000
+++ plugin/mysql_protocol/mysql_protocol.cc 2011-01-10 20:36:11 +0000
@@ -1011,32 +1011,32 @@
1011{1011{
1012 context("port",1012 context("port",
1013 po::value<port_constraint>(&port)->default_value(3306),1013 po::value<port_constraint>(&port)->default_value(3306),
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 "
1015 "protocol."));1015 "protocol."));
1016 context("connect-timeout",1016 context("connect-timeout",
1017 po::value<timeout_constraint>(&connect_timeout)->default_value(10),1017 po::value<timeout_constraint>(&connect_timeout)->default_value(10),
1018 N_("Connect Timeout."));1018 _("Connect Timeout."));
1019 context("read-timeout",1019 context("read-timeout",
1020 po::value<timeout_constraint>(&read_timeout)->default_value(30),1020 po::value<timeout_constraint>(&read_timeout)->default_value(30),
1021 N_("Read Timeout."));1021 _("Read Timeout."));
1022 context("write-timeout",1022 context("write-timeout",
1023 po::value<timeout_constraint>(&write_timeout)->default_value(60),1023 po::value<timeout_constraint>(&write_timeout)->default_value(60),
1024 N_("Write Timeout."));1024 _("Write Timeout."));
1025 context("retry-count",1025 context("retry-count",
1026 po::value<retry_constraint>(&retry_count)->default_value(10),1026 po::value<retry_constraint>(&retry_count)->default_value(10),
1027 N_("Retry Count."));1027 _("Retry Count."));
1028 context("buffer-length",1028 context("buffer-length",
1029 po::value<buffer_constraint>(&buffer_length)->default_value(16384),1029 po::value<buffer_constraint>(&buffer_length)->default_value(16384),
1030 N_("Buffer length."));1030 _("Buffer length."));
1031 context("bind-address",1031 context("bind-address",
1032 po::value<string>()->default_value(""),1032 po::value<string>()->default_value(""),
1033 N_("Address to bind to."));1033 _("Address to bind to."));
1034 context("max-connections",1034 context("max-connections",
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),
1036 N_("Maximum simultaneous connections."));1036 _("Maximum simultaneous connections."));
1037 context("admin-ip-addresses",1037 context("admin-ip-addresses",
1038 po::value<vector<string> >()->composing()->notifier(&ClientMySQLProtocol::mysql_compose_ip_addresses),1038 po::value<vector<string> >()->composing()->notifier(&ClientMySQLProtocol::mysql_compose_ip_addresses),
1039 N_("A restrictive IP address list for incoming admin connections."));1039 _("A restrictive IP address list for incoming admin connections."));
1040}1040}
10411041
1042static int mysql_protocol_connection_count_func(drizzle_show_var *var, char *buff)1042static int mysql_protocol_connection_count_func(drizzle_show_var *var, char *buff)
10431043
=== modified file 'plugin/mysql_unix_socket_protocol/protocol.cc'
--- plugin/mysql_unix_socket_protocol/protocol.cc 2010-12-13 14:34:37 +0000
+++ plugin/mysql_unix_socket_protocol/protocol.cc 2011-01-10 20:36:11 +0000
@@ -165,12 +165,12 @@
165{165{
166 context("path",166 context("path",
167 po::value<fs::path>()->default_value(DRIZZLE_UNIX_SOCKET_PATH),167 po::value<fs::path>()->default_value(DRIZZLE_UNIX_SOCKET_PATH),
168 N_("Path used for MySQL UNIX Socket Protocol."));168 _("Path used for MySQL UNIX Socket Protocol."));
169 context("clobber",169 context("clobber",
170 N_("Clobber socket file if one is there already."));170 _("Clobber socket file if one is there already."));
171 context("max-connections",171 context("max-connections",
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),
173 N_("Maximum simultaneous connections."));173 _("Maximum simultaneous connections."));
174}174}
175175
176} /* namespace mysql_unix_socket_protocol */176} /* namespace mysql_unix_socket_protocol */
177177
=== modified file 'plugin/pbms/src/parameters_ms.cc'
--- plugin/pbms/src/parameters_ms.cc 2010-12-18 04:43:40 +0000
+++ plugin/pbms/src/parameters_ms.cc 2011-01-10 20:36:11 +0000
@@ -423,42 +423,42 @@
423{423{
424 context("port",424 context("port",
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),
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 "));
427 context("repository-threshold",427 context("repository-threshold",
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),
429 N_("The maximum size of a BLOB repository file."));429 _("The maximum size of a BLOB repository file."));
430 context("temp-log-threshold",430 context("temp-log-threshold",
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),
432 N_("The maximum size of a temorary BLOB log file."));432 _("The maximum size of a temorary BLOB log file."));
433 context("http-metadata-headers",433 context("http-metadata-headers",
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),
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 "
436 "the pbms_metadata_header table when a database is created."));436 "the pbms_metadata_header table when a database is created."));
437 context("garbage-threshold",437 context("garbage-threshold",
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),
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."));
440 context("temp-blob-timeout",440 context("temp-blob-timeout",
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),
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."));
443 context("max-keep-alive",443 context("max-keep-alive",
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),
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."));
446 context("next-backup-db-id",446 context("next-backup-db-id",
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),
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."));
449 context("watch-tables",449 context("watch-tables",
450 po::value<std::string>(&my_table_list)->default_value("*"),450 po::value<std::string>(&my_table_list)->default_value("*"),
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>, ..."));
452 context("watch-disable",452 context("watch-disable",
453 N_("Enable PBMS daemon Insert/Update/Delete event scanning"));453 _("Enable PBMS daemon Insert/Update/Delete event scanning"));
454454
455 context("before-insert-position",455 context("before-insert-position",
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),
457 N_("Before insert row event observer call position"));457 _("Before insert row event observer call position"));
458458
459 context("before-update-position",459 context("before-update-position",
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),
461 N_("Before update row event observer call position"));461 _("Before update row event observer call position"));
462462
463}463}
464#endif464#endif
465465
=== modified file 'plugin/rabbitmq/rabbitmq_log.cc'
--- plugin/rabbitmq/rabbitmq_log.cc 2010-12-05 20:05:39 +0000
+++ plugin/rabbitmq/rabbitmq_log.cc 2011-01-10 20:36:11 +0000
@@ -152,28 +152,28 @@
152{152{
153 context("host", 153 context("host",
154 po::value<string>()->default_value("localhost"),154 po::value<string>()->default_value("localhost"),
155 N_("Host name to connect to"));155 _("Host name to connect to"));
156 context("port",156 context("port",
157 po::value<port_constraint>(&sysvar_rabbitmq_port)->default_value(5672),157 po::value<port_constraint>(&sysvar_rabbitmq_port)->default_value(5672),
158 N_("Port to connect to"));158 _("Port to connect to"));
159 context("virtualhost",159 context("virtualhost",
160 po::value<string>()->default_value("/"),160 po::value<string>()->default_value("/"),
161 N_("RabbitMQ virtualhost"));161 _("RabbitMQ virtualhost"));
162 context("username",162 context("username",
163 po::value<string>()->default_value("guest"),163 po::value<string>()->default_value("guest"),
164 N_("RabbitMQ username"));164 _("RabbitMQ username"));
165 context("password",165 context("password",
166 po::value<string>()->default_value("guest"),166 po::value<string>()->default_value("guest"),
167 N_("RabbitMQ password"));167 _("RabbitMQ password"));
168 context("use-replicator",168 context("use-replicator",
169 po::value<string>()->default_value("default_replicator"),169 po::value<string>()->default_value("default_replicator"),
170 N_("Name of the replicator plugin to use (default='default_replicator')"));170 _("Name of the replicator plugin to use (default='default_replicator')"));
171 context("exchange",171 context("exchange",
172 po::value<string>()->default_value("ReplicationExchange"),172 po::value<string>()->default_value("ReplicationExchange"),
173 N_("Name of RabbitMQ exchange to publish to"));173 _("Name of RabbitMQ exchange to publish to"));
174 context("routingkey",174 context("routingkey",
175 po::value<string>()->default_value("ReplicationRoutingKey"),175 po::value<string>()->default_value("ReplicationRoutingKey"),
176 N_("Name of RabbitMQ routing key to use"));176 _("Name of RabbitMQ routing key to use"));
177}177}
178178
179} /* namespace drizzle_plugin */179} /* namespace drizzle_plugin */
180180
=== modified file 'plugin/syslog/module.cc'
--- plugin/syslog/module.cc 2010-12-03 19:56:07 +0000
+++ plugin/syslog/module.cc 2011-01-10 20:36:11 +0000
@@ -92,31 +92,31 @@
92{92{
93 context("ident",93 context("ident",
94 po::value<string>()->default_value("drizzled"),94 po::value<string>()->default_value("drizzled"),
95 N_("Syslog Ident"));95 _("Syslog Ident"));
96 context("facility",96 context("facility",
97 po::value<string>()->default_value("local0"),97 po::value<string>()->default_value("local0"),
98 N_("Syslog Facility"));98 _("Syslog Facility"));
99 context("logging-enable",99 context("logging-enable",
100 po::value<bool>(&sysvar_logging_enable)->default_value(false)->zero_tokens(),100 po::value<bool>(&sysvar_logging_enable)->default_value(false)->zero_tokens(),
101 N_("Enable logging to syslog of the query log"));101 _("Enable logging to syslog of the query log"));
102 context("logging-priority",102 context("logging-priority",
103 po::value<string>()->default_value("warning"),103 po::value<string>()->default_value("warning"),
104 N_("Syslog Priority of query logging"));104 _("Syslog Priority of query logging"));
105 context("logging-threshold-slow",105 context("logging-threshold-slow",
106 po::value<uint64_constraint>(&sysvar_logging_threshold_slow)->default_value(0),106 po::value<uint64_constraint>(&sysvar_logging_threshold_slow)->default_value(0),
107 N_("Threshold for logging slow queries, in microseconds"));107 _("Threshold for logging slow queries, in microseconds"));
108 context("logging-threshold-big-resultset",108 context("logging-threshold-big-resultset",
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),
110 N_("Threshold for logging big queries, for rows returned"));110 _("Threshold for logging big queries, for rows returned"));
111 context("logging-threshold-big-examined",111 context("logging-threshold-big-examined",
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),
113 N_("Threshold for logging big queries, for rows examined"));113 _("Threshold for logging big queries, for rows examined"));
114 context("errmsg-enable",114 context("errmsg-enable",
115 po::value<bool>(&sysvar_errmsg_enable)->default_value(false)->zero_tokens(),115 po::value<bool>(&sysvar_errmsg_enable)->default_value(false)->zero_tokens(),
116 N_("Enable logging to syslog of the error messages"));116 _("Enable logging to syslog of the error messages"));
117 context("errmsg-priority",117 context("errmsg-priority",
118 po::value<string>()->default_value("warning"),118 po::value<string>()->default_value("warning"),
119 N_("Syslog Priority of error messages"));119 _("Syslog Priority of error messages"));
120}120}
121121
122} /* namespace drizzle_plugin */122} /* namespace drizzle_plugin */
123123
=== modified file 'plugin/transaction_log/module.cc'
--- plugin/transaction_log/module.cc 2010-12-18 04:43:40 +0000
+++ plugin/transaction_log/module.cc 2011-01-10 20:36:11 +0000
@@ -255,25 +255,25 @@
255{255{
256 context("truncate-debug",256 context("truncate-debug",
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(),
258 N_("DEBUGGING - Truncate transaction log"));258 _("DEBUGGING - Truncate transaction log"));
259 context("enable-checksum",259 context("enable-checksum",
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(),
261 N_("Enable CRC32 Checksumming of each written transaction log entry")); 261 _("Enable CRC32 Checksumming of each written transaction log entry"));
262 context("enable",262 context("enable",
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(),
264 N_("Enable transaction log"));264 _("Enable transaction log"));
265 context("file",265 context("file",
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),
267 N_("Path to the file to use for transaction log"));267 _("Path to the file to use for transaction log"));
268 context("use-replicator",268 context("use-replicator",
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),
270 N_("Name of the replicator plugin to use (default='default_replicator')")); 270 _("Name of the replicator plugin to use (default='default_replicator')"));
271 context("flush-frequency",271 context("flush-frequency",
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),
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"));
274 context("num-write-buffers",274 context("num-write-buffers",
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),
276 N_("Number of slots for in-memory write buffers (default=8)."));276 _("Number of slots for in-memory write buffers (default=8)."));
277}277}
278278
279DRIZZLE_PLUGIN(init, NULL, init_options);279DRIZZLE_PLUGIN(init, NULL, init_options);
280280
=== modified file 'plugin/transaction_log/utilities/transaction_reader.cc'
--- plugin/transaction_log/utilities/transaction_reader.cc 2010-12-18 04:43:40 +0000
+++ plugin/transaction_log/utilities/transaction_reader.cc 2011-01-10 20:36:11 +0000
@@ -469,30 +469,30 @@
469 */469 */
470 po::options_description desc("Program options");470 po::options_description desc("Program options");
471 desc.add_options()471 desc.add_options()
472 ("help", N_("Display help and exit"))472 ("help", _("Display help and exit"))
473 ("use-innodb-replication-log", N_("Read from the innodb transaction log"))473 ("use-innodb-replication-log", _("Read from the innodb transaction log"))
474 ("user,u", po::value<string>(&current_user)->default_value(""), 474 ("user,u", po::value<string>(&current_user)->default_value(""),
475 N_("User for login if not current user."))475 _("User for login if not current user."))
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),
477 N_("Port number to use for connection."))477 _("Port number to use for connection."))
478 ("password,P", po::value<string>(&opt_password)->default_value(""), 478 ("password,P", po::value<string>(&opt_password)->default_value(""),
479 N_("Password to use when connecting to server"))479 _("Password to use when connecting to server"))
480 ("protocol",po::value<string>(&opt_protocol)->default_value("mysql"),480 ("protocol",po::value<string>(&opt_protocol)->default_value("mysql"),
481 N_("The protocol of connection (mysql or drizzle)."))481 _("The protocol of connection (mysql or drizzle)."))
482 ("checksum", N_("Perform checksum"))482 ("checksum", _("Perform checksum"))
483 ("ignore-events", N_("Ignore event messages"))483 ("ignore-events", _("Ignore event messages"))
484 ("input-file", po::value< vector<string> >(), N_("Transaction log file"))484 ("input-file", po::value< vector<string> >(), _("Transaction log file"))
485 ("raw", N_("Print raw Protobuf messages instead of SQL"))485 ("raw", _("Print raw Protobuf messages instead of SQL"))
486 ("start-pos",486 ("start-pos",
487 po::value<int>(&opt_start_pos),487 po::value<int>(&opt_start_pos),
488 N_("Start reading from the given file position"))488 _("Start reading from the given file position"))
489 ("start-transaction-id",489 ("start-transaction-id",
490 po::value<uint64_t>(&opt_start_transaction_id),490 po::value<uint64_t>(&opt_start_transaction_id),
491 N_("Only output for the given transaction ID and later"))491 _("Only output for the given transaction ID and later"))
492 ("transaction-id",492 ("transaction-id",
493 po::value<uint64_t>(&opt_transaction_id),493 po::value<uint64_t>(&opt_transaction_id),
494 N_("Only output for the given transaction ID"))494 _("Only output for the given transaction ID"))
495 ("summarize", N_("Summarize message contents"));495 ("summarize", _("Summarize message contents"));
496496
497 /*497 /*
498 * We allow one positional argument that will be transaction file name498 * We allow one positional argument that will be transaction file name

Subscribers

People subscribed via source and target branches