MXS-1360 Add 'thread_stack_size' configuration value
Using the 'thread_stack_size' configuration value, the stack size of the worker threads can be adjusted.
This commit is contained in:
@ -843,11 +843,11 @@ void Worker::run()
|
||||
MXS_NOTICE("Worker %d has shut down.", m_id);
|
||||
}
|
||||
|
||||
bool Worker::start()
|
||||
bool Worker::start(size_t stack_size)
|
||||
{
|
||||
m_started = true;
|
||||
|
||||
if (!thread_start(&m_thread, &Worker::thread_main, this, 0))
|
||||
if (!thread_start(&m_thread, &Worker::thread_main, this, stack_size))
|
||||
{
|
||||
m_started = false;
|
||||
}
|
||||
|
Reference in New Issue
Block a user