mirror of
https://github.com/MariaDB/server.git
synced 2025-01-16 12:02:42 +01:00
Fix compile warning/error on Windows.
This commit is contained in:
parent
10ebabc364
commit
44d06cd39d
1 changed files with 6 additions and 12 deletions
|
@ -425,19 +425,13 @@ int TP_pool_win::init()
|
|||
}
|
||||
}
|
||||
|
||||
/*
|
||||
Control stack size (OS must be Win7 or later)
|
||||
*/
|
||||
if (SetThreadpoolStackInformation)
|
||||
TP_POOL_STACK_INFORMATION stackinfo;
|
||||
stackinfo.StackCommit = 0;
|
||||
stackinfo.StackReserve = (SIZE_T)my_thread_stack_size;
|
||||
if (!SetThreadpoolStackInformation(pool, &stackinfo))
|
||||
{
|
||||
TP_POOL_STACK_INFORMATION stackinfo;
|
||||
stackinfo.StackCommit = 0;
|
||||
stackinfo.StackReserve = (SIZE_T)my_thread_stack_size;
|
||||
if (!SetThreadpoolStackInformation(pool, &stackinfo))
|
||||
{
|
||||
tp_log_warning("Can't set threadpool stack size",
|
||||
"SetThreadpoolStackInformation");
|
||||
}
|
||||
tp_log_warning("Can't set threadpool stack size",
|
||||
"SetThreadpoolStackInformation");
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue