207
207
/* static variables */
209
static bool opt_debugging= 0;
209
static bool opt_debugging= false;
210
210
static uint32_t wake_thread;
211
211
static char *drizzled_chroot;
212
212
static const char *default_character_set_name;
1290
1290
N_("Set up signals usable for debugging"))
1291
1291
("lc-time-name", po::value<string>(),
1292
1292
N_("Set the language used for the month names and the days of the week."))
1293
("log-warnings,W", po::value<string>(),
1293
("log-warnings,W", po::value<bool>(&global_system_variables.log_warnings)->default_value(false)->zero_tokens(),
1294
1294
N_("Log some not critical warnings to the log file."))
1295
1295
("pid-file", po::value<string>(),
1296
1296
N_("Pid file used by drizzled."))
1766
1766
N_("Auto-increment columns are incremented by this"),
1767
1767
(char**) &global_system_variables.auto_increment_increment,
1768
1768
(char**) &max_system_variables.auto_increment_increment, 0, GET_ULL,
1769
OPT_ARG, 1, 1, UINT64_MAX, 0, 1, 0 },
1769
OPT_ARG, 1, 1, INT64_MAX, 0, 1, 0 },
1770
1770
{"auto-increment-offset", OPT_AUTO_INCREMENT_OFFSET,
1771
1771
N_("Offset added to Auto-increment columns. Used when "
1772
1772
"auto-increment-increment != 1"),
1773
1773
(char**) &global_system_variables.auto_increment_offset,
1774
1774
(char**) &max_system_variables.auto_increment_offset, 0, GET_ULL, OPT_ARG,
1775
1, 1, UINT64_MAX, 0, 1, 0 },
1775
1, 1, INT64_MAX, 0, 1, 0 },
1776
1776
{"basedir", 'b',
1777
1777
N_("Path to installation directory. All paths are usually resolved "
1778
1778
"relative to this."),
1927
1927
N_("Don't allow creation of heap tables bigger than this."),
1928
1928
(char**) &global_system_variables.max_heap_table_size,
1929
1929
(char**) &max_system_variables.max_heap_table_size, 0, GET_ULL,
1930
REQUIRED_ARG, 16*1024*1024L, 16384, MAX_MEM_TABLE_SIZE,
1930
REQUIRED_ARG, 16*1024*1024L, 16384, (int64_t)MAX_MEM_TABLE_SIZE,
1931
1931
MALLOC_OVERHEAD, 1024, 0},
1932
1932
{"max_join_size", OPT_MAX_JOIN_SIZE,
1933
1933
N_("Joins that are probably going to read more than max_join_size records "
2024
2024
N_("Allocation block size for storing ranges during optimization"),
2025
2025
(char**) &global_system_variables.range_alloc_block_size,
2026
2026
(char**) &max_system_variables.range_alloc_block_size, 0, GET_SIZE,
2027
REQUIRED_ARG, RANGE_ALLOC_BLOCK_SIZE, RANGE_ALLOC_BLOCK_SIZE, SIZE_MAX,
2027
REQUIRED_ARG, RANGE_ALLOC_BLOCK_SIZE, RANGE_ALLOC_BLOCK_SIZE, (int64_t)SIZE_MAX,
2029
2029
{"read_buffer_size", OPT_RECORD_BUFFER,
2030
2030
N_("Each thread that does a sequential scan allocates a buffer of this "
2051
2051
N_("Each thread that needs to do a sort allocates a buffer of this size."),
2052
2052
(char**) &global_system_variables.sortbuff_size,
2053
2053
(char**) &max_system_variables.sortbuff_size, 0, GET_SIZE, REQUIRED_ARG,
2054
MAX_SORT_MEMORY, MIN_SORT_MEMORY+MALLOC_OVERHEAD*8, SIZE_MAX,
2054
MAX_SORT_MEMORY, MIN_SORT_MEMORY+MALLOC_OVERHEAD*8, (int64_t)SIZE_MAX,
2055
2055
MALLOC_OVERHEAD, 1, 0},
2056
2056
{"table_definition_cache", OPT_TABLE_DEF_CACHE,
2057
2057
N_("The number of cached table definitions."),
2071
2071
(char**) &my_thread_stack_size,
2072
2072
(char**) &my_thread_stack_size, 0, GET_SIZE,
2073
2073
REQUIRED_ARG,DEFAULT_THREAD_STACK,
2074
UINT32_C(1024*512), SIZE_MAX, 0, 1024, 0},
2074
UINT32_C(1024*512), (int64_t)SIZE_MAX, 0, 1024, 0},
2075
2075
{"tmp_table_size", OPT_TMP_TABLE_SIZE,
2076
2076
N_("If an internal in-memory temporary table exceeds this size, Drizzle will"
2077
2077
" automatically convert it to an on-disk MyISAM table."),
2078
2078
(char**) &global_system_variables.tmp_table_size,
2079
2079
(char**) &max_system_variables.tmp_table_size, 0, GET_ULL,
2080
REQUIRED_ARG, 16*1024*1024L, 1024, MAX_MEM_TABLE_SIZE, 0, 1, 0},
2080
REQUIRED_ARG, 16*1024*1024L, 1024, (int64_t)MAX_MEM_TABLE_SIZE, 0, 1, 0},
2081
2081
{0, 0, 0, 0, 0, 0, GET_NO_ARG, NO_ARG, 0, 0, 0, 0, 0, 0}
2179
2179
max_system_variables.auto_increment_increment= UINT64_MAX;
2180
2180
max_system_variables.auto_increment_offset= UINT64_MAX;
2181
2181
max_system_variables.completion_type= 2;
2182
max_system_variables.log_warnings= 1;
2182
max_system_variables.log_warnings= true;
2183
2183
max_system_variables.bulk_insert_buff_size= ULONG_MAX;
2184
2184
max_system_variables.div_precincrement= DECIMAL_MAX_SCALE;
2185
2185
max_system_variables.group_concat_max_len= ULONG_MAX;
2262
if (vm.count("log-warnings"))
2264
if (vm["log-warnings"].as<string>().empty())
2265
global_system_variables.log_warnings++;
2266
else if (vm["log-warnings"].as<string>().compare("0"))
2267
global_system_variables.log_warnings= 0L;
2269
global_system_variables.log_warnings= atoi(vm["log-warnings"].as<string>().c_str());
2272
2262
if (vm.count("exit-info"))
2274
2264
if (vm["exit-info"].as<long>())