- 29 Aug, 2006 1 commit
-
-
unknown authored
Re'ordering of startup. Fixed Execution path issues. Added function for de'initing everything. This includes Antony's suggestions (bk collapse uber alles!) sql/handler.cc: Removed temp work needed for making status variables work with plugins. sql/mysqld.cc: Removed call to plugin_load() (not needed any longer). sql/sql_plugin.cc: Status vars are now located in only one location (while this fixed execution path problems, we will need to now fix "the name" issues). Monty and I have a solution to this :) Added function for deiniting engines (before the logic was scattered about). Added step by step processing for startup of plugins. MyISAM is now loaded first (we will address this long term in a different manner). sql/sql_plugin.h: Removed calls that did not need to be extern.
-
- 25 Aug, 2006 5 commits
-
-
unknown authored
into zim.(none):/home/brian/mysql/arch-5.1 BUILD/compile-alpha-cxx: Auto merged BUILD/compile-alpha-debug: Auto merged BUILD/compile-dist: Auto merged BUILD/compile-ia64-debug-max: Auto merged CMakeLists.txt: Auto merged client/mysql.cc: Auto merged sql/handler.cc: Auto merged sql/mysql_priv.h: Auto merged sql/mysqld.cc: Auto merged sql/sql_plugin.cc: Auto merged storage/csv/ha_tina.cc: Auto merged BUILD/FINISH.sh: Innodbase config still needed.
-
unknown authored
into zim.(none):/home/brian/mysql/arch-5.1 sql/handler.cc: Auto merged
-
unknown authored
Fixed "discover" in the handler API. Fixed problem where handlerton was not zero'ed. I need to look around, I suspect this problem is more widespread. sql/ha_innodb.h: Unused variable sql/ha_ndbcluster.cc: Added "discover" to handlerton. sql/handler.cc: Added plugin loop and correctly now use handler API. sql/handler.h: Removed unused variable. Added discover to handler API sql/mysqld.cc: Removed unused variables. sql/sql_plugin.cc: Fixed DBUG Enter comment (obvious cut paste mistake) storage/csv/ha_tina.cc: Found that if we don't bzero handlerton, that things can go boom! This probably needs to be fixed for all handlers
-
unknown authored
-
unknown authored
CMakeLists.txt: add for federated libmysqld/CMakeLists.txt: ha_heap.cc and ha_myisam.cc are removed add for federated sql/CMakeLists.txt: add for federated sql/handler.cc: fix for fussy compilers storage/heap/CMakeLists.txt: add ha_heap.cc storage/myisammrg/CMakeLists.txt: add ha_myisammrg.cc
-
- 24 Aug, 2006 2 commits
- 23 Aug, 2006 6 commits
-
-
unknown authored
client/mysql.cc: Windows warnings clean up server-tools/instance-manager/parse.cc: Cleanedup warning sql/field.cc: Removed unused variables sql/filesort.cc: Removed unused variables sql/ha_innodb.cc: Removed unused variables sql/ha_partition.cc: Fixing warning sql/partition_element.h: Fixing declaration for warnings
-
unknown authored
BitKeeper/deleted/.del-configure.in: Delete: storage/innobase/configure.in BUILD/FINISH.sh: Removed work for Innodb's configure BUILD/autorun.sh: Removed pieces for Innodb's build storage/innobase/Makefile.am: Removed ib_config.h needs storage/innobase/include/Makefile.i: Expanded includes. storage/innobase/include/univ.i: Removed ib_config need storage/innobase/plug.in: Added support taken from configure.in for building Innodb
-
unknown authored
into example.com:/work/mysql-5.1-runtime
-
unknown authored
should work in Prepared Statements. Post-review changeset. Problem: There are some commands which are avaiable to be executed in SP but cannot be prepared. This patch fixes this and makes it possible prepare these statements. Changes: The commands later are made available in PS. RESET has been forbidden in SF/Trigger. Solution: All current server commands where checked and those missing (see later) we added. Tests for all of the commands with repeated executions were added - testing with SP, SF and PS. SHOW BINLOG EVENTS SHOW (MASTER | SLAVE) STATUS SHOW (MASTER | BINARY) LOGS SHOW (PROCEDURE | FUNCTION) CODE (parsable only in debug builds) SHOW CREATE (PROCEDURE | FUNCTION | EVENT | TABLE | VIEW) SHOW (AUTHORS | CONTRIBUTORS | WARNINGS | ERRORS) CHANGE MASTER RESET (MASTER | SLAVE | QUERY CACHE) SLAVE (START | STOP) CHECKSUM (TABLE | TABLES) INSTALL PLUGIN UNINSTALL PLUGIN CACHE INDEX LOAD INDEX INTO CACHE GRANT REVOKE KILL (CREATE | RENAME | DROP) DATABASE (CREATE | RENAME | DROP) USER FLUSH (TABLE | TABLES | TABLES WITH READ LOCK | HOSTS | PRIVILEGES | LOGS | STATUS | MASTER | SLAVE | DES_KEY_FILE | USER_RESOURCES) mysql-test/r/ps.result: update result mysql-test/r/ps_1general.result: update result mysql-test/r/ps_grant.result: update result mysql-test/r/sp-dynamic.result: update result mysql-test/t/ps.test: Add more statements, probably all currently missing which are possible in a SP but not preparable. Every statement is tested in a SP, in a SF and attempted to prepare. mysql-test/t/ps_1general.test: - Enable some of the statements, which are already possible in SP. - 1295 -> ER_UNSUPPORTED_PS mysql-test/t/ps_grant.test: Enable statements already possible in SP. sql/sp_head.cc: - Reorder to keep some alphabet order. - Add missing SHOW_SCHEDULER_STATUS. sql/sql_prepare.cc: Add possibility to prepare statements, which are already allowed in SP.
-
unknown authored
into mysql.com:/home/cps/mysql/trees/mysql-5.1-virgin storage/csv/ha_tina.cc: merge later mysql-test/r/csv.result: manual merge mysql-test/t/csv.test: manual merge
-
unknown authored
into mysql.com:/home/cps/mysql/trees/mysql-5.1-virgin sql/mysql_priv.h: Auto merged sql/sql_acl.cc: Auto merged sql/sql_base.cc: Auto merged sql/sql_show.cc: Auto merged sql/sql_view.cc: Auto merged sql/table.cc: Auto merged sql/table.h: Auto merged sql/handler.cc: manual merge
-
- 22 Aug, 2006 2 commits
-
-
unknown authored
Plugins now when compiled or not compiled work correctly with status variables. Status variables from plugins now set their own names (removed bit where plugin name was pre-appended this broke Innodb and Cluster) A few Makefile cleanups. sql/ha_innodb.cc: Cleanup to make status variables directly in engine sql/ha_ndbcluster.cc: Engine interface now has variables for status sql/handler.cc: handler now makes sure to init status variables sql/mysqld.cc: Removed status variable hacks sql/sql_delete.cc: Removed include file that was not required storage/myisam/Makefile.am: Cleaned up line lengths and addded additional include to not install. storage/myisam/ha_myisam.cc: Removed double plugin include
-
unknown authored
mysql-test/r/grant.result: Update result file format to 5.1 version
-
- 21 Aug, 2006 10 commits
-
-
unknown authored
into zippy.cornsilk.net:/home/cmiller/work/mysql/merge/mysql-5.1
-
unknown authored
into bk-internal.mysql.com:/data0/bk/mysql-5.1-kt
-
unknown authored
into zippy.cornsilk.net:/home/cmiller/work/mysql/merge/mysql-5.1 mysql-test/r/func_time.result: Auto merged mysql-test/r/grant.result: Auto merged mysql-test/t/func_time.test: Auto merged mysql-test/t/grant.test: Auto merged mysql-test/t/mysql.test: Auto merged mysql-test/t/mysql_client_test.test: Auto merged server-tools/instance-manager/listener.cc: Auto merged server-tools/instance-manager/portability.h: Auto merged sql/item_timefunc.cc: Auto merged BitKeeper/deleted/.del-openssl.m4~41cebd0ba8281769: Auto merged sql/mysqld.cc: Auto merged sql/slave.cc: Auto merged sql/sql_acl.cc: Auto merged tests/mysql_client_test.c: Auto merged client/mysql.cc: Manual merge. mysql-test/mysql-test-run.pl: Manual merge.
-
unknown authored
into zippy.cornsilk.net:/home/cmiller/work/mysql/merge/mysql-5.1 mysql-test/r/func_time.result: Auto merged sql/item_timefunc.cc: Auto merged sql/slave.cc: Auto merged sql/sql_acl.cc: Auto merged mysql-test/t/func_time.test: Manual merge.
-
unknown authored
from cache" and #21216 "Simultaneous DROP TABLE and SHOW OPEN TABLES causes server to crash". Crash happened when one ran DROP DATABASE or SHOW OPEN TABLES statements while concurrently doing DROP TABLE (or RENAME TABLE, CREATE TABLE LIKE or any other command that takes name-lock) in other connection. This problem was caused by the fact that table placeholders which were added to table cache in order to obtain name-lock on table had TABLE_SHARE::db and table_name set to 0. Therefore they broke assumption that these members are non-0 for all tables in table cache on which some of our code relies. The fix sets these members for such placeholders to appropriate value making this assumption true again. As attempt to avoid such problems in future we introduce auxiliary TABLE_SHARE::set_table_cache_key() methods which should be used when one wants to set TABLE_SHARE::table_cache_key and which ensure that TABLE_SHARE::table_name/db are set properly. Test cases for these bugs were added to 5.0 test-suite (with 5.0-specific fix for bug #21216). sql/lock.cc: Our code assumes that TABLE_SHARE::table_name/db for objects in table cache is set properly (and is non-NULL). For example look in list_open_tables() and remove_db_from_cache(). This was not true for table placeholders that were added to table cache for name-locking. Changed lock_table_name() to preserve this assumption (now it uses TABLE_SHARE::set_table_cache_key() to set all three table_cache_key/db/table_name members at once). Also now we use my_multi_malloc() to allocate memory for TABLE and TABLE_SHARE objects instead of using my_malloc() + summing sizes as it automatically provides proper alignment for memory allocated. sql/sql_base.cc: Now we use TABLE_SHARE::set_table_cache_key() auxiliary methods to set TABLE_SHARE::table_cache_key/db/table_name members at once. We also use multi_alloc_root() instead of alloc_root() for allocating memory for several objects as it is less error prone. Finally, we also got rid of unused code in reopen_name_locked_table(). sql/sql_select.cc: Got rid of redundant code. TABLE_SHARE::db/table_cache_key are both set to empty string by the call to init_tmp_table_share() routine. sql/table.cc: Now alloc_table_share() uses auxiliary TABLE_SHARE::set_table_cache_key() method to properly set TABLE_SHARE::table_cache_key/db/table_name members. Also now we use multi_alloc_root() instead of alloc_root() for allocating memory for several objects as it is more clear/less error-prone. sql/table.h: Added comment about importance of apropriate setting of TABLE_SHARE::table_name/db/table_cache_key for tables in table cache. Introduced two auxiliary TABLE_SHARE::set_table_cache_key() methods which allow to set these three members at once.
-
unknown authored
because searching for them makes the script abort with all non-NDB builds. mysql-test/mysql-test-run.pl: Checking with "mtr_exe_exists()" for the location of a binary will yield an error if the binary is found nowhere at all, and this happens with NDB binaries in all builds that do not contain NDB; so the correct way is fixed path names only. Still part of the fix for the #21721 bug.
-
unknown authored
Deleted config/ac-macros/ha_berkeley.m4 Removed more referenses to bdb BitKeeper/deleted/.del-ha_berkeley.m4: Delete: config/ac-macros/ha_berkeley.m4 BUILD/FINISH.sh: Removed more referenses to bdb BUILD/compile-alpha-cxx: Removed more referenses to bdb BUILD/compile-alpha-debug: Removed more referenses to bdb BUILD/compile-dist: Removed more referenses to bdb BUILD/compile-ia64-debug-max: Removed more referenses to bdb CMakeLists.txt: Removed more referenses to bdb Makefile.am: Removed more referenses to bdb libmysqld/lib_sql.cc: Removed more referenses to bdb sql/mysql_priv.h: Removed more referenses to bdb storage/ndb/config/win-prg.am: Removed more referenses to bdb storage/ndb/test/run-test/ndb-autotest.sh: Removed more referenses to bdb support-files/my-huge.cnf.sh: Removed more referenses to bdb support-files/my-large.cnf.sh: Removed more referenses to bdb support-files/my-medium.cnf.sh: Removed more referenses to bdb
-
unknown authored
into bk-internal.mysql.com:/data0/bk/mysql-5.1-kt
-
unknown authored
into mockturtle.local:/home/dlenev/src/mysql-5.1-bg19403-2 mysql-test/r/drop.result: Auto merged sql/lock.cc: Use 5.1 version of code as bug#21216 will be fixed there in different way.
-
unknown authored
server to crash". Crash caused by assertion failure happened when one ran SHOW OPEN TABLES while concurrently doing DROP TABLE (or RENAME TABLE, CREATE TABLE LIKE or any other command that takes name-lock) in other connection. For non-debug version of server problem exposed itself as wrong output of SHOW OPEN TABLES statement (it was missing name-locked tables). Finally in 5.1 both debug and non-debug versions simply crashed in this situation due to NULL-pointer dereference. This problem was caused by the fact that table placeholders which were added to table cache in order to obtain name-lock had TABLE_SHARE::table_name set to 0. Therefore they broke assumption that this member is non-0 for all tables in table cache which was checked by assert in list_open_tables() (in 5.1 this function simply relies on it). The fix simply sets this member for such placeholders to appropriate value making this assumption true again. This patch also includes test for similar bug 12212 "Crash that happens during removing of database name from cache" reappeared in 5.1 as bug 19403. mysql-test/r/drop.result: Added test for bug#21216 "Simultaneous DROP TABLE and SHOW OPEN TABLES causes server to crash" and bug#12212/19403 "Crash that happens during removing of database name from cache". mysql-test/t/drop.test: Added test for bug#21216 "Simultaneous DROP TABLE and SHOW OPEN TABLES causes server to crash" and bug#12212/19403 "Crash that happens during removing of database name from cache". sql/lock.cc: lock_table_name(): Our code assumes that TABLE_SHARE::table_name for objects in table cache is non-NULL (for example look at assertion in list_open_tables()). This was not true for table placeholders that were added to table cache for name-locking. So let us set this member for such placeholders.
-
- 20 Aug, 2006 2 commits
-
-
unknown authored
sql/set_var.cc: Fix for bug #21642: "configure" with no arguments does not build Added #ifdefs around innodb server variables
-
unknown authored
This changeset moves the ha_myisam files to their storage directories. It also includes updates for all engines include patch for windows builds. storage/myisam/ha_myisam.h: Rename: sql/ha_myisam.h -> storage/myisam/ha_myisam.h libmysqld/Makefile.am: Removing myisam sql/CMakeLists.txt: removing myisam reference sql/Makefile.am: Removing myisam reference. sql/handler.cc: Removing unneeded include reference sql/mysqld.cc: updating include reference storage/archive/CMakeLists.txt: Update windows include storage/blackhole/CMakeLists.txt: Update windows include storage/csv/CMakeLists.txt: Update Windows include storage/example/CMakeLists.txt: Update windows include storage/federated/CMakeLists.txt: Update windows include storage/heap/CMakeLists.txt: Update windows include storage/myisam/CMakeLists.txt: Adding ha_myisam reference storage/myisam/Makefile.am: Updatinng Makefile.am storage/myisam/ha_myisam.cc: Updating include reference storage/myisammrg/CMakeLists.txt: Update windows include
-
- 19 Aug, 2006 3 commits
-
-
unknown authored
storage/myisammrg/ha_myisammrg.h: Rename: sql/ha_myisammrg.h -> storage/myisammrg/ha_myisammrg.h storage/federated/CMakeLists.txt: BitKeeper file /home/brian/mysql/arch-5.1/storage/federated/CMakeLists.txt libmysqld/Makefile.am: Removed mrg sql/CMakeLists.txt: Removed mrg sql/Makefile.am: Removed mrg sql/handler.cc: Removed mrg include (no longer needed) sql/sql_cache.cc: Updated include files storage/heap/Makefile.am: Formatting storage/myisammrg/Makefile.am: Updated makefile for mrg storage/myisammrg/ha_myisammrg.cc: Updated Makefile
-
unknown authored
storage/heap/ha_heap.h: Rename: sql/ha_heap.h -> storage/heap/ha_heap.h libmysqld/Makefile.am: Heap changes sql/CMakeLists.txt: Removed ha_heap sql/Makefile.am: Removed heap sql/handler.cc: Removed unneeded include call storage/heap/Makefile.am: Adjusted heap Makefile.am to include ha_heap.cc storage/heap/ha_heap.cc: Added plugin header
-
unknown authored
Major changes are plug.in files created for almost all storage engines. A few stray BDB references removed. storage/blackhole/plug.in: BitKeeper file /home/brian/mysql/arch-5.1/storage/blackhole/plug.in storage/heap/plug.in: BitKeeper file /home/brian/mysql/arch-5.1/storage/heap/plug.in storage/myisam/plug.in: BitKeeper file /home/brian/mysql/arch-5.1/storage/myisam/plug.in storage/myisammrg/plug.in: BitKeeper file /home/brian/mysql/arch-5.1/storage/myisammrg/plug.in storage/federated/ha_federated.h: Rename: sql/ha_federated.h -> storage/federated/ha_federated.h BUILD/FINISH.sh: Stray BDB reference BUILD/autorun.sh: Stray bdb reference BUILD/compile-alpha-cxx: Stray bdb reference BUILD/compile-alpha-debug: Stray bdb reference BUILD/compile-dist: Stray BDB Reference BUILD/compile-ia64-debug-max: Stray BDB reference configure.in: All plugin code is now in plug.in files. Few tricky exceptions left. sql/CMakeLists.txt: Removed federated references sql/Makefile.am: Removed federated references sql/mysql_priv.h: stray bdb reference storage/example/ha_example.cc: Enabled all of mysql include storage/federated/ha_federated.cc: Added plugin defs storage/csv/plug.in: New BitKeeper file ``storage/csv/plug.in'' storage/federated/Makefile.am: New BitKeeper file ``storage/federated/Makefile.am'' storage/federated/plug.in: New BitKeeper file ``storage/federated/plug.in'' storage/innobase/plug.in: New BitKeeper file ``storage/innobase/plug.in'' storage/ndb/plug.in: New BitKeeper file ``storage/ndb/plug.in''
-
- 18 Aug, 2006 4 commits
-
-
unknown authored
mysql-test/r/gis.result: result fixed sql/item_geofunc.cc: new_field->init() call added
-
unknown authored
mysql-test/mysql-test-run.pl: In 5.1 packages, the binaries "ndbd" and "ndb_mgmd" are in subdirectory "bin", not in "libexec". Use the search function "mtr_exe_exists()", in case there might be exceptions.
-
unknown authored
into bk-internal.mysql.com:/data0/bk/mysql-5.1-kt
-
unknown authored
into mysql.com:/home/cps/mysql/trees/mysql-5.0-virgin sql/examples/ha_tina.cc: Auto merged
-
- 17 Aug, 2006 5 commits
-
-
unknown authored
into bk-internal.mysql.com:/data0/bk/mysql-5.1-kt mysql-test/r/type_newdecimal.result: Auto merged mysql-test/t/type_newdecimal.test: Auto merged
-
unknown authored
instance.cc: Removed wrongly placed closing brace item_geofunc.cc: needed to pass in a TABLE_SHARE* instead of a TABLE* server-tools/instance-manager/instance.cc: Removed wrongly placed closing brace sql/item_geofunc.cc: needed to pass in a TABLE_SHARE* instead of a TABLE*
-
unknown authored
into example.com:/work/mysql-5.1-runtime sql/item.cc: Auto merged sql/mysql_priv.h: Auto merged sql/sql_acl.cc: Auto merged sql/sql_lex.h: Auto merged sql/sql_parse.cc: Auto merged sql/sql_partition.cc: Auto merged sql/sql_show.cc: Auto merged sql/sql_trigger.cc: Auto merged sql/sql_view.cc: Auto merged
-
unknown authored
BitKeeper/deleted/.del-readme-renamed: Rename: BitKeeper/deleted/.del-readme -> BitKeeper/deleted/.del-readme-renamed
-
unknown authored
There is an existing macros for initializing LEX_STRINGs with constant strings -> C_STRING_WITH_LEN. Change existing code to use it. (char *) STRING_WITH_LEN -> C_STRING_WITH_LEN sql/handler.cc: There is an existing macros for initializing LEX_STRINGs with constant strings -> C_STRING_WITH_LEN. Change existing code to use it. (char *) STRING_WITH_LEN -> C_STRING_WITH_LEN sql/item.cc: There is an existing macros for initializing LEX_STRINGs with constant strings -> C_STRING_WITH_LEN. Change existing code to use it. (char *) STRING_WITH_LEN -> C_STRING_WITH_LEN sql/mysql_priv.h: There is an existing macros for initializing LEX_STRINGs with constant strings -> C_STRING_WITH_LEN. Change existing code to use it. (char *) STRING_WITH_LEN -> C_STRING_WITH_LEN sql/sql_acl.cc: There is an existing macros for initializing LEX_STRINGs with constant strings -> C_STRING_WITH_LEN. Change existing code to use it. (char *) STRING_WITH_LEN -> C_STRING_WITH_LEN sql/sql_error.cc: There is an existing macros for initializing LEX_STRINGs with constant strings -> C_STRING_WITH_LEN. Change existing code to use it. (char *) STRING_WITH_LEN -> C_STRING_WITH_LEN sql/sql_error.h: There is an existing macros for initializing LEX_STRINGs with constant strings -> C_STRING_WITH_LEN. Change existing code to use it. (char *) STRING_WITH_LEN -> C_STRING_WITH_LEN sql/sql_lex.h: There is an existing macros for initializing LEX_STRINGs with constant strings -> C_STRING_WITH_LEN. Change existing code to use it. (char *) STRING_WITH_LEN -> C_STRING_WITH_LEN sql/sql_parse.cc: There is an existing macros for initializing LEX_STRINGs with constant strings -> C_STRING_WITH_LEN. Change existing code to use it. (char *) STRING_WITH_LEN -> C_STRING_WITH_LEN sql/sql_partition.cc: There is an existing macros for initializing LEX_STRINGs with constant strings -> C_STRING_WITH_LEN. Change existing code to use it. (char *) STRING_WITH_LEN -> C_STRING_WITH_LEN sql/sql_plugin.cc: There is an existing macros for initializing LEX_STRINGs with constant strings -> C_STRING_WITH_LEN. Change existing code to use it. (char *) STRING_WITH_LEN -> C_STRING_WITH_LEN sql/sql_show.cc: There is an existing macros for initializing LEX_STRINGs with constant strings -> C_STRING_WITH_LEN. Change existing code to use it. (char *) STRING_WITH_LEN -> C_STRING_WITH_LEN sql/sql_trigger.cc: There is an existing macros for initializing LEX_STRINGs with constant strings -> C_STRING_WITH_LEN. Change existing code to use it. (char *) STRING_WITH_LEN -> C_STRING_WITH_LEN sql/sql_view.cc: There is an existing macros for initializing LEX_STRINGs with constant strings -> C_STRING_WITH_LEN. Change existing code to use it. (char *) STRING_WITH_LEN -> C_STRING_WITH_LEN sql/tztime.cc: There is an existing macros for initializing LEX_STRINGs with constant strings -> C_STRING_WITH_LEN. Change existing code to use it. (char *) STRING_WITH_LEN -> C_STRING_WITH_LEN
-