~maria-developers/maria/wlad-5.5-threadpool

« back to all changes in this revision

Viewing changes to sql/sys_vars.cc

  • Committer: Vladislav Vaintroub
  • Date: 2011-12-05 00:44:37 UTC
  • Revision ID: wlad@montyprogram.com-20111205004437-rd5lqj1xue714j8q
fix compilation on Windows

Show diffs side-by-side

added added

removed removed

Lines of Context:
1775
1775
static bool fix_tp_max_threads(sys_var *, THD *, enum_var_type)
1776
1776
{
1777
1777
#ifdef _WIN32
1778
 
  tp_set_max_threads(tp_params.max_threads);
 
1778
  tp_set_max_threads(threadpool_max_threads);
1779
1779
#endif
1780
1780
  return false;
1781
1781
}
1783
1783
#ifdef _WIN32
1784
1784
static bool fix_tp_min_threads(sys_var *, THD *, enum_var_type)
1785
1785
{
1786
 
  tp_set_min_threads(tp_params.min_threads);
 
1786
  tp_set_min_threads(threadpool_min_threads);
1787
1787
  return false;
1788
1788
}
1789
1789
#endif
1794
1794
static Sys_var_uint Sys_threadpool_min_threads(
1795
1795
  "thread_pool_min_threads",
1796
1796
  "Minimuim number of threads in the thread pool.",
1797
 
  GLOBAL_VAR(tp_params.min_threads), CMD_LINE(REQUIRED_ARG),
 
1797
  GLOBAL_VAR(threadpool_min_threads), CMD_LINE(REQUIRED_ARG),
1798
1798
  VALID_RANGE(1, 256), DEFAULT(1), BLOCK_SIZE(1),
1799
1799
  NO_MUTEX_GUARD, NOT_IN_BINLOG, ON_CHECK(0),
1800
1800
  ON_UPDATE(fix_tp_min_threads)