mirror of
https://github.com/MariaDB/server.git
synced 2025-05-29 21:42:28 +03:00
automerge
This commit is contained in:
commit
db35fb7961
@ -1,4 +1,4 @@
|
|||||||
# Copyright 2000-2008 MySQL AB, 2008 Sun Microsystems, Inc.
|
# Copyright 2000-2008 MySQL AB, 2009 Sun Microsystems, Inc.
|
||||||
#
|
#
|
||||||
# This program is free software; you can redistribute it and/or modify
|
# This program is free software; you can redistribute it and/or modify
|
||||||
# it under the terms of the GNU General Public License as published by
|
# it under the terms of the GNU General Public License as published by
|
||||||
@ -24,7 +24,7 @@ EXTRA_DIST = INSTALL-SOURCE INSTALL-WIN-SOURCE \
|
|||||||
SUBDIRS = . include @docs_dirs@ @zlib_dir@ \
|
SUBDIRS = . include @docs_dirs@ @zlib_dir@ \
|
||||||
@readline_topdir@ sql-common scripts \
|
@readline_topdir@ sql-common scripts \
|
||||||
@pstack_dir@ \
|
@pstack_dir@ \
|
||||||
@sql_union_dirs@ unittest storage plugin \
|
@sql_union_dirs@ unittest \
|
||||||
@sql_server@ @man_dirs@ tests \
|
@sql_server@ @man_dirs@ tests \
|
||||||
netware @libmysqld_dirs@ \
|
netware @libmysqld_dirs@ \
|
||||||
mysql-test support-files sql-bench @tools_dirs@ \
|
mysql-test support-files sql-bench @tools_dirs@ \
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
/* Copyright (C) 2000-2006 MySQL AB
|
/* Copyright (C) 2000-2006 MySQL AB, 2009 Sun Microsystems, Inc.
|
||||||
|
|
||||||
This program is free software; you can redistribute it and/or modify
|
This program is free software; you can redistribute it and/or modify
|
||||||
it under the terms of the GNU General Public License as published by
|
it under the terms of the GNU General Public License as published by
|
||||||
@ -583,7 +583,7 @@ error:
|
|||||||
counter--;
|
counter--;
|
||||||
pthread_cond_signal(&count_threshhold);
|
pthread_cond_signal(&count_threshhold);
|
||||||
pthread_mutex_unlock(&counter_mutex);
|
pthread_mutex_unlock(&counter_mutex);
|
||||||
my_thread_end();
|
mysql_thread_end();
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
/* Copyright (C) 2005 MySQL AB
|
/* Copyright (C) 2005 MySQL AB, 2009 Sun Microsystems, Inc.
|
||||||
|
|
||||||
This program is free software; you can redistribute it and/or modify
|
This program is free software; you can redistribute it and/or modify
|
||||||
it under the terms of the GNU General Public License as published by
|
it under the terms of the GNU General Public License as published by
|
||||||
@ -1923,7 +1923,7 @@ end:
|
|||||||
if (!opt_only_print)
|
if (!opt_only_print)
|
||||||
mysql_close(mysql);
|
mysql_close(mysql);
|
||||||
|
|
||||||
my_thread_end();
|
mysql_thread_end();
|
||||||
|
|
||||||
pthread_mutex_lock(&counter_mutex);
|
pthread_mutex_lock(&counter_mutex);
|
||||||
thread_counter--;
|
thread_counter--;
|
||||||
|
14
configure.in
14
configure.in
@ -1648,13 +1648,14 @@ then
|
|||||||
DEBUG_OPTIMIZE_CXX="-O"
|
DEBUG_OPTIMIZE_CXX="-O"
|
||||||
OPTIMIZE_CXXFLAGS="$MAX_CXX_OPTIMIZE"
|
OPTIMIZE_CXXFLAGS="$MAX_CXX_OPTIMIZE"
|
||||||
else
|
else
|
||||||
DEBUG_CXXFLAGS="-g"
|
|
||||||
DEBUG_OPTIMIZE_CXX=""
|
DEBUG_OPTIMIZE_CXX=""
|
||||||
case $SYSTEM_TYPE in
|
case $SYSTEM_TYPE in
|
||||||
*solaris*)
|
*solaris*)
|
||||||
|
DEBUG_CXXFLAGS="-g0"
|
||||||
OPTIMIZE_CXXFLAGS="-O1"
|
OPTIMIZE_CXXFLAGS="-O1"
|
||||||
;;
|
;;
|
||||||
*)
|
*)
|
||||||
|
DEBUG_CXXFLAGS="-g"
|
||||||
OPTIMIZE_CXXFLAGS="-O"
|
OPTIMIZE_CXXFLAGS="-O"
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
@ -2768,7 +2769,7 @@ server_scripts=
|
|||||||
|
|
||||||
dnl This probably should be cleaned up more - for now the threaded
|
dnl This probably should be cleaned up more - for now the threaded
|
||||||
dnl client is just using plain-old libs.
|
dnl client is just using plain-old libs.
|
||||||
sql_client_dirs="strings regex mysys libmysql"
|
sql_client_dirs="strings regex mysys dbug libmysql"
|
||||||
|
|
||||||
AM_CONDITIONAL(THREAD_SAFE_CLIENT, test "$THREAD_SAFE_CLIENT" != "no")
|
AM_CONDITIONAL(THREAD_SAFE_CLIENT, test "$THREAD_SAFE_CLIENT" != "no")
|
||||||
|
|
||||||
@ -2796,15 +2797,20 @@ fi
|
|||||||
AC_SUBST(netware_dir)
|
AC_SUBST(netware_dir)
|
||||||
AM_CONDITIONAL(HAVE_NETWARE, test "$netware_dir" = "netware")
|
AM_CONDITIONAL(HAVE_NETWARE, test "$netware_dir" = "netware")
|
||||||
|
|
||||||
if test "$with_server" = "yes" -o "$THREAD_SAFE_CLIENT" != "no"
|
if test "$with_server" != "no" -o "$THREAD_SAFE_CLIENT" != "no"
|
||||||
then
|
then
|
||||||
AC_DEFINE([THREAD], [1],
|
AC_DEFINE([THREAD], [1],
|
||||||
[Define if you want to have threaded code. This may be undef on client code])
|
[Define if you want to have threaded code. This may be undef on client code])
|
||||||
# Avoid _PROGRAMS names
|
# Avoid _PROGRAMS names
|
||||||
THREAD_LOBJECTS="thr_alarm.o thr_lock.o thr_mutex.o thr_rwlock.o my_pthread.o my_thr_init.o mf_keycache.o"
|
THREAD_LOBJECTS="thr_alarm.o thr_lock.o thr_mutex.o thr_rwlock.o my_pthread.o my_thr_init.o mf_keycache.o"
|
||||||
AC_SUBST(THREAD_LOBJECTS)
|
AC_SUBST(THREAD_LOBJECTS)
|
||||||
|
fi
|
||||||
|
AM_CONDITIONAL(NEED_THREAD, test "$with_server" != "no" -o "$THREAD_SAFE_CLIENT" != "no")
|
||||||
|
|
||||||
|
if test "$with_server" != "no"
|
||||||
|
then
|
||||||
server_scripts="mysqld_safe mysql_install_db"
|
server_scripts="mysqld_safe mysql_install_db"
|
||||||
sql_server_dirs="strings mysys dbug extra regex"
|
sql_server_dirs="strings mysys dbug extra regex storage plugin"
|
||||||
|
|
||||||
sql_server="vio sql"
|
sql_server="vio sql"
|
||||||
fi
|
fi
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
# Copyright (C) 2000-2006 MySQL AB
|
# Copyright (C) 2000-2006 MySQL AB, 2009 Sun Microsystems, Inc.
|
||||||
#
|
#
|
||||||
# This program is free software; you can redistribute it and/or modify
|
# This program is free software; you can redistribute it and/or modify
|
||||||
# it under the terms of the GNU General Public License as published by
|
# it under the terms of the GNU General Public License as published by
|
||||||
@ -25,7 +25,7 @@ libmysys_a_SOURCES = my_init.c my_getwd.c mf_getdate.c my_mmap.c \
|
|||||||
mf_path.c mf_loadpath.c my_file.c \
|
mf_path.c mf_loadpath.c my_file.c \
|
||||||
my_open.c my_create.c my_dup.c my_seek.c my_read.c \
|
my_open.c my_create.c my_dup.c my_seek.c my_read.c \
|
||||||
my_pread.c my_write.c my_getpagesize.c \
|
my_pread.c my_write.c my_getpagesize.c \
|
||||||
mf_keycache.c mf_keycaches.c my_crc32.c \
|
mf_keycaches.c my_crc32.c \
|
||||||
mf_iocache.c mf_iocache2.c mf_cache.c mf_tempfile.c \
|
mf_iocache.c mf_iocache2.c mf_cache.c mf_tempfile.c \
|
||||||
mf_tempdir.c my_lock.c mf_brkhant.c my_alarm.c \
|
mf_tempdir.c my_lock.c mf_brkhant.c my_alarm.c \
|
||||||
my_malloc.c my_realloc.c my_once.c mulalloc.c \
|
my_malloc.c my_realloc.c my_once.c mulalloc.c \
|
||||||
@ -53,6 +53,14 @@ libmysys_a_SOURCES = my_init.c my_getwd.c mf_getdate.c my_mmap.c \
|
|||||||
my_handler.c my_netware.c my_largepage.c \
|
my_handler.c my_netware.c my_largepage.c \
|
||||||
my_memmem.c stacktrace.c \
|
my_memmem.c stacktrace.c \
|
||||||
my_windac.c my_access.c base64.c my_libwrap.c
|
my_windac.c my_access.c base64.c my_libwrap.c
|
||||||
|
|
||||||
|
if NEED_THREAD
|
||||||
|
# mf_keycache is used only in the server, so it is safe to leave the file
|
||||||
|
# out of the non-threaded library.
|
||||||
|
# In fact, it will currently not compile without thread support.
|
||||||
|
libmysys_a_SOURCES += mf_keycache.c
|
||||||
|
endif
|
||||||
|
|
||||||
EXTRA_DIST = thr_alarm.c thr_lock.c my_pthread.c my_thr_init.c \
|
EXTRA_DIST = thr_alarm.c thr_lock.c my_pthread.c my_thr_init.c \
|
||||||
thr_mutex.c thr_rwlock.c \
|
thr_mutex.c thr_rwlock.c \
|
||||||
CMakeLists.txt mf_soundex.c \
|
CMakeLists.txt mf_soundex.c \
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
# Copyright (C) 2006 MySQL AB
|
# Copyright (C) 2009 Sun Microsystems, Inc.
|
||||||
#
|
#
|
||||||
# This program is free software; you can redistribute it and/or modify
|
# This program is free software; you can redistribute it and/or modify
|
||||||
# it under the terms of the GNU General Public License as published by
|
# it under the terms of the GNU General Public License as published by
|
||||||
@ -21,7 +21,14 @@ LDADD = $(top_builddir)/unittest/mytap/libmytap.a \
|
|||||||
$(top_builddir)/dbug/libdbug.a \
|
$(top_builddir)/dbug/libdbug.a \
|
||||||
$(top_builddir)/strings/libmystrings.a
|
$(top_builddir)/strings/libmystrings.a
|
||||||
|
|
||||||
noinst_PROGRAMS = bitmap-t base64-t my_atomic-t
|
noinst_PROGRAMS = bitmap-t base64-t
|
||||||
|
|
||||||
|
if NEED_THREAD
|
||||||
|
# my_atomic-t is used to check thread functions, so it is safe to
|
||||||
|
# ignore the file in non-threaded builds.
|
||||||
|
# In fact, it will not compile without thread support.
|
||||||
|
noinst_PROGRAMS += my_atomic-t
|
||||||
|
endif
|
||||||
|
|
||||||
# Don't update the files from bitkeeper
|
# Don't update the files from bitkeeper
|
||||||
%::SCCS/s.%
|
%::SCCS/s.%
|
||||||
|
Loading…
x
Reference in New Issue
Block a user