- 26 Feb, 2006 3 commits
-
-
unknown authored
-
unknown authored
into zim.(none):/home/brian/mysql/dep-5.1
-
unknown authored
This patch handles compiles with threads, namely if you don't have pthreads it will remove support for threads in the applications (and it is fixed in such a way that tests won't break). client/mysqlimport.c: Add in flags to support compiles with no thread support. client/mysqlslap.c: Add support to source code to compile without threads.
-
- 25 Feb, 2006 4 commits
-
-
unknown authored
sql/sql_load.cc: fix for segfault in my previous cset sql/sql_repl.cc: if RBR, log_loaded_block() returns immediately (code moved from sql_load.cc)
-
unknown authored
into mysql.com:/home/mysql_src/mysql-5.1-new sql/mysqld.cc: Auto merged sql/sp_head.cc: Auto merged sql/share/errmsg.txt: Auto merged sql/sql_show.cc: Auto merged sql/sql_table.cc: Auto merged
-
unknown authored
and new binlog format called "mixed" (which is statement-based except if only row-based is correct, in this cset it means if UDF or UUID is used; more cases could be added in later 5.1 release): SET GLOBAL|SESSION BINLOG_FORMAT=row|statement|mixed|default; the global default is statement unless cluster is enabled (then it's row) as in 5.1-alpha. It's not possible to use SET on this variable if a session is currently in row-based mode and has open temporary tables (because CREATE TEMPORARY TABLE was not binlogged so temp table is not known on slave), or if NDB is enabled (because NDB does not support such change on-the-fly, though it will later), of if in a stored function (see below). The added tests test the possibility or impossibility to SET, their effects, and the mixed mode, including in prepared statements and in stored procedures and functions. Caveats: a) The mixed mode will not work for stored functions: in mixed mode, a stored function will always be binlogged as one call and in a statement-based way (e.g. INSERT VALUES(myfunc()) or SELECT myfunc()). b) for the same reason, changing the thread's binlog format inside a stored function is refused with an error message. c) the same problems apply to triggers; implementing b) for triggers will be done later (will ask Dmitri). Additionally, as the binlog format is now changeable by each user for his session, I remove the implication which was done at startup, where row-based automatically set log-bin-trust-routine-creators to 1 (not possible anymore as a user can now switch to stmt-based and do nasty things again), and automatically set --innodb-locks-unsafe-for-binlog to 1 (was anyway theoretically incorrect as it disabled phantom protection). Plus fixes for compiler warnings. mysql-test/r/rpl_row_4_bytes.result: update mysql-test/t/rpl_row_4_bytes.test: don't influence next tests sql/ha_archive.cc: please pay attention to this structure when you change it... sql/ha_berkeley.cc: please pay attention to this structure when you change it... sql/ha_blackhole.cc: please pay attention to this structure when you change it... sql/ha_federated.cc: please pay attention to this structure when you change it... sql/ha_heap.cc: please pay attention to this structure when you change it... sql/ha_innodb.cc: please pay attention to this structure when you change it... sql/ha_myisam.cc: please pay attention to this structure when you change it... sql/ha_myisammrg.cc: please pay attention to this structure when you change it... sql/ha_ndbcluster_binlog.cc: no more global 'binlog_row_based' sql/ha_partition.cc: please pay attention to this structure when you change it... sql/handler.cc: please pay attention to this structure when you change it... sql/handler.h: it's good to initialize statically (to get no compiler warning) even if to a null value. sql/item_func.cc: UDFs require row-based if this is the "mixed" binlog format. sql/item_strfunc.cc: UUID() requires row-based binlogging if this is the "mixed" binlog format sql/log.cc: binlog_row_based -> thd->current_stmt_binlog_row_based sql/log.h: the enum enum_binlog_format moves to log.h from mysqld.cc as we need it in several places. sql/log_event.cc: binlog_row_based -> thd->current_stmt_binlog_row_based sql/log_event.h: this global variable not used anymore sql/mysql_priv.h: these global variables not used anymore sql/mysqld.cc: simplification in the handling of --binlog-format (but with no user-visible change), thanks to the new global system variable. RBR does not anymore turn on --log-bin-trust-function-creators and --innodb-locks-unsafe-for-binlog as these are global options and RBR is now settable per session. sql/partition_info.cc: compiler warnings sql/set_var.cc: new class of thread's variable, to handle the binlog_format (like sys_var_thd_enum except that is_readonly() is overriden for more checks before update). compiler warnings (ok'd by Serg) sql/set_var.h: new class for the thread's binlog_format (see set_var.cc) sql/share/errmsg.txt: some messages for when one can't toggle from one binlog format to another sql/sp_head.cc: binlog_row_based -> thd->current_stmt_binlog_row_based sql/sql_base.cc: binlog_row_based -> thd->current_stmt_binlog_row_based sql/sql_class.cc: When a THD is initialized, we set its current_stmt_binlog_row_based sql/sql_class.h: new THD::variables.binlog_format (the value of the session variable set by SET or inherited from the global value), and THD::current_stmt_binlog_row_based which tells if the current statement does row-based or statement-based binlogging. Both members are needed as the 2nd one cannot be derived only from the first one (the statement's type plays a role too), and the 1st one is needed to reset the 2nd one. sql/sql_delete.cc: binlog_row_based -> thd->current_stmt_binlog_row_based sql/sql_insert.cc: binlog_row_based -> thd->current_stmt_binlog_row_based sql/sql_load.cc: binlog_row_based -> thd->current_stmt_binlog_row_based. sql/sql_parse.cc: when we are done with a statement, we reset the current_stmt_binlog_row_based to the value derived from THD::variables.binlog_format. sql/sql_partition.cc: compiler warning sql/sql_show.cc: compiler warning sql/sql_table.cc: binlog_row_based -> thd->current_stmt_binlog_row_based tests/mysql_client_test.c: compiler warning mysql-test/r/ndb_binlog_basic2.result: new result mysql-test/r/rpl_switch_stm_row_mixed.result: new result mysql-test/t/ndb_binlog_basic2.test: new test to verify that if cluster is enabled, can't change binlog format on the fly. mysql-test/t/rpl_switch_stm_row_mixed.test: test to see if one can switch between SBR, RBR, and "mixed" mode, and when one cannot, and test to see if the switching, and the mixed mode, work properly (using UUID() to test, as using UDFs is not possible in the testsuite for portability reasons).
-
unknown authored
into zim.(none):/home/brian/mysql/dep-5.1 mysql-test/r/create.result: Auto merged mysql-test/t/create.test: Auto merged sql/sql_table.cc: Auto merged
-
- 24 Feb, 2006 19 commits
-
-
unknown authored
Someone modified the output to explain but did not run all tests before pushing, otherwise they would have realized that they broke this test. mysql-test/r/partition_pruning.result: Updated results
-
unknown authored
AKA someone pushed without testing. mysql-test/r/partition_02myisam.result: Fixed error messages
-
unknown authored
into zim.(none):/home/brian/mysql/dep-5.1
-
unknown authored
sql/opt_range.cc: Fix a typo in dbug printout: print "min_val < partitioning_field < max_val", not "max_val < partitioning_field < max_val"
-
unknown authored
This patch cleans up two tests which were a bit fragile from other failing tests. It also removes some variables associated with removed RAID support. BitKeeper/deleted/.del-raid.h~2d2503a66b128ac6: Delete: include/raid.h BitKeeper/deleted/.del-raid.cc~488f5fa6538394e1: Delete: mysys/raid.cc BitKeeper/deleted/.del-raid2.c~fe7aea5fb4b9748c: Delete: mysys/raid2.c include/Makefile.am: Removing raid include/my_sys.h: Removing Raid include/myisam.h: Removing raid mysql-test/r/case.result: Cleaned up incomming tables mysql-test/r/mysqlcheck.result: new results mysql-test/t/case.test: Cleaned up test mysql-test/t/mysqlcheck.test: Cleaned up two tests. mysys/Makefile.am: Removed raid mysys/my_static.c: Removed raid storage/myisam/mi_check.c: Removed raid storage/myisam/mi_info.c: Removed raid bits.
-
unknown authored
mysql-test/r/events_microsec.result: update results mysql-test/t/events_microsec.test: use the newly introduced I_S.PROCESSLIST to check whether the scheduler is running.
-
unknown authored
into lmy004.:/work/mysql-5.1-bug16411 sql/sql_show.cc: Auto merged
-
unknown authored
fix for bug#16411
-
unknown authored
last fixes sql/event_executor.cc: fix message
-
unknown authored
sql/event_timed.cc: fix problem during merge
-
unknown authored
into moonbone.local:/work/17530-bug-5.0-mysql
-
unknown authored
into mysql.com:/usr/local/mysql/mysql-5.1-new mysql-test/t/mysqldump.test: Auto merged
-
unknown authored
(Backported from mysql-5.1-new) mysql-test/t/mysqldump.test: Fix mysqldump.test to work with non-standard --vardir.
-
unknown authored
fix for bug #16412 (post-merge fix) mysql-test/r/sp.result: fix test result
-
unknown authored
into moonbone.local:/work/17530-bug-5.0-mysql
-
unknown authored
mysql-test/r/events.result: Auto merged sql/event.cc: Auto merged sql/event.h: Auto merged sql/event_executor.cc: Auto merged sql/sql_show.cc: Auto merged sql/sql_yacc.yy: Auto merged sql/share/errmsg.txt: Auto merged sql/event_timed.cc: manual merge
-
unknown authored
into lmy004.:/work/mysql-5.1-bug16412 sql/sql_show.cc: Auto merged
-
unknown authored
WL#1034 (Internal CRON) mysql-test/r/grant.result: fix result file sql/sql_show.cc: Fix output per bug #16412 (Events: SHOW PRIVILEGES gives incorrect information)
-
unknown authored
-
- 23 Feb, 2006 14 commits
-
-
unknown authored
into snake-hub.snake.net:/src/extern/MySQL/bk/mysql-5.1 client/mysqltest.c: Auto merged
-
unknown authored
Rearrange out of order options in option struct. client/mysqltest.c: Rearrange out of order options in option struct.
-
unknown authored
into snake-hub.snake.net:/src/extern/MySQL/bk/mysql-5.1
-
unknown authored
into snake-hub.snake.net:/src/extern/MySQL/bk/mysql-5.0
-
unknown authored
into snake-hub.snake.net:/src/extern/MySQL/bk/mysql-5.1 sql/mysqld.cc: manual merge.
-
unknown authored
into mysql.com:/usr/local/home/marty/MySQL/mysql-5.1-new
-
unknown authored
-
unknown authored
into neptunus.(none):/home/msvensson/mysql/mysql-5.1 client/mysqldump.c: Auto merged
-
unknown authored
Fix out of order entries in option struct. sql/mysqld.cc: Fix out of order entries in option struct.
-
unknown authored
into neptunus.(none):/home/msvensson/mysql/mysql-5.1
-
unknown authored
client/mysqldump.c: snprintf => my_snprintf
-
unknown authored
into neptunus.(none):/home/msvensson/mysql/mysql-5.1 client/mysqldump.c: Auto merged
-
unknown authored
client/mysqldump.c: Declare variable in start of function
-
unknown authored
into mysql.com:/opt/local/work/mysql-5.1-new
-