mirror of
https://github.com/MariaDB/server.git
synced 2025-08-08 11:22:35 +03:00
MDEV-33092 Undefined reference to concurrency on Solaris
remove thr_setconcurrency()
followup for 8bbcaab160
Fix by Rainer Orth
This commit is contained in:
@@ -243,7 +243,6 @@ SET(HAVE_TERMCAP_H CACHE INTERNAL "")
|
|||||||
SET(HAVE_TERMIOS_H CACHE INTERNAL "")
|
SET(HAVE_TERMIOS_H CACHE INTERNAL "")
|
||||||
SET(HAVE_TERMIO_H CACHE INTERNAL "")
|
SET(HAVE_TERMIO_H CACHE INTERNAL "")
|
||||||
SET(HAVE_TERM_H CACHE INTERNAL "")
|
SET(HAVE_TERM_H CACHE INTERNAL "")
|
||||||
SET(HAVE_THR_SETCONCURRENCY CACHE INTERNAL "")
|
|
||||||
SET(HAVE_THR_YIELD CACHE INTERNAL "")
|
SET(HAVE_THR_YIELD CACHE INTERNAL "")
|
||||||
SET(HAVE_TIME 1 CACHE INTERNAL "")
|
SET(HAVE_TIME 1 CACHE INTERNAL "")
|
||||||
SET(HAVE_TIMES CACHE INTERNAL "")
|
SET(HAVE_TIMES CACHE INTERNAL "")
|
||||||
|
@@ -231,7 +231,6 @@
|
|||||||
#cmakedefine HAVE_STRTOUL 1
|
#cmakedefine HAVE_STRTOUL 1
|
||||||
#cmakedefine HAVE_STRTOULL 1
|
#cmakedefine HAVE_STRTOULL 1
|
||||||
#cmakedefine HAVE_TELL 1
|
#cmakedefine HAVE_TELL 1
|
||||||
#cmakedefine HAVE_THR_SETCONCURRENCY 1
|
|
||||||
#cmakedefine HAVE_THR_YIELD 1
|
#cmakedefine HAVE_THR_YIELD 1
|
||||||
#cmakedefine HAVE_TIME 1
|
#cmakedefine HAVE_TIME 1
|
||||||
#cmakedefine HAVE_TIMES 1
|
#cmakedefine HAVE_TIMES 1
|
||||||
|
@@ -417,7 +417,6 @@ CHECK_FUNCTION_EXISTS (strtoul HAVE_STRTOUL)
|
|||||||
CHECK_FUNCTION_EXISTS (strtoull HAVE_STRTOULL)
|
CHECK_FUNCTION_EXISTS (strtoull HAVE_STRTOULL)
|
||||||
CHECK_FUNCTION_EXISTS (strcasecmp HAVE_STRCASECMP)
|
CHECK_FUNCTION_EXISTS (strcasecmp HAVE_STRCASECMP)
|
||||||
CHECK_FUNCTION_EXISTS (tell HAVE_TELL)
|
CHECK_FUNCTION_EXISTS (tell HAVE_TELL)
|
||||||
CHECK_FUNCTION_EXISTS (thr_setconcurrency HAVE_THR_SETCONCURRENCY)
|
|
||||||
CHECK_FUNCTION_EXISTS (thr_yield HAVE_THR_YIELD)
|
CHECK_FUNCTION_EXISTS (thr_yield HAVE_THR_YIELD)
|
||||||
CHECK_FUNCTION_EXISTS (vasprintf HAVE_VASPRINTF)
|
CHECK_FUNCTION_EXISTS (vasprintf HAVE_VASPRINTF)
|
||||||
CHECK_FUNCTION_EXISTS (vsnprintf HAVE_VSNPRINTF)
|
CHECK_FUNCTION_EXISTS (vsnprintf HAVE_VSNPRINTF)
|
||||||
|
@@ -148,9 +148,6 @@ int pthread_cancel(pthread_t thread);
|
|||||||
#ifndef _REENTRANT
|
#ifndef _REENTRANT
|
||||||
#define _REENTRANT
|
#define _REENTRANT
|
||||||
#endif
|
#endif
|
||||||
#ifdef HAVE_THR_SETCONCURRENCY
|
|
||||||
#include <thread.h> /* Probably solaris */
|
|
||||||
#endif
|
|
||||||
#ifdef HAVE_SCHED_H
|
#ifdef HAVE_SCHED_H
|
||||||
#include <sched.h>
|
#include <sched.h>
|
||||||
#endif
|
#endif
|
||||||
@@ -619,9 +616,6 @@ extern int my_rw_trywrlock(my_rw_lock_t *);
|
|||||||
|
|
||||||
#define GETHOSTBYADDR_BUFF_SIZE 2048
|
#define GETHOSTBYADDR_BUFF_SIZE 2048
|
||||||
|
|
||||||
#ifndef HAVE_THR_SETCONCURRENCY
|
|
||||||
#define thr_setconcurrency(A) pthread_dummy(0)
|
|
||||||
#endif
|
|
||||||
#if !defined(HAVE_PTHREAD_ATTR_SETSTACKSIZE) && ! defined(pthread_attr_setstacksize)
|
#if !defined(HAVE_PTHREAD_ATTR_SETSTACKSIZE) && ! defined(pthread_attr_setstacksize)
|
||||||
#define pthread_attr_setstacksize(A,B) pthread_dummy(0)
|
#define pthread_attr_setstacksize(A,B) pthread_dummy(0)
|
||||||
#endif
|
#endif
|
||||||
|
@@ -635,8 +635,6 @@ int init_embedded_server(int argc, char **argv, char **groups)
|
|||||||
udf_init();
|
udf_init();
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
(void) thr_setconcurrency(concurrency); // 10 by default
|
|
||||||
|
|
||||||
if (flush_time && flush_time != ~(ulong) 0L)
|
if (flush_time && flush_time != ~(ulong) 0L)
|
||||||
start_handle_manager();
|
start_handle_manager();
|
||||||
|
|
||||||
|
@@ -786,7 +786,6 @@ int main(int argc __attribute__((unused)),char **argv __attribute__((unused)))
|
|||||||
mysql_mutex_unlock(&LOCK_thread_count);
|
mysql_mutex_unlock(&LOCK_thread_count);
|
||||||
DBUG_PRINT("info",("signal thread created"));
|
DBUG_PRINT("info",("signal thread created"));
|
||||||
|
|
||||||
thr_setconcurrency(3);
|
|
||||||
pthread_attr_setscope(&thr_attr,PTHREAD_SCOPE_PROCESS);
|
pthread_attr_setscope(&thr_attr,PTHREAD_SCOPE_PROCESS);
|
||||||
printf("Main thread: %s\n",my_thread_name());
|
printf("Main thread: %s\n",my_thread_name());
|
||||||
for (i=0 ; i < 2 ; i++)
|
for (i=0 ; i < 2 ; i++)
|
||||||
|
@@ -1783,9 +1783,6 @@ int main(int argc __attribute__((unused)),char **argv __attribute__((unused)))
|
|||||||
error,errno);
|
error,errno);
|
||||||
exit(1);
|
exit(1);
|
||||||
}
|
}
|
||||||
#endif
|
|
||||||
#ifdef HAVE_THR_SETCONCURRENCY
|
|
||||||
(void) thr_setconcurrency(2);
|
|
||||||
#endif
|
#endif
|
||||||
for (i=0 ; i < array_elements(lock_counts) ; i++)
|
for (i=0 ; i < array_elements(lock_counts) ; i++)
|
||||||
{
|
{
|
||||||
|
@@ -533,7 +533,6 @@ static void run_test()
|
|||||||
mysql_mutex_init(0, &LOCK_thread_count, MY_MUTEX_INIT_FAST);
|
mysql_mutex_init(0, &LOCK_thread_count, MY_MUTEX_INIT_FAST);
|
||||||
mysql_cond_init(0, &COND_thread_count, NULL);
|
mysql_cond_init(0, &COND_thread_count, NULL);
|
||||||
|
|
||||||
thr_setconcurrency(3);
|
|
||||||
pthread_attr_init(&thr_attr);
|
pthread_attr_init(&thr_attr);
|
||||||
pthread_attr_setscope(&thr_attr,PTHREAD_SCOPE_PROCESS);
|
pthread_attr_setscope(&thr_attr,PTHREAD_SCOPE_PROCESS);
|
||||||
printf("Main thread: %s\n",my_thread_name());
|
printf("Main thread: %s\n",my_thread_name());
|
||||||
|
@@ -5490,8 +5490,6 @@ int mysqld_main(int argc, char **argv)
|
|||||||
SYSVAR_AUTOSIZE(my_thread_stack_size, new_thread_stack_size);
|
SYSVAR_AUTOSIZE(my_thread_stack_size, new_thread_stack_size);
|
||||||
}
|
}
|
||||||
|
|
||||||
(void) thr_setconcurrency(concurrency); // 10 by default
|
|
||||||
|
|
||||||
select_thread=pthread_self();
|
select_thread=pthread_self();
|
||||||
select_thread_in_use=1;
|
select_thread_in_use=1;
|
||||||
|
|
||||||
|
@@ -403,10 +403,6 @@ int main(int argc __attribute__((unused)),
|
|||||||
exit(1);
|
exit(1);
|
||||||
}
|
}
|
||||||
|
|
||||||
#ifdef HAVE_THR_SETCONCURRENCY
|
|
||||||
thr_setconcurrency(2);
|
|
||||||
#endif
|
|
||||||
|
|
||||||
if ((pagen= init_pagecache(&pagecache, PCACHE_SIZE, 0, 0,
|
if ((pagen= init_pagecache(&pagecache, PCACHE_SIZE, 0, 0,
|
||||||
TEST_PAGE_SIZE, 0, 0)) == 0)
|
TEST_PAGE_SIZE, 0, 0)) == 0)
|
||||||
{
|
{
|
||||||
|
@@ -272,10 +272,6 @@ int main(int argc __attribute__((unused)),
|
|||||||
exit(1);
|
exit(1);
|
||||||
}
|
}
|
||||||
|
|
||||||
#ifdef HAVE_THR_SETCONCURRENCY
|
|
||||||
thr_setconcurrency(2);
|
|
||||||
#endif
|
|
||||||
|
|
||||||
if ((pagen= init_pagecache(&pagecache, PCACHE_SIZE, 0, 0,
|
if ((pagen= init_pagecache(&pagecache, PCACHE_SIZE, 0, 0,
|
||||||
TEST_PAGE_SIZE, 0, 0)) == 0)
|
TEST_PAGE_SIZE, 0, 0)) == 0)
|
||||||
{
|
{
|
||||||
|
@@ -268,10 +268,6 @@ int main(int argc __attribute__((unused)),
|
|||||||
exit(1);
|
exit(1);
|
||||||
}
|
}
|
||||||
|
|
||||||
#ifdef HAVE_THR_SETCONCURRENCY
|
|
||||||
thr_setconcurrency(2);
|
|
||||||
#endif
|
|
||||||
|
|
||||||
if ((pagen= init_pagecache(&pagecache, PCACHE_SIZE, 0, 0,
|
if ((pagen= init_pagecache(&pagecache, PCACHE_SIZE, 0, 0,
|
||||||
TEST_PAGE_SIZE, 0, 0)) == 0)
|
TEST_PAGE_SIZE, 0, 0)) == 0)
|
||||||
{
|
{
|
||||||
|
@@ -795,10 +795,6 @@ int main(int argc __attribute__((unused)),
|
|||||||
exit(1);
|
exit(1);
|
||||||
}
|
}
|
||||||
|
|
||||||
#ifdef HAVE_THR_SETCONCURRENCY
|
|
||||||
thr_setconcurrency(2);
|
|
||||||
#endif
|
|
||||||
|
|
||||||
if ((pagen= init_pagecache(&pagecache, PCACHE_SIZE, 0, 0,
|
if ((pagen= init_pagecache(&pagecache, PCACHE_SIZE, 0, 0,
|
||||||
TEST_PAGE_SIZE, 0, MYF(MY_WME))) == 0)
|
TEST_PAGE_SIZE, 0, MYF(MY_WME))) == 0)
|
||||||
{
|
{
|
||||||
|
@@ -331,10 +331,6 @@ int main(int argc __attribute__((unused)),
|
|||||||
exit(1);
|
exit(1);
|
||||||
}
|
}
|
||||||
|
|
||||||
#ifdef HAVE_THR_SETCONCURRENCY
|
|
||||||
thr_setconcurrency(2);
|
|
||||||
#endif
|
|
||||||
|
|
||||||
if (ma_control_file_open(TRUE, TRUE, TRUE))
|
if (ma_control_file_open(TRUE, TRUE, TRUE))
|
||||||
{
|
{
|
||||||
fprintf(stderr, "Can't init control file (%d)\n", errno);
|
fprintf(stderr, "Can't init control file (%d)\n", errno);
|
||||||
|
Reference in New Issue
Block a user