summaryrefslogtreecommitdiff
path: root/mysys
Commit message (Collapse)AuthorAgeFilesLines
* MDEV-19897 Rename source code variable names from utf8 to utf8mb3Alexander Barkov2019-06-283-73/+73
|
* Windows - simplify code in my_getsystime.Vladislav Vaintroub2019-06-271-23/+7
| | | | | Do not load GetSystemTimePreciseAsFileTime() dynamically - it is available since Windows 8. Win7 is going out of support before 10.5 reaches GA.
* MDEV-19863 Add const to TYPELIB pointersAlexander Barkov2019-06-261-1/+1
|
* Merge 10.4 into 10.5Marko Mäkelä2019-06-202-1/+219
|\
| * Merge 10.3 into 10.4Marko Mäkelä2019-06-192-1/+219
| |\
| | * Merge 10.2 into 10.3Marko Mäkelä2019-06-192-1/+219
| | |\
| | | * Fix debug assert to match its intention.Vladislav Vaintroub2019-06-171-1/+1
| | | | | | | | | | | | | | | | | | | | Do not check my_errno before it is set, check errno instead. Also, do not check errno, if prior pread() did not fail.
| | | * MDEV-19750 mysql command wrong encodingVladislav Vaintroub2019-06-171-1/+217
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Restore the detection of default charset in command line utilities. It worked up to 10.1, but was broken by Connector/C. Moved code for detection of default charset from sql-common/client.c to mysys, and make command line utilities to use this code if charset was not specified on the command line.
| | | * Portability fix.Vladislav Vaintroub2019-06-171-1/+1
| | | |
| | | * MDEV-19055 Failures with temporary tables and AriaMichael Widenius2019-06-171-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | There was two separate problems: - Aria pagecache didn't properly handle re-reading of blocks that have given errors before (this triggered an assert) - temporary tables that where opened several times where not properly closed in ALTER, REPAIR or OPTIMIZE table Other things - Added a couple of asserts that will make it easier to find problems like this in the future.
* | | | Windows related cleanups, remove old code.Vladislav Vaintroub2019-06-181-136/+16
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - Do not scan registry to check if TCPIP is supported. - Do not read registry under HKEY_LOCAL_MACHINE\SOFTWARE\MySQL anymore. - Do not load threadpool function dynamically, it is available since Win7. - simplify win32_init_tcp_ip(), and return error of WSAStartup() fails. - Correct comment in my_parameter_handler()
* | | | MDEV-19773 : simplify implementation of Windows rwlockVladislav Vaintroub2019-06-181-117/+22
| | | | | | | | | | | | | | | | | | | | No need to do dynamic loading and fallbacks anymore. We can safely assume Windows 7, and availability of all SRWLock functions.
* | | | Merge 10.4 into 10.5Marko Mäkelä2019-06-131-1/+1
|\ \ \ \ | |/ / /
| * | | Merge 10.3 into 10.4Marko Mäkelä2019-06-121-1/+1
| |\ \ \ | | |/ /
| | * | Merge 10.2 into 10.3Marko Mäkelä2019-06-111-1/+1
| | |\ \ | | | |/
| | | * fix MDEV-18750: failed to flashback large-size binlog fileZicheng Huang2019-06-051-4/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | fix MDEV-18750: failed to flashback large-size binlog file fix mysqlbinlog flashback failure caused by reading io_cache without MY_FULL_IO flag fix MDEV-18750: mysqlbinlog flashback failure on large binlog
| | | * Only link mysys_ssl when required.Vladislav Vaintroub2019-06-031-2/+2
| | | | | | | | | | | | | | | | | | | | Do not use TARGET_LINK_LIBRARIES(mysys mysys_ssl), this means that mysys_ssl is linked to practically everything.
* | | | Merge 10.4 into 10.5Marko Mäkelä2019-05-291-1/+2
|\ \ \ \ | |/ / /
| * | | Merge 10.3 into 10.4Marko Mäkelä2019-05-291-1/+2
| |\ \ \ | | |/ /
| | * | Merge 10.2 into 10.3Marko Mäkelä2019-05-291-1/+2
| | |\ \ | | | |/
| | | * Merge 10.1 into 10.2Marko Mäkelä2019-05-281-1/+2
| | | |\
| | | | * Merge 5.5 into 10.1Marko Mäkelä2019-05-281-1/+2
| | | | |\
| | | | | * MDEV-17799 Add ASAN-poisoned redzones for MEM_ROOT and mem_heap_tEugene Kosov2019-05-201-1/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This patch is for MEM_ROOT only. In debug mode add 8 byte of poisoned memory before every allocated chunk. On the right of every chunk there will be either 1-7 trailing poisoned bytes, or next chunk's redzone, or poisoned non allocated memory or redzone of a malloc()ed buffer.
* | | | | | Merge 10.4 to 10.5Marko Mäkelä2019-05-271-11/+2
|\ \ \ \ \ \ | |/ / / / /
| * | | | | MDEV-18531 : Use WolfSSL instead of YaSSL as "bundled" SSL/encryption libraryVladislav Vaintroub2019-05-221-11/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - Add new submodule for WolfSSL - Build and use wolfssl and wolfcrypt instead of yassl/taocrypt - Use HAVE_WOLFSSL instead of HAVE_YASSL - Increase MY_AES_CTX_SIZE, to avoid compile time asserts in my_crypt.cc (sizeof(EVP_CIPHER_CTX) is larger on WolfSSL)
* | | | | | MDEV-16548 - Innodb fails to start on older kernels that don't support ↵Sergey Vojtovich2019-05-241-3/+10
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | F_DUPFD_CLOEXEC InnoDB duplicates file descriptor returned by create_temp_file() to workaround further inconsistent use of this descriptor. Use mysys file descriptors consistently for innobase_mysql_tmpfile(path). Mostly close it by appropriate mysys wrappers.
* | | | | | Merge 10.4 into 10.5Marko Mäkelä2019-05-23127-160/+156
|\ \ \ \ \ \ | |/ / / / /
| * | | | | Merge branch '10.3' into 10.4Oleksandr Byelkin2019-05-19127-160/+156
| |\ \ \ \ \ | | |/ / / /
| | * | | | Merge 10.2 into 10.3Marko Mäkelä2019-05-14127-127/+127
| | |\ \ \ \ | | | |/ / /
| | | * | | Merge 10.1 into 10.2Marko Mäkelä2019-05-13128-128/+128
| | | |\ \ \ | | | | |/ /
| | | | * | Merge branch '5.5' into 10.1Vicențiu Ciorbaru2019-05-11117-117/+117
| | | | |\ \ | | | | | |/
| | | | | * Update FSF AddressVicențiu Ciorbaru2019-05-11119-119/+119
| | | | | | | | | | | | | | | | | | | | | | | | * Update wrong zip-code
| | | | * | Update FSF addressVicențiu Ciorbaru2019-05-111-1/+1
| | | | | |
| | | | * | Merge branch '5.5' into 10.1Vicențiu Ciorbaru2019-05-1110-10/+10
| | | | |\ \ | | | | | |/
| | | | | * Follow-up to changing FSF addressVicențiu Ciorbaru2019-05-112-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Some places didn't match the previous rules, making the Floor address wrong. Additional sed rules: sed -i -e 's/Place.*Suite .*, Boston/Street, Fifth Floor, Boston/g' sed -i -e 's/Suite .*, Boston/Fifth Floor, Boston/g'
| | | | | * Update FSF addressMichal Schorm2019-05-1010-11/+11
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This commit is based on the work of Michal Schorm, rebased on the earliest MariaDB version. Th command line used to generate this diff was: find ./ -type f \ -exec sed -i -e 's/Foundation, Inc., 59 Temple Place, Suite 330, Boston, /Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, /g' {} \; \ -exec sed -i -e 's/Foundation, Inc. 59 Temple Place.* Suite 330, Boston, /Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, /g' {} \; \ -exec sed -i -e 's/MA.*.....-1307.*USA/MA 02110-1335 USA/g' {} \; \ -exec sed -i -e 's/Foundation, Inc., 59 Temple/Foundation, Inc., 51 Franklin/g' {} \; \ -exec sed -i -e 's/Place, Suite 330, Boston, MA.*02111-1307.*USA/Street, Fifth Floor, Boston, MA 02110-1335 USA/g' {} \; \ -exec sed -i -e 's/MA.*.....-1307/MA 02110-1335/g' {} \;
| | * | | | Merge branch '10.2' into 10.3Oleksandr Byelkin2019-05-121-25/+23
| | |\ \ \ \ | | | |/ / /
| | | * | | Merge branch '10.1' into 10.2Oleksandr Byelkin2019-05-041-25/+23
| | | |\ \ \ | | | | |/ /
| | | | * | cleanup: cosmetic fixesSergei Golubchik2019-04-241-1/+1
| | | | | |
| | | | * | cleanup: make TREE copyableSergei Golubchik2019-04-241-24/+22
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | move per-object TREE::null_element to be one global static null_element.
| | | | * | Remove unused declarationsMarko Mäkelä2019-04-031-11/+0
| | | | | |
| | * | | | MDEV-17845 Extreme high open file limit usedSergei Golubchik2019-05-073-8/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | SHOW STATUS LIKE 'Open_files' was showing 18446744073709551615 my_file_opened used statistic_increment/statistic_decrement, so one-off errors were normal and expected. But they confused monitoring tools, so let's move my_file_opened to use atomics.
* | | | | | Make it trivial to get stack traces from external programs.Monty2019-05-232-27/+86
|/ / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | To get a stacktrace in a program like aria_chk, one only have to do: #include <my_stacktrace.h> call my_init_stacktrace(1) in main().
* | | | | MDEV-19235 MariaDB Server compiled for 128 Indexes crashes at startupbb-10.4-wlad-MDEV-19235Vladislav Vaintroub2019-05-091-11/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | With MAX_INDEXIES=64(default), key_map=Bitmap<64> is just a wrapper around ulonglong and thus "trivial" (can be bzero-ed, or memcpy-ed, and stays valid still) With MAX_INDEXES=128, key_map = Bitmap<128> is not a "trivial" type anymore. The implementation uses MY_BITMAP, and MY_BITMAP contains pointers which make Bitmap invalid, when it is memcpy-ed/bzero-ed. The problem in 10.4 is that there are many new key_map members, inside TABLE or KEY, and those are often memcopied and bzeroed The fix makes Bitmap "trivial", by inlining most of MY_BITMAP functionality. pointers/heap allocations are not used anymore.
* | | | | Fixes for atomic writes on Windows.Vladislav Vaintroub2019-05-061-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Windows does atomic writes, as long as they are aligned and multiple of sector size. this is documented in MSDN. Fix innodb.doublewrite test to always use doublewrite buffer, (even if atomic writes are autodetected)
* | | | | MDEV-15584: Do not invoke open(dir=NULL)Marko Mäkelä2019-04-081-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | On Linux, <fcntl.h> declares open(2) as having a nonnull first argument. In GCC 8, if a function with nonnull argument is called, that argument will be silently assumed to nonnull along the same code path. Hence, later nullness checks for this argument can be optimized away. Similar to MDEV-15587, the fix is to ensure that functions with nonnull arguments are not being called with NULL. This bug caused a crash in mysqlbinlog, which was invoking create_temp_file() with the argument dir=NULL. The affected test was binlog.binlog_mysqlbinlog_base64. It would display the following message before crashing: mysqlbinlog: O_TMPFILE is not supported on (null) (disabling future attempts) Segmentation fault
* | | | | MDEV-19117 Don't keep binary log index file locked during show binary logsMonty2019-04-011-3/+10
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | On some systems with 10,000+ binlogs, show binary logs could block log rotation for more than 10 seconds. This patch fixes this by first caching all binary log names and releases all mutexes while calculating the sizes of the binary logs. Other things: - Ensure that reinit_io_cache() sets end_of_file when moving to read_cache. This ensures that external changes of the underlying file is known to the cache. - get_binlog_list() is made more efficent and show_binlogs() is changed to call get_binlog_list() Reviewed by Andrei Elkin
* | | | | Merge branch '10.3' into 10.4Oleksandr Byelkin2019-02-214-32/+98
|\ \ \ \ \ | |/ / / /
| * | | | Merge 10.2 into 10.3Marko Mäkelä2019-02-194-32/+98
| |\ \ \ \ | | |/ / /
| | * | | MDEV-18204 - fixupVladislav Vaintroub2019-02-191-1/+2
| | | | |