~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/drizzled.cc

  • Committer: Brian Aker
  • Date: 2009-04-17 19:23:54 UTC
  • mfrom: (994.2.2 mordred)
  • Revision ID: brian@gaz-20090417192354-gyr9nvpuj6vrc2tv
Mergig Monty

Show diffs side-by-side

added added

removed removed

Lines of Context:
251
251
int abort_pipe[2];
252
252
bool volatile shutdown_in_progress;
253
253
uint32_t max_used_connections;
254
 
const char *opt_scheduler= "multi_thread";
 
254
const string opt_scheduler_default("multi_thread");
 
255
char *opt_scheduler= NULL;
 
256
 
255
257
const char *opt_protocol= "oldlibdrizzle";
256
258
 
257
259
size_t my_thread_stack_size= 65536;
1600
1602
    }
1601
1603
  }
1602
1604
 
 
1605
  string scheduler_name;
 
1606
  if (opt_scheduler)
 
1607
  {
 
1608
    scheduler_name= opt_scheduler;
 
1609
  }
 
1610
  else
 
1611
  {
 
1612
    scheduler_name= opt_scheduler_default;
 
1613
  }
 
1614
 
 
1615
  if (set_scheduler_factory(scheduler_name))
 
1616
  {
 
1617
      errmsg_printf(ERRMSG_LVL_ERROR,
 
1618
                   _("No scheduler found, cannot continue!\n"));
 
1619
      unireg_abort(1);
 
1620
  }
 
1621
 
1603
1622
  /* We have to initialize the storage engines before CSV logging */
1604
1623
  if (ha_init())
1605
1624
  {
2062
2081
  OPT_DEFAULT_TIME_ZONE,
2063
2082
  OPT_OPTIMIZER_SEARCH_DEPTH,
2064
2083
  OPT_SCHEDULER,
 
2084
  OPT_PROTOCOL,
2065
2085
  OPT_OPTIMIZER_PRUNE_LEVEL,
2066
2086
  OPT_AUTO_INCREMENT, OPT_AUTO_INCREMENT_OFFSET,
2067
2087
  OPT_ENABLE_LARGE_PAGES,
2464
2484
   (char**) &global_system_variables.preload_buff_size,
2465
2485
   (char**) &max_system_variables.preload_buff_size, 0, GET_ULL,
2466
2486
   REQUIRED_ARG, 32*1024L, 1024, 1024*1024*1024L, 0, 1, 0},
2467
 
  {"protocol", OPT_SCHEDULER,
 
2487
  {"protocol", OPT_PROTOCOL,
2468
2488
   N_("Select protocol to be used (by default oldlibdrizzle)."),
2469
2489
   (char**) &opt_protocol, (char**) &opt_protocol, 0,
2470
2490
   GET_STR, REQUIRED_ARG, 0, 0, 0, 0, 0, 0},
2502
2522
   GET_UINT, REQUIRED_ARG, 256*1024L, 64 /*IO_SIZE*2+MALLOC_OVERHEAD*/ ,
2503
2523
   UINT32_MAX, MALLOC_OVERHEAD, 1 /* Small lower limit to be able to test MRR */, 0},
2504
2524
  {"scheduler", OPT_SCHEDULER,
2505
 
   N_("Select scheduler to be used (by default pool-of-threads)."),
2506
 
   (char**) &opt_scheduler, (char**) &opt_scheduler, 0,
2507
 
   GET_STR, REQUIRED_ARG, 0, 0, 0, 0, 0, 0},
 
2525
   N_("Select scheduler to be used (by default multi-thread)."),
 
2526
   (char**)&opt_scheduler, (char**)&opt_scheduler,
 
2527
   0, GET_STR, REQUIRED_ARG, 0, 0, 0, 0, 0, 0},
2508
2528
  {"sort_buffer_size", OPT_SORT_BUFFER,
2509
2529
   N_("Each thread that needs to do a sort allocates a buffer of this size."),
2510
2530
   (char**) &global_system_variables.sortbuff_size,