mariadb/BUILD
Michael Widenius 4fe3425009 Added "pool-of-threads" handling (with libevent)
This is a backport of code from MySQL 6.0 with cleanups and extensions

The following new options are supported
configure options:
  --with-libevent                  ; Enable use of libevent, which is needed for pool of threads

mysqld options:
--thread-handling=pool-of-threads  ; Use a pool of threads to handle queries
--thread-pool-size=#               ; Define how many threads should be created to handle all queries
--extra-port=#                     ; Extra tcp port that uses the old one-thread-per-connection method
--extra-max-connections=#          ; Number of connections to accept to 'extra-port'
--test-ignore-wrong-options        ; Ignore setting an enum value to a wrong option (for mysql-test-run)



BUILD/SETUP.sh:
  Added libevents (and thus pool-of-threads) to max builds
CMakeLists.txt:
  Added libevent
Makefile.am:
  Added libevents
config/ac-macros/libevent.m4:
  Libevent code for configure
config/ac-macros/libevent_configure.m4:
  Libevent code for configure
configure.in:
  Added libevents
dbug/dbug.c:
  Added _db_is_pushed(); Needed for pool-of-threads code
extra/Makefile.am:
  Added libevents
extra/libevent:
  Libevent initial code
extra/libevent/CMakeLists.txt:
  Libevent initial code
extra/libevent/Makefile.am:
  Libevent initial code
extra/libevent/README:
  Libevent initial code
extra/libevent/WIN32-Code:
  Libevent initial code
extra/libevent/WIN32-Code/config.h:
  Libevent initial code
extra/libevent/WIN32-Code/misc.c:
  Libevent initial code
extra/libevent/WIN32-Code/misc.h:
  Libevent initial code
extra/libevent/WIN32-Code/tree.h:
  Libevent initial code
extra/libevent/WIN32-Code/win32.c:
  Libevent initial code
extra/libevent/buffer.c:
  Libevent initial code
extra/libevent/compat:
  Libevent initial code
extra/libevent/compat/sys:
  Libevent initial code
extra/libevent/compat/sys/_time.h:
  Libevent initial code
extra/libevent/compat/sys/queue.h:
  Libevent initial code
extra/libevent/compat/sys/tree.h:
  Libevent initial code
extra/libevent/devpoll.c:
  Libevent initial code
extra/libevent/epoll.c:
  Libevent initial code
extra/libevent/epoll_sub.c:
  Libevent initial code
extra/libevent/evbuffer.c:
  Libevent initial code
extra/libevent/evdns.c:
  Libevent initial code
extra/libevent/evdns.h:
  Libevent initial code
extra/libevent/event-config.h:
  Libevent initial code
extra/libevent/event-internal.h:
  Libevent initial code
extra/libevent/event.c:
  Libevent initial code
extra/libevent/event.h:
  Libevent initial code
extra/libevent/event_tagging.c:
  Libevent initial code
extra/libevent/evhttp.h:
  Libevent initial code
extra/libevent/evport.c:
  Libevent initial code
extra/libevent/evrpc-internal.h:
  Libevent initial code
extra/libevent/evrpc.c:
  Libevent initial code
extra/libevent/evrpc.h:
  Libevent initial code
extra/libevent/evsignal.h:
  Libevent initial code
extra/libevent/evutil.c:
  Libevent initial code
extra/libevent/evutil.h:
  Libevent initial code
extra/libevent/http-internal.h:
  Libevent initial code
extra/libevent/http.c:
  Libevent initial code
extra/libevent/kqueue.c:
  Libevent initial code
extra/libevent/log.c:
  Libevent initial code
extra/libevent/log.h:
  Libevent initial code
extra/libevent/min_heap.h:
  Libevent initial code
extra/libevent/poll.c:
  Libevent initial code
extra/libevent/select.c:
  Libevent initial code
extra/libevent/signal.c:
  Libevent initial code
extra/libevent/strlcpy-internal.h:
  Libevent initial code
extra/libevent/strlcpy.c:
  Libevent initial code
include/config-win.h:
  Libevent support
include/my_dbug.h:
  ADded _db_is_pushed
include/mysql.h.pp:
  Update to handle new prototypes
include/typelib.h:
  Split find_type_or_exit() into two functions
include/violite.h:
  Added vio_is_pending()
libmysqld/Makefile.am:
  Added libevent
mysql-test/include/have_pool_of_threads.inc:
  Added test for pool-of-threads
mysql-test/mysql-test-run.pl:
  Don't abort based on time and don't retry test cases when run under --gdb or --debug
mysql-test/r/crash_commit_before.result:
  USE GLOBAL for debug variable
