summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* - added missing option "--without-embedded" to be able to compile withoutunknown2003-08-211-0/+1
| | | | | | | the embedded server (it was missing in the previous push)
* Yesterday I removed process_io_create_file; I shouldn't have.unknown2003-08-211-0/+121
| | | | | | | | | | Let's say the lack of comments did not help me ;) Copying it back again and adding comments; now 3.23->4.0 replication of LOAD DATA INFILE works again. sql/slave.cc: Enabling again process_io_create_file
* Result updates after Dmitri's and my changes to logging with ↵unknown2003-08-214-2/+13
| | | | | | | | | | | | | | | | | | | | | | | | | | | | --log-slave-updates. Since my changes, rpl_log.test, whose result file depends on file_id, became non-repeatable, i.e. file_id on slave in SHOW BINLOG EVENTS changed depending on the order of tests (sometimes 1, sometimes 5). Which is logical: as now the slave does not copy Create_file and Exec_load from the relay log (i.e from the master's binlog) to the slave's binlog, but instead lets mysql_load() do the logging, the file_id is now the one whic was used on the slave. Before it was the one which was used on the master, and by chance the master was always restarted for this test because there's a -master.opt file, so file_id on the master is always 1. But now file_id is from the slave so we need to restart the slave. That's why I add an (empty) -slave.opt file. I could have used 'server_stop/start slave', but this would have required the manager, so most of the time mysql-test-run silently skip the test which makes it useless. And I want this test to be run ! mysql-test/r/rpl_loaddata.result: Orig_log_pos is like Pos since Dmitri's good change for BUG#1086 mysql-test/r/rpl_log.result: Orig_log_pos is like Pos now, because Exec_load events are not directly copied by the slave from the relay log to the slave's binary log (these events are written by mysql_load() now). mysql-test/t/rpl_log.test: A comment
* Merge gbichot@bk-internal.mysql.com:/home/bk/mysql-4.0unknown2003-08-2014-152/+148
|\ | | | | | | | | | | | | | | | | | | | | | | into mysql.com:/home/mysql_src/mysql-4.0 sql/log.cc: Auto merged sql/log_event.cc: Auto merged sql/slave.cc: Auto merged
| * First commit for fixing BUG#1100unknown2003-08-2014-152/+148
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | "LOAD DATA INFILE is badly filtered by binlog-*-db rules". There will probably be a second final one to merge Dmitri's changes to rpl_log.result and mine. 2 new tests: rpl_loaddata_rule_m : test of logging of LOAD DATA INFILE when the master has binlog-*-db rules, rpl_loaddata_rule_s : test of logging of LOAD DATA INFILE when the slave has binlog-*-db rules and --log-slave-updates. mysql-test/r/rpl_loaddata.result: Test that logging of LOAD DATA INFILE is done on the slave mysql-test/t/rpl_loaddata.test: Test that logging of LOAD DATA is done on the slave sql/log.cc: debug info sql/log_event.cc: * Append_block, Exec_load and Delete_file now have a member 'db' like Create_file. This member is filled by mysql_load(). It is used for filtering by binlog-*-db rules, that's all. It's not written to the binlog, and so can't be read from the binlog. In other words, that's temporary info which is stored in the event and lost when it is written and deleted. * Better error messages in Append_block et al. events. * The slave now logs (log-slave-updates) the Create_file et al. events in mysql_load() (they are not directly copied from the events in the relay log, because this prevented filtering by binlog-*-db rules). Before, mysql_load() in the slave did no logging, now it does the logging, as in any regular thread. sql/log_event.h: New member 'db' for Append_block et al. events. sql/slave.cc: Removed useless code. Why was it useless: - CREATE_FILE_EVENT is not defined in 3.23. It appeared in 4.0. - in queue_old_event(), which is called only if the master is 3.23, we had a case CREATE_FILE_EVENT: so this case can be removed. - this case was the only caller of process_io_create_file() so this function can be removed. sql/sql_load.cc: Pass the db to events, so that they can be well filtered. sql/sql_repl.cc: Pass the db to events so that they can be well filtered.
* | Merge bk-internal.mysql.com:/home/bk/mysql-4.0unknown2003-08-201-3/+1
|\ \ | | | | | | | | | | | | | | | | | | into mysql.com:/home/dlenev/src/mysql-4.0-bg-1086
| * | Fixed problem with undefined assert symbolunknown2003-08-201-3/+1
| | |
* | | Merge bk-internal.mysql.com:/home/bk/mysql-4.0unknown2003-08-207-12/+24
|\ \ \ | |/ / |/| | | | | | | | | | | | | | into mysql.com:/home/dlenev/src/mysql-4.0-bg-1086
| * | Fix for BUG#1086. Now we don't preserve event's log_pos throughunknown2003-08-207-12/+24
| |/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | log-slave-updates since this causes unexpected values in Exec_master_log_pos in A->B->C replication setup, synchronization problems in master_pos_wait()... Still this brokes some functionality in sql/repl_failsafe.cc (but this file is not used now) mysql-test/r/rpl_log.result: SHOW BINLOG EVENTS for binlog on slave should give the same Orig_log_pos and Pos values sql/log_event.cc: Do not propagate our master's log pos to our bin log sql/repl_failsafe.cc: Added comment about broken SHOW NEW MASTER sql/slave.cc: Do not propagate our master's log pos to our bin log sql/sql_class.cc: THD::log_pos is no longer needed sql/sql_class.h: THD::log_pos is no longer needed sql/sql_parse.cc: Added comment about broken SHOW NEW MASTER
* | Fixed some varnings from valgrindunknown2003-08-2020-115/+342
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Set min value of max_allowed_packet to 1024 Fixed problem with UNION's without braces and SQL_CALC_FOUND_ROWS, LIMIT #,# and ORDER BY...LIMIT include/m_string.h: Added memcpy_overlap() to avoid warnings when using valgrind on memcpy(A,A,...) myisam/mi_create.c: Fixed comment myisam/mi_search.c: Fix warning from valgrind myisam/mi_write.c: Indentation fix mysql-test/mysql-test-run.sh: Add options handled by general skip- option mysql-test/r/packet.result: Update results after change to mysqld (min max_allowed_packet length is now 1024) mysql-test/r/union.result: Added testing of UNION with SQL_CALC_FOUND_ROWS mysql-test/t/packet.test: Update results after change to mysqld (min max_allowed_packet length is now 1024) mysql-test/t/union.test: Added testing of UNION with SQL_CALC_FOUND_ROWS sql/field.cc: Fix to remove waarning from valgrind sql/ha_innodb.cc: Remove wrong include file sql/item_cmpfunc.cc: Safety fix to handle EOM conditions in IN sql/item_sum.cc: Fixed prototype for update_field() (argument was alwys 0) sql/item_sum.h: Fixed prototype for update_field() (argument was alwys 0) sql/item_uniq.h: Fixed prototype for update_field() (argument was alwys 0) sql/log.cc: Indentation fix sql/mysqld.cc: Set min value of max_allowed_packet to 1024 (to avoid it getting set to 0) sql/net_serv.cc: Indentation changes + trivial optimization sql/sql_select.cc: Fixed prototype for update_field() (argument was alwys 0) sql/sql_union.cc: Fixed problem with UNION's without braces and - SQL_CALC_FOUND_ROWS - LIMIT #,# - ORDER BY ... LIMIT
* | Merge bk-internal:/home/bk/mysql-4.0/unknown2003-08-191-31/+8
|\ \ | | | | | | | | | | | | | | | | | | into serg.mylan:/usr/home/serg/Abk/mysql-4.0
| * | FT-NL bugfix - ignore words that appear more than in 2mio rows to avoid tree ↵unknown2003-08-191-31/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | overflow. optimization: abort search for common (>50% rows) words earlier.
* | | Merge mysql.com:/space/my/mysql-4.0unknown2003-08-191-1/+2
|\ \ \ | |_|/ |/| | | | | | | | | | | | | | into mysql.com:/space/my/mysql-4.0-build
| * | - Added a missing directory variable definition to the Bootstrap script.unknown2003-08-191-1/+2
| | | | | | | | | | | | | | | | | | Build-tools/Bootstrap: - defined $opt_directory to be the present working directory. No clue how this worked before...
* | | Use my_b_append instead of my_b_write on a SEQ_READ_APPEND cache, when we writeunknown2003-08-194-16/+18
| |/ |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | the first 4 bytes of the relay log. Indeed comments in mysys/mf_iocache.c say we must always use my_b_append for such a cache. This *could* avoid a very rare assertion failure which is: 030524 19:32:38 Slave SQL thread initialized, starting replication in log 'FIRST' at position 0, relay log '/ users/gbichot/4.1.1/mysql-test/var/log/slave-relay-bin.000001' position: 4 030524 19:32:38 next log '/users/gbichot/4.1.1/mysql-test/var/log/slave-relay-bin.000002' is currently active mysqld: mf_iocache.c:701: _my_b_seq_read: Assertion `pos_in_file == info->end_of_file' failed. and which seemed to happen always when the SQL thread and/or the I/O thread were at position 4 in a relay log. include/my_sys.h: moving a function from log_event.cc so that it can be widely used mysys/mf_iocache.c: moving a function from log_event.cc so that it can be widely used sql/log.cc: my_b_write should not be used on a SEQ_READ_APPEND cache, one should use my_b_append (otherwise there could be some locking problems). sql/log_event.cc: moved to mysys/mf_iocache.c for wider use. A typo.
* | Fix for BUG#1096 which is:unknown2003-08-193-7/+24
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | "mysqlbinlog does not comment the original LOAD DATA INFILE if it has a "use xx"" client/mysqlbinlog.cc: a comment sql/log_event.cc: in mysqlbinlog we want to have a leading '#' before LOAD DATA INFILE when we print a Create_file event. This was not done properly when the query had *2* lines: only the "use db" got commented. To fix this I had to add an argument to Load_log_event::print, it could not be handled in Create_file_log_event::print alone. sql/log_event.h: prototype
* | Merge gbichot@bk-internal.mysql.com:/home/bk/mysql-4.0unknown2003-08-191-31/+49
|\ \ | | | | | | | | | | | | | | | | | | into mysql.com:/home/mysql_src/mysql-4.0
| * | Fixes for BUG#1091,1092,1093. Synopsis of these bugs:unknown2003-08-191-31/+49
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | mysqlbinlog segfaults if --position is just before Exec_load event mysqlbinlog prints uncommented warnings if --database and compiled with debug mysqlbinlog --database does not filter LOAD DATA INFILE client/mysqlbinlog.cc: * Don't stop in Append_block when there is no Create_file. Just print a warning. * Test LOAD DATA (Create_file) against --database. * Don't print "no skip" when you don't skip an event when using --database (it causes syntax errors in 'mysql'). * Print a warning in Exec_load if there is no Create_file.
* | | Merge bk-internal.mysql.com:/home/bk/mysql-4.0unknown2003-08-191-1/+1
|\ \ \ | |_|/ |/| | | | | | | | | | | | | | into mashka.mysql.fi:/home/my/mysql-4.0
| * | Fix test caseunknown2003-08-191-1/+1
| | |
* | | - Do-pkg can now create a separate package including a MySQL Startup Itemunknown2003-08-192-37/+96
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | for Mac OS X and add it to the installation Disk Image. Build-tools/Do-pkg: - added code to build the StartupItem PKG along with the MySQL PKG and add it to the resulting Disk Image (can be skipped with --skip-si) - lots of cleanups (use more builtin Perl functions instead of subprocesses, enable a full dry run without errors) support-files/MacOSX/StartupItem.Info.plist: - removed IFPkgFlagOverwritePermissions and IFPkgFlagUseUserMask
* | | - Optimized and cleaned up the Do-rpm and Bootstrap Perl scriptsunknown2003-08-192-45/+104
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - Enhanced Do-rpm to support building RPMs with different compilers and options Build-tools/Bootstrap: - small optimization (use builtin Perl cwd() function instead of running "pwd" twice) Build-tools/Do-rpm: - added options to handle different compilers and compile flags (e.g. when compiling on IA64 using the Intel ecc compiler) - code cleanups (use more builtin Perl functions instead of forking subrocesses) - don't try to probe various distribution-specific RPM options - query rpm directly instead - Pass the MySQL version as an argument, not an option (as it's not optional anyway)
* | | Merge abelkin@bk-internal.mysql.com:/home/bk/mysql-4.0unknown2003-08-1824-115/+299
|\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | into laptop.sanja.is.com.ua:/home/bell/mysql/bk/mysql-4.0
| * | | fixed typo in last pushunknown2003-08-171-2/+2
| | | |
| * | | Merge bk-internal.mysql.com:/home/bk/mysql-4.0unknown2003-08-176-19/+49
| |\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | into narttu.mysql.fi:/my/mysql-4.0 sql/sql_parse.cc: Auto merged
| | * | | Fix mutex handling in SHOW_VARIABLES (key_buffer_size was not properly ↵unknown2003-08-176-19/+49
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | protected) Changed some non fatal myisamchk error messages to warnings myisam/myisamchk.c: Change error -> warning sql/handler.cc: Add mutex around keybuff_size usage sql/mysql_priv.h: Indentation update sql/set_var.cc: Add mutex around longlong variable usage sql/sql_parse.cc: Fix mutex handling in SHOW_VARIABLES sql/sql_show.cc: Fix mutex handling in SHOW_VARIABLES
| * | | | Fixed a limitation bug in mysqlimport. sql_statement was designed tounknown2003-08-161-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | contain max 1280 characters, but sometimes in rare cases when --columns was used, more than 1280 characters was needed. This is case when a lot of columns was specified using this option. Raised the max value to 8448, which should be enough.
| * | | | - Added some files to support-files/MacOSX to enable building the Mac OS Xunknown2003-08-156-1/+145
| | |/ / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | startup item: MySQL (the startup script), StartupItem.Description.plist, StartupItem.Info.plist (PKGMaker control files), StartupItem.postinstall (post-installation script for the Startup Item package) - modified support-files/MacOSX/Makefile.am to include the newly added files in the source distribution BitKeeper/etc/ignore: Added scripts/make_win_src_distribution to the ignore list support-files/MacOSX/Makefile.am: - added the Mac OS X StartupItem files to the source distribution
| * | | Merge bk-internal.mysql.com:/home/bk/mysql-4.0unknown2003-08-1512-94/+104
| |\ \ \ | | |/ / | |/| | | | | | | | | | | | | | | | | | into mashka.mysql.fi:/home/my/mysql-4.0
| | * | Cleanups to recent patchesunknown2003-08-157-75/+76
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Fix packet error when using wrong GRANT command include/config-win.h: Changed back to test for HAVE_SETFILEPOINTER instead of operating system mysql-test/r/grant.result: Extra test to catch wrong packet bug mysql-test/t/grant.test: Extra test to catch wrong packet bug mysys/my_chsize.c: Cleanup sql/opt_range.cc: Fix to recent BETWEEN patch sql/sql_acl.cc: Fix packet error when using wrong GRANT command sql/sql_select.cc: Cleanups Added not critical out-of-memory check
| | * | Merge bk-internal.mysql.com:/home/bk/mysql-4.0unknown2003-08-136-19/+28
| | |\ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | into mashka.mysql.fi:/home/my/mysql-4.0 sql/sql_select.cc: Auto merged
| | | * \ Merge bk-internal.mysql.com:/home/bk/mysql-4.0unknown2003-08-126-19/+28
| | | |\ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | into mashka.mysql.fi:/home/my/mysql-4.0
| | | | * | Remove wrong bug fix when calling create_sort_index.unknown2003-08-106-19/+28
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Fix possible replication bug with LOAD DATA ... IGNORE LINES # mysql-test/r/rpl_log.result: Test of load data ... ignore # lines mysql-test/t/rpl_log.test: Test of load data ... ignore # lines sql/log_event.cc: Fix replication bug with LOAD DATA ... IGNORE LINES # (Note that the code that is probably not executed in 4.0) sql/sql_parse.cc: Indentation fix sql/sql_select.cc: Remove wrong bug fix (all tests passes) sql/sql_yacc.yy: Indentation cleanup
* | | | | | Merge abelkin@bk-internal.mysql.com:/home/bk/mysql-4.0unknown2003-08-153-1036/+14
|\ \ \ \ \ \ | |/ / / / / |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | into laptop.sanja.is.com.ua:/home/bell/mysql/bk/mysql-4.0
| * | | | | Merge sanja.is.com.ua:/home/bell/mysql/bk/mysql-4.0unknown2003-08-093-1036/+14
| |\ \ \ \ \ | | |_|/ / / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | into sanja.is.com.ua:/home/bell/mysql/bk/work-merged_qc-4.0
| | * | | | rewritten test using loop (BUG#930)unknown2003-08-083-1036/+14
| | | |_|/ | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | removed unused field (now it is in variables) mysql-test/r/query_cache.result: rewritten test using loop mysql-test/t/query_cache.test: rewritten test using loop sql/sql_class.h: removed unused field (now it is in variables)
* | | | | make_win_src_distribution.sh:unknown2003-08-132-28/+53
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add --zip option for finer grain control over what package formats are created Bootstrap: Create both Windows source packages Build-tools/Bootstrap: Create both Windows source packages scripts/make_win_src_distribution.sh: Add --zip option for finer grain control over what package formats are created
* | | | | make_win_src_distribution.sh:unknown2003-08-131-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 'tools' contains intermediate files scripts/make_win_src_distribution.sh: 'tools' contains intermediate files
* | | | | make_win_src_distribution.sh:unknown2003-08-131-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Adding *.txt here didn't work well-- infolist.txt is in a path containing spaces scripts/make_win_src_distribution.sh: Adding *.txt here didn't work well-- infolist.txt is in a path containing spaces
* | | | | make_win_src_distribution.sh:unknown2003-08-131-36/+46
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Clean up script, add needed modifications to generate a complete 4.0 Windows source package scripts/make_win_src_distribution.sh: Clean up script, add needed modifications to generate a complete 4.0 Windows source package
* | | | | Merge build.mysql.com:/home/bk/mysql-4.0unknown2003-08-131-1/+1
|\ \ \ \ \ | | |_|/ / | |/| | | | | | | | | | | | | | | | | | | | | | | into build.mysql.com:/users/gweir/mysql-4.0
| * | | | - we are already in $target_dir, no need to prepend it to the buildunknown2003-08-131-1/+1
| |\ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | command.
| | * | | | Fixed typo in the Boostrap stripunknown2003-08-131-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Build-tools/Bootstrap: - fixed typo
* | | | | | make_win_src_distribution.sh:unknown2003-08-131-2/+17
|/ / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Copy some previously missed files scripts/make_win_src_distribution.sh: Copy some previously missed files
* | | | | Bootstrap:unknown2003-08-132-1/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Corrections to Bootstrap for --win-dist Build-tools/Bootstrap: Corrections to for --win-dist BitKeeper/etc/logging_ok: Logging to logging@openlogging.org accepted
* | | | | Merge lgrimmer@build.mysql.com:/home/bk/mysql-4.0unknown2003-08-123-249/+172
|\ \ \ \ \ | |/ / / / | | | | | | | | | | | | | | | | | | | | | | | | | into mysql.com:/space/my/mysql-4.0
| * | | | - enabled embedded server in the binary distributions by defaultunknown2003-08-123-249/+172
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | (Do-compile) - added mysql.info to the binary distribution files (BUG#1019) - heavily reworked the Do-rpm script to be more in line with Do-pkg - create a "docs" subdirectory in the binary distribution and moved the manual, ChangeLog and mysql.info file into it to unclutter the top directory Build-tools/Do-compile: - enable compiling with the embedded server by default (as requested by BrianA) - disable it with the "--disable-embedded" compile option. Build-tools/Do-rpm: - replaced the original Shell script with a Perl script, similar to Do-pkg. Some more work remains to be done (copying the resulting packages, enable using different compile flags and compilers). scripts/make_binary_distribution.sh: - move some docs into a subdirectory "docs" to not clutter the top directory with too many files. - added mysql.info info file to the docs dir (BUG#1019)
* | | | | nothing interestingunknown2003-08-131-1/+1
| | | | |
* | | | | Merge mysql.com:/home/wax/mysql/mysql-4.0unknown2003-08-1310-40/+127
|\ \ \ \ \ | |/ / / / | | | | | | | | | | | | | | | | | | | | | | | | | into mysql.com:/home/wax/mysql/mysql-4.0chsize
| * | | | Merge serg.mylan:/usr/home/serg/Abk/mysqlunknown2003-08-121-1/+1
| |\ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | into serg.mylan:/usr/home/serg/Abk/mysql-4.0 isam/_search.c: Auto merged