summaryrefslogtreecommitdiff
path: root/mysys
Commit message (Collapse)AuthorAgeFilesLines
* 5.3 mergeSergei Golubchik2012-02-211-8/+9
|\
| * Merge with MariaDB 5.2Michael Widenius2012-02-211-77/+294
| |\
| | * Merge with 5.1Michael Widenius2012-02-201-1/+1
| | |\
| | | * Fixed compiler warningsMichael Widenius2012-02-201-1/+1
| | | |
| | * | Merge with MariaDB 5.1 and MySQL 5.1.61Michael Widenius2012-02-201-77/+294
| | |\ \ | | | |/
| | | * Merge with MYSQL 5.1.61Michael Widenius2012-02-201-77/+294
| | | |\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Fixed README with link to source Merged InnoDB change to XtraDB README: Added information of where to find MariaDB code storage/archive/ha_archive.cc: Removed memset() of rows, a MariaDB checksum's doesn't touch not used data.
| | | | * Bug#11761576 54082: HANDLE_SEGFAULT MAKES USE OF UNSAFE FUNCTIONSTor Didriksen2011-11-301-65/+276
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | handle_segfault is the signal handler code of mysqld. however, it makes calls to potentially unsafe functions localtime_r, fprintf, fflush. include/my_stacktrace.h: Add safe versions of itoa() write() and snprintf(). libmysqld/CMakeLists.txt: Move signal handler to separate file. mysys/stacktrace.c: Remove unsafe function calls. sql/CMakeLists.txt: Move signal handler to separate file. sql/Makefile.am: Move signal handler to separate file. sql/mysqld.cc: Move signal handler to separate file. sql/signal_handler.cc: Remove unsafe function calls.
| * | | | Merge 5.2->5.3 in preparation for the release of mariadb-5.3.4-rc.Igor Babaev2012-02-011-3/+3
| |\ \ \ \ | | |/ / /
| | * | | MDEV-106 my_gethwaddr() does not compile on Solaris 11Sergei Golubchik2012-01-231-3/+3
| | | | |
* | | | | fix the include guards and add missing gplv2 headersSergei Golubchik2012-02-172-0/+17
| | | | |
* | | | | Cherry-picked fix for solaris compilation from 5.2Vladislav Vaintroub2012-02-021-3/+3
| | | | |
* | | | | portability fixes for FreeBSD 8 and 9Vladislav Vaintroub2012-01-231-2/+4
| | | | |
* | | | | - Always compile my_new.cc and safemalloc.c with mysysVladislav Vaintroub2012-01-202-10/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Preprocessor macros USE_MYSYS_NEW and -DSAFEMALLOC are used to conditionally compile safemalloc or overwritten new/delete. -Define dummy symbol in my_new.cc in case -DUSE_MYSYS_NEW is not set. This avoids compiler/linker warnings about an essentially empty file being compiled.
* | | | | Fix embedded build on Windows.Vladislav Vaintroub2012-01-201-1/+1
| | | | |
* | | | | - Fix rpl_checksum test. Use basename of file in error messages, not the oVladislav Vaintroub2012-01-203-13/+56
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | nes prefixed with .\ or ./ - Add my_basename() to mysys. - Do not compile files that are not needed on Windows (my_addr_resolve, an d safemalloc related stuff it it is not used) Avoids linker warnings about compilation of essentially empty files.
* | | | | MDEV-69 SET optimizer_switch = REPLACE(...) causes ER_WRONG_VALUE_FOR_VARSergei Golubchik2012-01-171-31/+43
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | find_set() in typelib.c expected a zero-terminated string include/typelib.h: disable unused flags
* | | | | mysql-5.5 mergeSergei Golubchik2012-01-161-61/+274
|\ \ \ \ \
| * | | | | Bug#11761576 54082: HANDLE_SEGFAULT MAKES USE OF UNSAFE FUNCTIONSTor Didriksen2011-12-021-61/+273
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | handle_segfault is the signal handler code of mysqld. however, it makes calls to potentially unsafe functions localtime_r, fprintf, fflush. include/my_stacktrace.h: Add safe versions of itoa() write() and snprintf(). libmysqld/CMakeLists.txt: Move signal handler to separate file. mysys/stacktrace.c: Remove unsafe function calls. sql/CMakeLists.txt: Move signal handler to separate file. sql/mysqld.cc: Move signal handler to separate file. sql/set_var.h: Add missing #include dependency. sql/sys_vars.cc: Cleanup .h and .cc files. sql/sys_vars.h: Cleanup .h and .cc files.
* | | | | | 5.3 mergeSergei Golubchik2012-01-1327-28/+58
|\ \ \ \ \ \ | | |/ / / / | |/| | | |
| * | | | | Merge with 5.2.Michael Widenius2011-12-1150-105/+230
| |\ \ \ \ \ | | | |/ / / | | |/| | | | | | | | | no_error handling for select (used by INSERT ... SELECT) still needs to be fixed, but I will do that in a separate commit
| | * | | | Merge with MariaDB 5.1Michael Widenius2011-11-2450-108/+235
| | |\ \ \ \ | | | | |/ / | | | |/| |
| | | * | | Initail merge with MySQL 5.1 (XtraDB still needs to be merged)Michael Widenius2011-11-2150-105/+230
| | | |\ \ \ | | | | | |/ | | | | |/| | | | | | | Fixed up copyright messages.
| | | | * | Merge from mysql-5.1.58-releaseKaren Langford2011-07-061-11/+10
| | | | |\ \
| | | | * \ \ Updated/added copyright headersKent Boortz2011-07-037-798/+260
| | | | |\ \ \
| | | * | | | | Fix gcc 4.6 warnings about assigned but not used variables.unknown2011-10-271-3/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Fixed my_gethwaddr.c to allow compilation on Mac OS X.
| * | | | | | | Patch to get MariaDB to compile on CYGWIN; By Guenter KnaufMichael Widenius2011-12-022-2/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Increased number of locks in thr_lock (used only when testing) include/my_global.h: Patch for CYGWIN mysys/my_getsystime.c: Patch for CYGWIN mysys/thr_lock.c: Increase number of locks for testing
* | | | | | | | moved ha_maria::implicit_commit() calls aroundSergei Golubchik2012-01-061-2/+2
| | | | | | | |
* | | | | | | | fixes for opensolaris compilation failuresSergei Golubchik2012-01-051-1/+1
| | | | | | | |
* | | | | | | | Fix compile errorVladislav Vaintroub2011-12-271-1/+1
| | | | | | | |
* | | | | | | | Fixed lp:909051 Options --debug and --disable-debug are known but ambiguous ↵Michael Widenius2011-12-272-4/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | in RelWithDebInfo build Fixed memory leak printing when doing 'mysqld --version', 'mysqld --debug --help' and 'mysqld --debug --help --verbose' mysys/my_init.c: Moved checking if we should call DBUG_END() before my_thread_end() as otherwise we will not free DBUG variables and files. mysys/thr_lock.c: Fixed compiler warning sql/mysqld.cc: Fixed memory leaks when using mysqld --help and mysqld --version Added --debug as an option that works for all builds. For non debug builds we now get a warning. strings/dtoa.c: Fixed valgrind warning (c could contain data outside of the given string)
* | | | | | | | * remove WITH_DEBUG from CMakeLists.txtSergei Golubchik2011-12-151-17/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * MYSQL_MAINTAINER_MODE and SAFEMALLOC take values ON/OFF/AUTO (in all builds, in none, only in debug and platform dependent) * ./configure prefers RelWithDebInfo unless the user overrides
* | | | | | | | rename debug variable to debug_dbug, to make test pass in release buildsSergei Golubchik2011-12-151-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | (and to follow the naming conventons). keep old debug variable, but mark it as deprecated.
* | | | | | | | new configure option: NOT_FOR_DISTRIBUTIONSergei Golubchik2011-12-142-1/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | fix safemalloc to compile w/o libbfd. CMakeLists.txt: NOT_FOR_DISTRIBUTION option cmake/readline.cmake: simplify libedit/readline detection. never use bundled libedit. use system readline v6 only if NOT_FOR_DISTRIBUTION=1 configure.cmake: use libbfd only if NOT_FOR_DISTRIBUTION=1 include/my_stacktrace.h: link with libbfd even w/o safemalloc.
* | | | | | | | move safemalloc out of dbug.Sergei Golubchik2011-12-126-13/+377
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | remeber a real backtrace for every allocation. make safemalloc to tract C++ new/delete too. collateral fixes to make the test suite pass.
* | | | | | | | another backtrace resolver that prints source file name and line numberSergei Golubchik2011-12-113-5/+168
| | | | | | | |
* | | | | | | | win64 sysvar portability fixesSergei Golubchik2011-12-021-1/+1
| | | | | | | |
* | | | | | | | Fixed crashes found by application verifier:Vladislav Vaintroub2011-12-022-17/+20
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - leaking mutex in lf_hash_destroy - pthread_getspecific() before pthread_key_create() in my_thread_var_dbug() (called by static C++ object constructors called in sys_vars) - perfschema destroys mutexes that were not created.
* | | | | | | | small cleanupSergei Golubchik2011-11-281-3/+0
| | | | | | | |
* | | | | | | | mergedSergei Golubchik2011-11-271-1/+2
|\ \ \ \ \ \ \ \
| * | | | | | | | fix linking on Windows (iphlpapi missing)Vladislav Vaintroub2011-11-231-1/+2
| | | | | | | | |
* | | | | | | | | compilation fixesSergei Golubchik2011-11-271-2/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | cmake/maintainer.cmake: don't do -Werror just yet config.h.cmake: according to MSDN PSAPI_VERSION should be 1 in a portable application mysys/my_thr_init.c: first, reset THR_KEY_mysys, and then free dbug data, because dbug data are automacially created on the next dbug call, unless THR_KEY_mysys is null.
* | | | | | | | | compiler warnings/errorsSergei Golubchik2011-11-231-0/+4
|/ / / / / / / /
* | | | | | | | 5.3->5.5 mergeSergei Golubchik2011-11-2213-204/+287
|\ \ \ \ \ \ \ \ | |/ / / / / / /
| * | | | | | | Fix bug lp:869036unknown2011-11-171-0/+90
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Apart from the fix, the patch also adds few more unrelated test cases for partial matching, and fixes few typos. Analysis: This bug uncovered that partial matching via rowid intersection didn't handle the case when: - the left IN argument has some NULLs, - there are no non-null value matches, and there is no non-null column, - the subquery columns that are not covered with the NULLs in the left IN argument contain at least one row, such that it has NULL values in all columns where the left IN operand has no NULLs. In this case there is a partial match. In addition the analysis of the related code uncovered incorrect handling of few other related cases. Solution: The solution for the bug is to check if there exists a row with NULLs in all columns other than the ones having NULL in the let IN operand. The check is implemented via checking whether the bitmaps that store NULL information in class Ordered_key have a non-empty intersection for the relevant columns. The intersection itself is implemented via the function bitmap_exists_intersection() in my_bitmap.c.
| * | | | | | | merge 5.2Vladislav Vaintroub2011-10-192-2/+7
| |\ \ \ \ \ \ \
| | * \ \ \ \ \ \ merge from 5.1Vladislav Vaintroub2011-10-191-0/+3
| | |\ \ \ \ \ \ \ | | | |/ / / / / / | | |/| / / / / / | | | |/ / / / /
| | | * | | | | Fix endless loop in my_gethwaddr()Vladislav Vaintroub2011-10-191-0/+3
| | | | | | | |
| | * | | | | | Fixed wrong info message for mysqld --general-logMichael Widenius2011-10-161-2/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Fixed wrong parameter type for --general-log. Now one can enable it with --general-log= 1 | true | on Fixed that bool parameters can also take 'on' and 'off' as parameters. This is in line with the values assigned to them in mysqld. mysys/my_getopt.c: Fixed that bool parameters can also take 'on' and 'off' as parameters. sql/mysqld.cc: Fixed wrong info message for mysqld --general-log Fixed wrong parameter type for --general-log. Now one can enable it with --general-log= 1 | true | on
| * | | | | | | Fix of building on Mac OS.unknown2011-10-181-3/+2
| | | | | | | |
| * | | | | | | Compiler warning about assigned but not used variables fixed.unknown2011-10-181-5/+4
| | | | | | | |