mysql-test/r/have_pool_of_threads.require:
  Added test for pool-of-threads
mysql-test/r/pool_of_threads.result:
  Added test for pool-of-threads
mysql-test/r/subselect_debug.result:
  USE GLOBAL for debug variable
mysql-test/t/crash_commit_before.test:
  USE GLOBAL for debug variable
mysql-test/t/merge-big.test:
  USE GLOBAL for debug variable
mysql-test/t/pool_of_threads-master.opt:
  Added test for pool-of-threads
mysql-test/t/pool_of_threads.test:
  Added test for pool-of-threads
mysys/typelib.c:
  Split find_type_or_exit() into find_type_with_warning()
sql/Makefile.am:
  Added libevent
sql/handler.cc:
  Indentation fix.
  Fixed memory loss bug
  Fixed crash on exit when handler plugin failed
sql/mysql_priv.h:
  Added extra_max_connections and mysqld_extra_port
  Added extern functions from sql_connect.cc
sql/mysqld.cc:
  Added support for new mysqld options
  Added code for 'extra-port' and 'extra-max-connections'
  Split some functions into smaller pieces to be able to reuse code
  Added code for test-ignore-wrong-options
sql/scheduler.cc:
  Updated schduler code from MySQL 6.0
sql/scheduler.h:
  Updated schduler code from MySQL 6.0
sql/set_var.cc:
  Added support for changing "extra_max_connections"
sql/sql_class.cc:
  Iniitalize thread schduler options in THD
sql/sql_class.h:
  Added to extra_port and scheduler to 'THD'
sql/sql_connect.cc:
  Use thd->schduler to check number of connections and terminate connection
  Made some local functions global (for scheduler.cc)
vio/viosocket.c:
  Added 'vio_pending', needed for scheduler..c
