summaryrefslogtreecommitdiff
path: root/include/my_global.h
Commit message (Collapse)AuthorAgeFilesLines
* Add checking of correct likely/unlikelyMichael Widenius2018-05-071-10/+30
| | | | | | | | | | To use: - Compile with -DUSE_MY_LIKELY - Change (with replace) all likely/unlikely to my_likely/my_/unlikely replace likely my_likely unlikely my_unlikely -- *c *h - Start mysqld with -T - run some test - When mysqld has shut down cleanely, report will be on stderr
* Fix a lot of compiler warnings found by -WunusedMonty2018-04-261-3/+3
|
* Misc. typosluz.paz2018-04-051-2/+2
| | | | Found via `codespell -i 3 -w --skip="./debian/po" -I ../mariadb-server-word-whitelist.txt ./cmake/ ./debian/ ./Docs/ ./include/ ./man/ ./plugin/ ./strings/`
* MDEV-8743: fopen mode e (glibc only) to prevent galera SST scripts accessing ↵Daniel Black2018-03-051-0/+5
| | | | | | | | | server files For RemoteDatafile::read_link_file and buffer poool dumps Note: STR_O_CLOEXEC needs to be at the end of the fopen otherwise fopen will return EINVAL.
* Merge bb-10.2-ext into 10.3Marko Mäkelä2018-02-151-0/+8
|\
| * Merge branch 'github/10.1' into 10.2Sergei Golubchik2018-02-061-0/+8
| |\
| | * Merge branch 'github/10.0' into 10.1Sergei Golubchik2018-02-021-0/+8
| | |\
| | | * Merge remote-tracking branch '5.5' into 10.0Vicențiu Ciorbaru2018-01-241-0/+8
| | | |\
| | | | * Fix compilation without dlopenSergei Golubchik2018-01-221-2/+2
| | | | |
| | | | * Add dummy defintion for Dl_info in case we're missing dladdrVicențiu Ciorbaru2018-01-191-0/+4
| | | | |
| | | | * MDEV-14229: Stack trace is not resolved for shared objectsVicențiu Ciorbaru2018-01-191-0/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Resolving a stacktrace including functions in dynamic libraries requires us to look inside the libraries for the symbols. Addr2line needs to be started with the correct binary for each address on the stack. To do this, figure out which library it is using dladdr, then if the addr2line binary was started with a different binary, fork it again with the correct one. We only have one addr2line process running at any point during the stacktrace resolving step. The maximum number of forks for addr2line should generally be around 6. One for server stacktrace code, one for plugin code, one when going back into server code, one for pthread library, one for libc, one for the _start function in the server. More can come up if plugin calls server function which goes back to a plugin, etc.
* | | | | Minor spelling fixes in code comments, docs and outputOtto Kekäläinen2018-01-121-4/+4
| | | | | | | | | | | | | | | | | | | | | | | | | This commit does not touch any variable names or any other actual code, and thus should not in any way affect how the code works.
* | | | | Merge branch 'bb-10.2-ext' into 10.3Sergei Golubchik2017-08-261-4/+3
|\ \ \ \ \ | |/ / / /
| * | | | Merge branch '10.1' into 10.2Sergei Golubchik2017-08-171-4/+3
| |\ \ \ \ | | |/ / /
| | * | | Merge branch '10.0' into 10.1Sergei Golubchik2017-08-081-4/+3
| | |\ \ \ | | | |/ /
| | | * | Merge remote-tracking branch 'origin/5.5' into 10.0Vicențiu Ciorbaru2017-07-251-4/+3
| | | |\ \ | | | | |/
| | | | * Merge remote-tracking branch 'mysql/5.5' into 5.5Sergei Golubchik2017-07-181-0/+1
| | | | |\
| | | | | * BUG#24807826: UINT3KORR SHOULD STOP READING FOUR INSTEAD OFKarthik Kamath2017-03-091-11/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | THREE BYTES ON X86 Analysis: ========= The macro uint3korr reads 4 bytes of data instead of 3 on on x86 machines. Multiple definitions were created for this macro for optimization in WIN32. The idea was to optimize reading of 3 byte ints by reading an ordinary int and masking away the unused byte. However this is an undefined behavior. It will be an issue unless users are aware of allocating an extra byte for using this macro. Fix: ==== Removing the definition which reads 4 bytes of data. The only definition of this macro would now read just 3 bytes of data thus prohibiting the usage of an extra byte. Note: ===== This is a backport of Patches #5 and #6 for Bug#17922198.
| | | | | * Bug#16729109: FIX COMPILATION WARNINGS WITH GCC 4.8Tor Didriksen2013-06-141-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Backport to 5.5 (external Bug#69407 Build warnings with mysql)
| | | | | * Fix for Bug 16395495 - OLD FSF ADDRESS IN GPL HEADERMurthy Narkedimilli2013-03-191-1/+1
| | | | | |
| | | | | * Updated/added copyright headersMySQL Build Team2012-02-161-1/+1
| | | | | |\
| | | | | | * Updated/added copyright headersKent Boortz2011-07-031-2/+2
| | | | | | |\
| | | | | | | * Bug#11900714 REMOVE LGPL LICENSED FILES IN MYSQL 5.1Magne Mahre2011-03-281-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The LGPL license is used in some legacy code, and to adhere to current licensing polity, we remove those files that are no longer used, and reorganize the remaining LGPL code so it will be GPL licensed from now on. Note: This patch only removed LGPL licensed files in MySQL 5.1, and is the second of a set of patches to remove LGPL from all trees. (See Bug# 11840513 for details)
| | | | | * | | Bug #11754014: 45549: udf plugin_dir path separator inconsistency Georgi Kodinov2012-01-161-3/+23
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | and cryptic error 1126 message The problem was that dlopen() related code was using just a subset of the path normalization routines used in other places. Fixed the expansion of the pre-dlopen() behavior for plugins and UDFs to use a platform-dependent consistent encoding of the paths. Fixed the error dlopen() error handling to take the correct error message and strip off the trailing newline character(s). Fixed tests to do a platform independent replace of directories and to account for the traling slash.
| | | | | * | | WL#5710 : mysql_plugin - enable or disable pluginsChuck Bell2011-07-191-0/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This patch adds a new client utility that enables or disables plugin features. The utility disables or enables a plugin using values (name, soname, and symbols) provided via a configuration file by the same name. For example, to ENABLE the daemon_example plugin, the utility will read the daemon_example.ini configuration file and use the values contained to enable or disable the plugin.
| | | | | * | | Updated/added copyright headersKent Boortz2011-07-041-1/+2
| | | | | |\ \ \
| | | | | * \ \ \ Updated/added copyright headersKent Boortz2011-06-301-1/+1
| | | | | |\ \ \ \ | | | | | | |/ / / | | | | | |/| / / | | | | | | |/ /
| | | | | | * | Updated/added copyright headersKent Boortz2011-06-301-2/+4
| | | | | | |\ \ | | | | | | | |/ | | | | | | |/|
| | | | | | | * Updated/added copyright headersKent Boortz2011-06-301-2/+3
| | | | | | | |
| | | | | * | | Remove some leftovers from the removal of the gethostbyname wrappers.Davi Arnaut2011-04-131-3/+0
| | | | | | | |
| | | | | * | | Bug#11933945 REMOVE LGPL LICENSED FILES IN MYSQL 5.5Magne Mahre2011-03-291-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The LGPL license is used in some legacy code, and to adhere to current licensing polity, we remove those files that are no longer used, and reorganize the remaining LGPL code so it will be GPL licensed from now on. Note: This patch only removed LGPL licensed files in MySQL 5.5 and later, and is the third of a set of patches to remove LGPL from all trees. (See Bug# 11840513 for details)
| | | | | * | | Remove last traces of HAVE_NDBCLUSTER_DB define - it has not had an effect ↵Magnus Blåudd2011-02-211-1/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | in a long time and is just confusing. At the same time backport the removal of OPT_NDB_CONNECTSTRING and OPT_NDBCLUSTER values from "enum options_client"
| | | | | * | | Remove configuration preprocessor symbols 'THREAD'Magne Mahre2011-01-111-21/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | and 'THREAD_SAFE_CLIENT'. As of MySQL 5.5, we no longer support non-threaded builds. This patch removes all references to the obsolete THREAD and THREAD_SAFE_CLIENT preprocessor symbols. These were used to distinguish between threaded and non-threaded builds.
| | | | | * | | Bug #58246: INSTALL PLUGIN not secure & crashableMats Kindahl2010-12-021-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | Adding symbol FN_DIRSEP to Windows as well.
| | | | | * | | Merging patch for BUG#58246 into mysql-5.5-bugteam.Mats Kindahl2010-12-011-0/+1
| | | | | |\ \ \ | | | | | | |/ /
| | | | | | * | BUG#58246: INSTALL PLUGIN not secure & crashableMats Kindahl2010-12-011-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | When installing plugins, there is a missing check for slash (/) in the path on Windows. Note that on Windows, both / and \ can be used to separate directories. This patch fixes the issue by: - Adding a FN_DIRSEP symbol for all platforms consisting of a string of legal directory separators. - Adding a charset-aware version of strcspn(). - Adding a check_valid_path() function that uses my_strcspn() to check if any FN_DIRSEP character is in the supplied string. - Using the check_valid_path() function in sql_plugin.cc and sql_udf.cc (which means replacing the existing test there).
| | | | | * | | fix compile error - #if/#endif mismatchVladislav Vaintroub2010-10-051-0/+1
| | | | | | | |
| | | | | * | | More fixes after WL1054 push:Vladislav Vaintroub2010-10-041-0/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - fix ~20 warnings about redefinition of HAVE_DLOPEN This was caused by new ADD_DEFINITIONS(-DHAVE_DLOPEN) inside client library CMakeLists.txt - fix dlerror() message which ("static build?" ) which is only confusing on Windows, there is no "static build"
| | | | | * | | mergeGeorgi Kodinov2010-10-041-1/+0
| | | | | |\ \ \
| | | | | | * | | Bug#57210: remove pstackDavi Arnaut2010-10-041-1/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Quoting from the bug report: The pstack library has been included in MySQL since version 4.0.0. It's useless and should be removed. Details: According to its own documentation, pstack only works on Linux on x86 in 32 bit mode and requires LinuxThreads and a statically linked binary. It doesn't really support any Linux from 2003 or later and doesn't work on any other OS.
| | | | | * | | | WL#1054: Pluggable authentication supportGeorgi Kodinov2010-08-091-1/+11
| | | | | |/ / / | | | | | | | | | | | | | | | | | | | | | | | | Merged the implementation to a new base tree.
| | | | | * | | WL#5498: Remove dead and unused source codeDavi Arnaut2010-07-231-20/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Remove wrappers around inline -- static inline is used without wrappers throughout the source code. We rely on the compiler or linker to eliminate unused static functions.
| | | | | * | | WL#5498: Remove dead and unused source codeDavi Arnaut2010-07-231-26/+14
| | | | | | | | | | | | | | | | | | | | | | | | Remove workarounds for ancient systems.
| | | | | * | | WL#5498: Remove dead and unused source codeDavi Arnaut2010-07-231-173/+3
| | | | | | | | | | | | | | | | | | | | | | | | Remove unused macros or macro which are always defined.
| | | | | * | | WL#5498: Remove dead and unused source codeDavi Arnaut2010-07-231-2/+0
| | | | | | | | | | | | | | | | | | | | | | | | Remove the obsolete and buggy bmove512, use memcpy instead.
| | | | | * | | WL#5498: Remove dead and unused source codeDavi Arnaut2010-07-231-18/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Remove the ancient and dead raid code. By now, even the server side has been removed.
| | | | | * | | WL#5498: Remove dead and unused source codeDavi Arnaut2010-07-231-1/+0
| | | | | | | | | | | | | | | | | | | | | | | | Remove Windows related files which aren't used anymore.
| | | | | * | | Merge of mysql-trunk-bugfixing into mysql-trunk-merge.Davi Arnaut2010-07-151-91/+1
| | | | | |\ \ \
| | | | | | * | | WL#5486: Remove code for unsupported platformsDavi Arnaut2010-07-151-25/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | Remove QNX specific code.
| | | | | | * | | WL#5486: Remove code for unsupported platformsDavi Arnaut2010-07-151-19/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | Remove MS-DOS specific code.