~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/drizzled.cc

  • Committer: Lee Bieber
  • Date: 2010-10-27 18:28:56 UTC
  • mfrom: (1883.1.3 build)
  • Revision ID: kalebral@gmail.com-20101027182856-q3wqtbv1t4egkjsk
Merge Andrew - fix bug 667360: --defaults-file not processed before paths read           
Merge Andrew - fix bug 656577: Importing SQL script results in silent failure    
Merge Andrew - fix bug 667053: drizzledump minor output cleanup needed

Show diffs side-by-side

added added

removed removed

Lines of Context:
787
787
 
788
788
static void check_limits_map(uint32_t in_max_allowed_packet)
789
789
{
790
 
  global_system_variables.max_allowed_packet= (1024*1024L);
 
790
  global_system_variables.max_allowed_packet= (64*1024*1024L);
791
791
  if (in_max_allowed_packet < 1024 || in_max_allowed_packet > 1024*1024L*1024L)
792
792
  {
793
793
    cout << N_("Error: Invalid Value for max_allowed_packet");
1140
1140
       it != in_options.end();
1141
1141
       ++it)
1142
1142
  {
1143
 
    defaults_file_list.push_back(*it);
 
1143
    fs::path p(*it);
 
1144
    if (fs::is_regular_file(p))
 
1145
      defaults_file_list.push_back(*it);
 
1146
    else
 
1147
    {
 
1148
      errmsg_printf(ERRMSG_LVL_ERROR,
 
1149
                  _("Defaults file '%s' not found\n"), (*it).c_str());
 
1150
      unireg_abort(1);
 
1151
    }
 
1152
 
1144
1153
  }
1145
1154
}
1146
1155
 
1291
1300
  N_("The maximum length of the result of function  group_concat."))
1292
1301
  ("join-buffer-size", po::value<uint64_t>(&global_system_variables.join_buff_size)->default_value(128*1024L)->notifier(&check_limits_join_buffer_size),
1293
1302
  N_("The size of the buffer that is used for full joins."))
1294
 
  ("max-allowed-packet", po::value<uint32_t>(&global_system_variables.max_allowed_packet)->default_value(1024*1024L)->notifier(&check_limits_map),
 
1303
  ("max-allowed-packet", po::value<uint32_t>(&global_system_variables.max_allowed_packet)->default_value(64*1024*1024L)->notifier(&check_limits_map),
1295
1304
  N_("Max packetlength to send/receive from to server."))
1296
1305
  ("max-connect-errors", po::value<uint64_t>(&max_connect_errors)->default_value(MAX_CONNECT_ERRORS)->notifier(&check_limits_mce),
1297
1306
  N_("If there is more than this number of interrupted connections from a "
1422
1431
    }
1423
1432
  }
1424
1433
 
1425
 
  process_defaults_files();
1426
1434
  /* TODO: here is where we should add a process_env_vars */
1427
1435
 
1428
1436
  /* We need a notify here so that plugin_init will work properly */
1438
1446
                  internal::my_progname, err.what());
1439
1447
    unireg_abort(1);
1440
1448
  }
 
1449
 
 
1450
  process_defaults_files();
 
1451
 
 
1452
  /* Process with notify a second time because a config file may contain
 
1453
     plugin loader options */
 
1454
 
 
1455
  try
 
1456
  {
 
1457
    po::notify(vm);
 
1458
  }
 
1459
  catch (po::validation_error &err)
 
1460
  {
 
1461
    errmsg_printf(ERRMSG_LVL_ERROR,
 
1462
                  _("%s: %s.\n"
 
1463
                    "Use --help to get a list of available options\n"),
 
1464
                  internal::my_progname, err.what());
 
1465
    unireg_abort(1);
 
1466
  }
 
1467
 
1441
1468
  /* At this point, we've read all the options we need to read from files and
1442
1469
     collected most of them into unknown options - now let's load everything
1443
1470
  */
1899
1926
   N_("Max packetlength to send/receive from to server."),
1900
1927
   (char**) &global_system_variables.max_allowed_packet,
1901
1928
   (char**) &max_system_variables.max_allowed_packet, 0, GET_UINT32,
1902
 
   REQUIRED_ARG, 1024*1024L, 1024, 1024L*1024L*1024L, MALLOC_OVERHEAD, 1024, 0},
 
1929
   REQUIRED_ARG, 64*1024*1024L, 1024, 1024L*1024L*1024L, MALLOC_OVERHEAD, 1024, 0},
1903
1930
  {"max_connect_errors", OPT_MAX_CONNECT_ERRORS,
1904
1931
   N_("If there is more than this number of interrupted connections from a "
1905
1932
      "host this host will be blocked from further connections."),