2009-03-13 00:27:35 +02:00
..
.cvsignore
autorun.sh autorun.sh: 2007-10-29 22:48:58 +01:00
build_mccge.sh WL#3834: New build script for system admins and developers 2008-02-08 00:12:34 +01:00
check-cpu Merge from 5.0-bugteam local. 2008-08-18 13:33:00 -04:00
cleanup
compile-alpha
compile-alpha-ccc BUILD scripts: s/(dist)?clean/maintainer-clean/ 2007-01-28 21:09:54 +01:00
compile-alpha-cxx BUILD scripts: s/(dist)?clean/maintainer-clean/ 2007-01-28 21:09:54 +01:00
compile-alpha-debug BUILD scripts: s/(dist)?clean/maintainer-clean/ 2007-01-28 21:09:54 +01:00
compile-amd64-debug-max
compile-amd64-debug-max-no-ndb
compile-amd64-gcov Bug#23062 (GCOV build: helper scripts missing in the BUILD directory) 2007-08-15 18:10:16 -06:00
compile-amd64-gprof Bug#23062 (GCOV build: helper scripts missing in the BUILD directory) 2007-08-15 18:10:16 -06:00
compile-amd64-gprof-no-ndb fater way to detect last page address for the last log file. 2007-10-01 18:48:20 +03:00
compile-amd64-max
compile-amd64-max-sci New SCI Transporter Build scripts 2007-05-07 15:33:27 +02:00
compile-amd64-valgrind-max Bug#25396 2007-01-23 05:09:14 -08:00
compile-darwin-mwcc
compile-dist Merge with base MySQL 5.1 2009-02-15 12:58:34 +02:00
compile-hpux11-parisc2-aCC BUILD scripts: s/(dist)?clean/maintainer-clean/ 2007-01-28 21:09:54 +01:00
compile-ia64-debug-max BUILD scripts: s/(dist)?clean/maintainer-clean/ 2007-01-28 21:09:54 +01:00
compile-irix-mips64-mipspro BUILD scripts: s/(dist)?clean/maintainer-clean/ 2007-01-28 21:09:54 +01:00
compile-ndb-autotest ndb - 2006-08-02 09:08:21 +02:00
compile-pentium BUG#27701 don't pass arguments to sourced script if they're not modified as this is either a no-op (if done correctly), a different no-op with some shells (if done the bash way, but with correct quoting) or breaks arguments with whitespace for some shells (if done the bash way, without quotes). 2007-04-11 14:12:00 +02:00
compile-pentium-cybozu
compile-pentium-debug Merge pippilotta.erinye.com:/shared/home/df/mysql/build/mysql-5.0-build-work-27701 2007-04-11 14:06:03 +02:00
compile-pentium-debug-max Added applying of undo for updates 2007-09-09 19:15:10 +03:00
compile-pentium-debug-max-no-embedded
compile-pentium-debug-max-no-ndb Merge pippilotta.erinye.com:/shared/home/df/mysql/build/mysql-5.0-build-work-27701 2007-04-11 14:06:03 +02:00
compile-pentium-debug-openssl BUG#18818 configure: No longer finds OpenSSL on Mac OS X 2006-05-17 13:59:37 +02:00
compile-pentium-debug-yassl BUG#18818 configure: No longer finds OpenSSL on Mac OS X 2006-05-17 13:59:37 +02:00
compile-pentium-gcov Manual merge 2007-08-22 12:02:23 -06:00
compile-pentium-gprof Bug#23062 (GCOV build: helper scripts missing in the BUILD directory) 2007-08-15 18:10:16 -06:00
compile-pentium-icc
compile-pentium-icc-valgrind-max
compile-pentium-icc-yassl
compile-pentium-max
compile-pentium-myodbc
compile-pentium-mysqlfs-debug
compile-pentium-pgcc BUILD scripts: s/(dist)?clean/maintainer-clean/ 2007-01-28 21:09:54 +01:00
compile-pentium-valgrind-max BUG#27701 don't pass arguments to sourced script if they're not modified as this is either a no-op (if done correctly), a different no-op with some shells (if done the bash way, but with correct quoting) or breaks arguments with whitespace for some shells (if done the bash way, without quotes). 2007-04-11 14:12:00 +02:00
compile-pentium-valgrind-max-no-ndb Add variation of compile-pentium-valgrind-max which does not build ndb. 2008-05-27 12:35:35 -03:00
compile-pentium64 BUG#27701 don't pass arguments to sourced script if they're not modified as this is either a no-op (if done correctly), a different no-op with some shells (if done the bash way, but with correct quoting) or breaks arguments with whitespace for some shells (if done the bash way, without quotes). 2007-04-11 14:12:00 +02:00
compile-pentium64-debug Merge pippilotta.erinye.com:/shared/home/df/mysql/build/mysql-5.0-build-work-27701 2007-04-11 14:06:03 +02:00
compile-pentium64-debug-max Merge pippilotta.erinye.com:/shared/home/df/mysql/build/mysql-5.0-build-work-27701 2007-04-11 14:06:03 +02:00
compile-pentium64-gcov Bug#23062 (GCOV build: helper scripts missing in the BUILD directory) 2007-08-15 18:10:16 -06:00
compile-pentium64-gprof Bug#23062 (GCOV build: helper scripts missing in the BUILD directory) 2007-08-15 18:10:16 -06:00
compile-pentium64-max BUG#27701 don't pass arguments to sourced script if they're not modified as this is either a no-op (if done correctly), a different no-op with some shells (if done the bash way, but with correct quoting) or breaks arguments with whitespace for some shells (if done the bash way, without quotes). 2007-04-11 14:12:00 +02:00
compile-pentium64-max-sci New SCI Transporter Build scripts 2007-05-07 15:33:27 +02:00
compile-pentium64-valgrind-max
compile-ppc
compile-ppc-debug
compile-ppc-debug-max
compile-ppc-debug-max-no-ndb
compile-ppc-max
compile-solaris-amd64 Adding build scripts for Solaris 10 on AMD64. 2007-11-10 11:03:07 +01:00
compile-solaris-amd64-debug Adding build scripts for Solaris 10 on AMD64. 2007-11-10 11:03:07 +01:00
compile-solaris-amd64-forte Bug#38727: BUILD/compile-solaris-* scripts should compile MySQL with libmtmalloc 2008-09-30 17:57:48 -03:00
compile-solaris-amd64-forte-debug Bug#38727: BUILD/compile-solaris-* scripts should compile MySQL with libmtmalloc 2008-09-30 17:57:48 -03:00
compile-solaris-sparc Bug#38727: BUILD/compile-solaris-* scripts should compile MySQL with libmtmalloc 2008-09-30 17:57:48 -03:00
compile-solaris-sparc-debug Fixes Bug#30127: --debug-info no longer prints memory usage in mysql 2007-08-01 22:59:05 +03:00
compile-solaris-sparc-forte Bug#38727: BUILD/compile-solaris-* scripts should compile MySQL with libmtmalloc 2008-09-30 17:57:48 -03:00
compile-solaris-sparc-purify Merge bk-internal.mysql.com:/home/bk/mysql-5.1 2007-02-26 16:12:40 +01:00
FINISH.sh BUILD scripts: s/(dist)?clean/maintainer-clean/ 2007-01-28 21:09:54 +01:00
Makefile.am BUILD/Makefile.am 2008-04-18 16:58:47 +02:00
SETUP.sh Added "pool-of-threads" handling (with libevent) 2009-03-13 00:27:35 +02:00