summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* WL#4259 - Debug Sync FacilityIngo Struewing2009-09-2925-2/+2846
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Backport from 6.0 to 5.1. Only those sync points are included, which are used in debug_sync.test. The Debug Sync Facility allows to place synchronization points in the code: open_tables(...) DEBUG_SYNC(thd, "after_open_tables"); lock_tables(...) When activated, a sync point can - Send a signal and/or - Wait for a signal Nomenclature: - signal: A value of a global variable that persists until overwritten by a new signal. The global variable can also be seen as a "signal post" or "flag mast". Then the signal is what is attached to the "signal post" or "flag mast". - send a signal: Assign the value (the signal) to the global variable ("set a flag") and broadcast a global condition to wake those waiting for a signal. - wait for a signal: Loop over waiting for the global condition until the global value matches the wait-for signal. Please find more information in the top comment in debug_sync.cc or in the worklog entry. .bzrignore: WL#4259 - Debug Sync Facility Added the symbolic link libmysqld/debug_sync.cc. CMakeLists.txt: WL#4259 - Debug Sync Facility Added definition for ENABLED_DEBUG_SYNC. configure.in: WL#4259 - Debug Sync Facility Added definition for ENABLED_DEBUG_SYNC. include/my_sys.h: WL#4259 - Debug Sync Facility Added definition for the DEBUG_SYNC_C macro. libmysqld/CMakeLists.txt: WL#4259 - Debug Sync Facility Added sql/debug_sync.cc. libmysqld/Makefile.am: WL#4259 - Debug Sync Facility Added sql/debug_sync.cc. mysql-test/include/have_debug_sync.inc: WL#4259 - Debug Sync Facility New include file. mysql-test/mysql-test-run.pl: WL#4259 - Debug Sync Facility Added option --debug_sync_timeout. mysql-test/r/debug_sync.result: WL#4259 - Debug Sync Facility New test result. mysql-test/r/have_debug_sync.require: WL#4259 - Debug Sync Facility New require file. mysql-test/t/debug_sync.test: WL#4259 - Debug Sync Facility New test file. mysys/my_static.c: WL#4259 - Debug Sync Facility Added definition for debug_sync_C_callback_ptr. mysys/thr_lock.c: WL#4259 - Debug Sync Facility Added sync point "wait_for_lock". sql/CMakeLists.txt: WL#4259 - Debug Sync Facility Added debug_sync.cc and debug_sync.h. sql/Makefile.am: WL#4259 - Debug Sync Facility Added debug_sync.cc and debug_sync.h. sql/debug_sync.cc: WL#4259 - Debug Sync Facility New source file. sql/debug_sync.h: WL#4259 - Debug Sync Facility New header file. sql/mysqld.cc: WL#4259 - Debug Sync Facility Added opt_debug_sync_timeout. Added calls to debug_sync_init() and debug_sync_end(). Fixed a purecov comment (unrelated). sql/set_var.cc: WL#4259 - Debug Sync Facility Added server variable "debug_sync". sql/set_var.h: WL#4259 - Debug Sync Facility Added declaration for server variable "debug_sync". sql/share/errmsg.txt: WL#4259 - Debug Sync Facility Added error messages ER_DEBUG_SYNC_TIMEOUT and ER_DEBUG_SYNC_HIT_LIMIT. sql/sql_base.cc: WL#4259 - Debug Sync Facility Added sync points "after_flush_unlock" and "before_lock_tables_takes_lock". sql/sql_class.cc: WL#4259 - Debug Sync Facility Added initialization for debug_sync_control to THD::THD. Added calls to debug_sync_init_thread() and debug_sync_end_thread(). sql/sql_class.h: WL#4259 - Debug Sync Facility Added element debug_sync_control to THD. storage/myisam/myisamchk.c: Fixed a typo in an error message string (unrelated).
* Bug #43414 Parenthesis (and other) warnings compiling MySQLStaale Smedseng2009-09-2330-76/+75
| | | | | | | with gcc 4.3.2 Cleaning up warnings not present in 5.0.
* A patch for Bug#47474 (mysqld hits Dbug_violation_helper assertAlexander Nozdrin2009-09-235-13/+36
| | | | | | | | | | | | when compiled with Sun Studio compiler). The thing is that Sun Studio compiler calls destructor of stack objects when pthread_exit() is called. That triggered an assertion in DBUG_ENTER()/DBUG_RETURN() validation logic (if DBUG_ENTER() is used in the beginning of function, all returns should be replaced by DBUG_RETURN/DBUG_VOID_RETURN macros). A fix is to explicitly use DBUG_LEAVE macro.
* merge to mysql-5.1-bugteamSatya B2009-09-233-2/+15
|\
| * Bug#45498: Socket variable not available on WindowsDavi Arnaut2009-09-223-2/+15
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The "socket" variable is not available on Windows even though the --socket option can be used to specify the pipe name for local connections that use a named pipe. The solution is to ensure that the variable is always defined. mysql-test/r/windows.result: Add test case result for Bug#45498 mysql-test/t/windows.test: Add test case for Bug#45498 sql/set_var.cc: socket variable must always be present.
* | Additional Fix for BUG#44030 - Error: (1500) Couldn't read the MAX(ID) autoinc Satya B2009-09-233-7/+2
|/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | value from the index (PRIMARY) With the fix for BUG#46760, we correctly flag the presence of row_type only when it's actually changed and enables the FAST ALTER TABLE which was disabled with the BUG#39200. So the changes made by BUG#46760 makes MySQL data dictionaries to be out of sync but they are handled already by InnoDB with this BUG#44030. The test was originally written to handle this but we requested Innodb to update the test as the data dictionaries were in sync after the fix for BUG#39200. Adjusting the innodb-autoinc testcase as mentioned in the comments. mysql-test/lib/mtr_cases.pm: Re-enable the innodb-autoinc test case for plugin as we have a common result file. mysql-test/r/innodb-autoinc.result: Additional Fix for BUG#44030 - Error: (1500) Couldn't read the MAX(ID) autoinc value from the index (PRIMARY) Adjust the innodb-autoinc testcase as the patch for BUG#46760 enables the FAST ALTER TABLE and makes the data dictonaries go out of sync. This is expected in the testcase. mysql-test/t/innodb-autoinc.test: Additional Fix for BUG#44030 - Error: (1500) Couldn't read the MAX(ID) autoinc value from the index (PRIMARY) Adjust the innodb-autoinc testcase as the patch for BUG#46760 enables the FAST ALTER TABLE and makes the data dictonaries go out of sync. This is expected in the testcase.
* automergeGeorgi Kodinov2009-09-231-1/+1
|\
| * Bug#45989 memory leak after explain encounters an error in the querySergey Glukhov2009-09-231-1/+1
| | | | | | | | | | | | | | | | | | the fix is reverted from 5.1, mysql-pe as unnecessary(no valgrind warnings there). sql/sql_select.cc: the fix is reverted from 5.1, mysql-pe as unnecessary(no valgrind warnings there).
* | automergeGeorgi Kodinov2009-09-231-1/+1
|\ \
| * \ Merge from mysql-5.0.86-releaseunknown2009-09-211-1/+1
| |\ \
| | * | change c++ comment to c commenthery2009-09-091-1/+1
| | | |
* | | | automergeGeorgi Kodinov2009-09-231-0/+1
|\ \ \ \
| * \ \ \ Merge from mysql-5.1.39-releaseJonathan Perkin2009-09-211-0/+1
| |\ \ \ \
| | * | | | Install mysqld.libJonathan Perkin2009-09-041-0/+1
| | | | | |
* | | | | | automergeGeorgi Kodinov2009-09-235-6/+93
|\ \ \ \ \ \ | | |_|_|_|/ | |/| | | |
| * | | | | merged with local branch.Anurag Shekhar2009-09-222-4/+51
| |\ \ \ \ \
| | * \ \ \ \ merging with latest changes in bugteam.Anurag Shekhar2009-09-1819-68/+84
| | |\ \ \ \ \
| | * | | | | | Bug #45840 read_buffer_size allocated for each partition when Anurag Shekhar2009-09-172-4/+51
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | "insert into.. select * from" When inserting into a partitioned table using 'insert into <target> select * from <src>', read_buffer_size bytes of memory are allocated for each partition in the target table. This resulted in large memory consumption when the number of partitions are high. This patch introduces a new method which tries to estimate the buffer size required for each partition and limits the maximum buffer size used to maximum of 10 * read_buffer_size, 11 * read_buffer_size in case of monotonic partition functions. sql/ha_partition.cc: Introduced a method ha_partition::estimate_read_buffer_size to estimate buffer size required for each partition. Method ha_partition::start_part_bulk_insert updated to update the read_buffer_size before calling bulk upload in storage engines. Added thd in ha_partition::start_part_bulk_insert method signature. sql/ha_partition.h: Introduced a method ha_partition::estimate_read_buffer_size. Added thd in ha_partition::start_part_bulk_insert method signature.
| * | | | | | | Fix for BUG#35570 "CHECKSUM TABLE unreliable if LINESTRING field (same ↵Kristofer Pettersson2009-09-213-2/+42
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | content/ differen checksum)" The problem was that checksum of GEOMETRY type used memory addresses in the computation, making it un-repeatable thus useless. (This patch is a backport from 6.0 branch) mysql-test/r/myisam.result: test case for bug35570 that same tables give same checksums mysql-test/t/myisam.test: test case for bug35570 that same tables give same checksums sql/sql_table.cc: Type GEOMETRY is implemented on top of type BLOB, so, just like for BLOB, its 'field' contains pointers which it does not make sense to include in the checksum; it rather has to be converted to a string and then we can compute the checksum.
* | | | | | | | automergeGeorgi Kodinov2009-09-180-0/+0
|\ \ \ \ \ \ \ \
| * \ \ \ \ \ \ \ automergeGeorgi Kodinov2009-09-181-2/+2
| |\ \ \ \ \ \ \ \ | | | |_|_|_|_|/ / | | |/| | | | | |
| | * | | | | | | Raise version number after cloning 5.0.86unknown2009-09-081-2/+2
| | | |_|_|_|_|/ | | |/| | | | |
* | | | | | | | automergeGeorgi Kodinov2009-09-1863-147/+400
|\ \ \ \ \ \ \ \ | |_|_|/ / / / / |/| | | | | / / | | |_|_|_|/ / | |/| | | | |
| * | | | | | merge from 5.1-mtrBjorn Munch2009-09-0353-126/+341
| |\ \ \ \ \ \
| | * \ \ \ \ \ 3rd merge from mainBjorn Munch2009-09-039-20/+58
| | |\ \ \ \ \ \ | | | | |_|_|_|/ | | | |/| | | |
| | * | | | | | mergeBjorn Munch2009-09-031-2/+2
| | |\ \ \ \ \ \
| | | * | | | | | Bug #47075 Wildcards in experimental test names destroyed when tested first timeBjorn Munch2009-09-031-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Extract substr into local variable
| | * | | | | | | A few suppression follow-upsBjorn Munch2009-09-034-0/+8
| | | | | | | | |
| | * | | | | | | second merge from main, with adaptionsBjorn Munch2009-09-02145-1071/+6275
| | |\ \ \ \ \ \ \
| | * \ \ \ \ \ \ \ first merge from mainBjorn Munch2009-09-02913-4531/+259638
| | |\ \ \ \ \ \ \ \ | | | |_|/ / / / / / | | |/| | | | | | |
| | * | | | | | | | Bug #32296 mysqltest fails to parse "append_file" inside a "while", it works ↵Bjorn Munch2009-09-023-28/+73
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | inside a "if" Bug #41913 mysqltest cannot source files from if inside while Some commands require additional processing which only works first time Keep content for write_file or append_file with the st_command struct Add tests for those cases to mysqltest.test
| | * | | | | | | | mergeBjorn Munch2009-09-012-14/+7
| | |\ \ \ \ \ \ \ \
| | | * | | | | | | | Bug #39003 mtr's diff_files command failed in pushbuild without printing a ↵Bjorn Munch2009-08-192-14/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | result diff diff was actually called but result never outputted before exiting Added extra code to dump output *unless* failure was expected
| | * | | | | | | | | 46996 workaruondBjorn Munch2009-09-016-8/+11
| | | | | | | | | | |
| | * | | | | | | | | mergeBjorn Munch2009-08-311-7/+20
| | |\ \ \ \ \ \ \ \ \
| | | * | | | | | | | | Bug #46973 MTR: extract_warning_lines does not check it's extracting lines ↵Bjorn Munch2009-08-281-7/+20
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | for current test Rewrote logic (first commit was incomplete, sorry)
| | * | | | | | | | | | forgot : in rpl's disabled.defBjorn Munch2009-08-311-1/+1
| | | | | | | | | | | |
| | * | | | | | | | | | yet another 42408 followupBjorn Munch2009-08-301-0/+1
| | | | | | | | | | | |
| | * | | | | | | | | | even more suppression fixesBjorn Munch2009-08-294-3/+9
| | | | | | | | | | | |
| | * | | | | | | | | | A few more suppression fixes after 42408Bjorn Munch2009-08-293-0/+5
| | | | | | | | | | | |
| | * | | | | | | | | | Bug #42408 Faulty regex for detecting [Warning] and [ERROR] in mysqld error logBjorn Munch2009-08-289-4/+10
| | |/ / / / / / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Some follow-up test fixes after seeing effect in PB2
| | * | | | | | | | | Bug #46322 Sporadic timeout in mysql_upgrade.testBjorn Munch2009-08-276-6/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Apparently caused by logging to table Turn on logging to file only, add to .opt file for tests needing log to table
| | * | | | | | | | | Bug #46164 memory leak in mysqltest after parse error with --debugBjorn Munch2009-08-271-3/+4
| | |\ \ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Moved some dynstr_free() further up
| | | * | | | | | | | | Bug #46164 memory leak in mysqltest after parse error with --debugBjorn Munch2009-08-181-3/+4
| | | |/ / / / / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Moved some dynstr_free() further up
| | * | | | | | | | | Bug #42408 Faulty regex for detecting [Warning] and [ERROR] in mysqld error logBjorn Munch2009-08-258-11/+16
| | |/ / / / / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Enabled proper pattern for Warnings and ERRORs Added some suppressions
| | * | | | | | | | mergeBjorn Munch2009-08-181-5/+5
| | |\ \ \ \ \ \ \ \
| | | * | | | | | | | Bug #46755 Wrong grammar in some skip messages: Test need instead of Test needsBjorn Munch2009-08-171-5/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Fixed in two comments as well
| | * | | | | | | | | Bug #44222 mysql-test-run --start analyses which tests it would skip. This ↵Bjorn Munch2009-08-182-5/+32
| | |/ / / / / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | is redundant. Quicker test collection and better output with --start[-dirty]
| | * | | | | | | | Bug #44979 Enhance MTR --experimental to support platform qualifierBjorn Munch2009-08-133-0/+20
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Adding @<platform> syntax
| | * | | | | | | | Bug #44012 mtr: test cases that are not supposed to return output always failBjorn Munch2009-08-111-3/+14
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Output would match an empty result file but we don't check Allow empty output IFF there is an empty result file.