MXS-2004 Drop support for thread_stack_size

- Cannot be supported with std::thread.
- Unlikely that the default size (8MB) would ever be too small and
  if it is, there is some problem.
- The stack size can be specified using 'ulimit -s' before starting
  MaxScale.
This commit is contained in:
Johan Wikman
2018-08-10 12:48:17 +03:00
parent 2515473fd4
commit 6db03d4b29
3 changed files with 13 additions and 11 deletions

View File

@ -2060,11 +2060,10 @@ handle_global_item(const char *name, const char *value)
}
else if (strcmp(name, CN_THREAD_STACK_SIZE) == 0)
{
if (!get_suffixed_size(value, &gateway.thread_stack_size))
{
MXS_WARNING("Invalid value for '%s': %s.", CN_THREAD_STACK_SIZE, value);
return 0;
}
// DEPRECATED in 2.3, remove in 2.4
MXS_WARNING("%s has been deprecated. If you need to explicitly set the stack "
"size, do so with 'ulimit -s' before starting MaxScale.",
CN_THREAD_STACK_SIZE);
}
else if (strcmp(name, CN_NON_BLOCKING_POLLS) == 0)
{