~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to plugin/logging_stats/logging_stats.cc

Rework the boolean options so that true-by-default options change to --disable-option.

Also remove multitoken() from embedded_innodb.

Show diffs side-by-side

added added

removed removed

Lines of Context:
305
305
static int init(drizzled::module::Context &context)
306
306
{
307
307
  const module::option_map &vm= context.getOptions();
 
308
 
 
309
  sysvar_logging_stats_enabled= (vm.count("disable")) ? false : true;
 
310
 
308
311
  if (vm.count("max-user-count"))
309
312
  {
310
313
    if (sysvar_logging_stats_max_user_count < 100 || sysvar_logging_stats_max_user_count > 50000)
410
413
  context("scoreboard-size",
411
414
          po::value<uint32_t>(&sysvar_logging_stats_scoreboard_size)->default_value(2000),
412
415
          N_("Max number of concurrent sessions that will be logged"));
413
 
  context("enable",
414
 
          po::value<bool>(&sysvar_logging_stats_enabled)->default_value(true)->zero_tokens(),
415
 
          N_("Enable Logging Statistics Collection"));
 
416
  context("disable", N_("Enable Logging Statistics Collection"));
416
417
}
417
418
 
418
419
static drizzle_sys_var* system_var[]= {