summaryrefslogtreecommitdiff
path: root/mysys
Commit message (Collapse)AuthorAgeFilesLines
* Bug#10608 mysqladmin breaks on "database" variable in my.cnfmsvensson@neptunus.(none)2006-11-101-1/+5
| | | | | - Add printout of "Warning" or "Note" for non error messages in default_reporter - Add test for the above in new mysqladmin.test
* Fix merge collision.cmiller@zippy.cornsilk.net2006-11-021-4/+4
|
* Merge bk-internal.mysql.com:/home/bk/mysql-4.1cmiller@zippy.cornsilk.net2006-11-0211-42/+217
|\ | | | | | | into zippy.cornsilk.net:/home/cmiller/work/mysql/mysql-4.1-maint
| * Bug#22828 complementary patch:thek@kpdesk.mysql.com2006-11-021-1/+1
| | | | | | | | - 'false' not defined in C, use FALSE instead.
| * Merge kpdesk.mysql.com:/home/thek/dev/bug22828/my41-bug22828thek@kpdesk.mysql.com2006-11-014-20/+153
| |\ | | | | | | | | | into kpdesk.mysql.com:/home/thek/dev/mysql-4.1-maint
| | * Bug#22828 _my_b_read() ignores return values for my_seek() callsthek@kpdesk.mysql.com2006-10-314-20/+153
| | | | | | | | | | | | | | | | | | | | | | | | - Because my_seek actually is capable of returning an error code we should exploit that in the best possible way. - There might be kernel errors or other errors we can't predict and capturing the return value of all system calls gives us better understanding of possible errors.
| * | Merge siva.hindu.god:/usr/home/tim/m/bk/b4053/41tsmith/tim@siva.hindu.god2006-10-167-22/+64
| |\ \ | | | | | | | | | | | | into siva.hindu.god:/usr/home/tim/m/bk/tmp/mrgOct16/41
| | * \ Merge siva.hindu.god:/usr/home/tim/m/bk/tmp/40tsmith/tim@siva.hindu.god2006-09-146-14/+56
| | |\ \ | | | | | | | | | | | | | | | into siva.hindu.god:/usr/home/tim/m/bk/tmp/41
| | | * | Bug #4053: too many of "error 1236: 'binlog truncated in the middle of ↵tsmith/tim@siva.hindu.god2006-09-146-14/+56
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | event' from master" - Fix my_read/my_write to handle return values from read/write correctly - Add debugging 'deprecated function' warning to my_lread/my_lwrite - Add debugging 'error, read/write interrupt not handled' warning to my_quick_read/my_quick_write There is no test case associated with these changes. However, this is a conservative change, and no repeatable test case is available.
| | * | | Bug #4053: too many of "error 1236: 'binlog truncated in the middle of ↵tsmith/tim@siva.hindu.god2006-09-141-6/+9
| | | |/ | | |/| | | | | | | | | | | | | | | | | event' from master" - Detect read failure in my_read_charset_file
* | | | Merge chilla.local:/home/mydev/mysql-4.1-bug8283istruewing@chilla.local2006-10-091-82/+500
|\ \ \ \ | |/ / / |/| | | | | | | into chilla.local:/home/mydev/mysql-4.1-bug8283-one
| * | | Bug#8283 - OPTIMIZE TABLE causes data lossistruewing@chilla.local2006-10-091-82/+500
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | OPTIMIZE TABLE with myisam_repair_threads > 1 performs a non-quick parallel repair. This means that it does not only rebuild all indexes, but also the data file. Non-quick parallel repair works so that there is one thread per index. The first of the threads rebuilds also the new data file. The problem was that all threads shared the read io cache on the old data file. If there were holes (deleted records) in the table, the first thread skipped them, writing only contiguous, non-deleted records to the new data file. Then it built the new index so that its entries pointed to the correct record positions. But the other threads didn't know the new record positions, but put the positions from the old data file into the index. The new design is so that there is a shared io cache which is filled by the first thread (the data file writer) with the new contiguous records and read by the other threads. Now they know the new record positions. Another problem was that for the parallel repair of compressed tables a common bit_buff and rec_buff was used. I changed it so that thread specific buffers are used for parallel repair. A similar problem existed for checksum calculation. I made this multi-thread safe too.
* | | | Merge svojtovich@bk-internal.mysql.com:/home/bk/mysql-4.1svoj@mysql.com/april.(none)2006-10-021-1/+3
|\ \ \ \ | | | | | | | | | | | | | | | into mysql.com:/home/svoj/devel/mysql/merge/mysql-4.1-engines
| * | | | bug #12620 (UTF-8 indexing causes ER_NO_KEYFILE error)holyfoot/hf@mysql.com/deer.(none)2006-09-041-1/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The problem is that on some Mac OS X-es the file writing/reading call with zero bytes to read/write returns error. So here i try to eliminate that kinds of calls.
* | | | | BUG#21617 - crash when selecting from merge table with inconsistent indexessvoj@mysql.com/april.(none)2006-09-281-29/+19
|/ / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | Crash may happen when selecting from a merge table that has underlying tables with less indexes than in a merge table itself. If number of keys in merge table is not bigger than requested key number, return error.
* | | | Merge zippy.cornsilk.net:/home/cmiller/work/mysql/bug04053/my41-bug04053cmiller@zippy.cornsilk.net2006-08-311-22/+25
|\ \ \ \ | | | | | | | | | | | | | | | into zippy.cornsilk.net:/home/cmiller/work/mysql/mysql-4.1-maint
| * \ \ \ Merge zippy.cornsilk.net:/home/cmiller/work/mysql/bug04053/my40-bug04053cmiller@zippy.cornsilk.net2006-08-301-22/+25
| |\ \ \ \ | | |_|/ / | |/| | | | | | | | into zippy.cornsilk.net:/home/cmiller/work/mysql/bug04053/my41-bug04053
| | * | | Bug#4053: too many of "error 1236: 'binlog truncated in the middle of \cmiller@zippy.cornsilk.net2006-08-301-22/+25
| | | |/ | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | event' from master" Since there is no repeatable test case, and this is obviously wrong, this is the most conservative change that might possibly work. The syscall read() wasn't checked for a negative return value for an interrupted read. The kernel sys_read() returns -EINTR, and the "library" layer maps that to return value of -1 and sets errno to EINTR. It's impossible (on Linux) for read() to set errno EINTR without the return value being -1 . So, if we're checking for EINTR behavior, we should not require that the return value be zero.
| | * | Bug#12920 - key_read_requests counter appears to re-setingo@mysql.com2005-09-141-5/+7
| | | | | | | | | | | | | | | | Enlarged the counter variables to ulonglong.
* | | | BUG#21206: memory corruption when too many cursors are opened at oncekroki/tomash@moonlight.intranet2006-07-261-1/+1
|/ / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Too many cursors (more than 1024) could lead to memory corruption. This affects both, stored routines and C API cursors, and the threshold is per-server, not per-connection. Similarly, the corruption could happen when the server was under heavy load (executing more than 1024 simultaneous complex queries), and this is the reason why this bug is fixed in 4.1, which doesn't support cursors. The corruption was caused by a bug in the temporary tables code, when an attempt to create a table could lead to a write beyond allocated space. Note, that only internal tables were affected (the tables created internally by the server to resolve the query), not tables created with CREATE TEMPORARY TABLE. Another pre-condition for the bug is TRUE value of --temp-pool startup option, which, however, is a default. The cause of a bug was that random memory was overwritten in bitmap_set_next() due to out-of-bound memory access.
* | | Fixed include file usagemonty@mysql.com2006-06-301-0/+1
| |/ |/| | | | | | | hp_test2 now works again Fixed wrong cast, which caused problems with gcc 4.0 and floats in prepared statements (Bug #19694)
* | Bug#15328 Segmentation fault occured if my.cnf is invalid for escape sequencemsvensson@neptunus.(none)2006-05-111-1/+3
| | | | | | | | | | - Check that length of value is longer than 1 before decrementing length by 2. - Backport from 5.0, make it possible to use my_print_defaults in tests
* | Fixed bug #19079.igor@rurik.mysql.com2006-04-181-5/+7
| | | | | | | | | | | | The bug caused a reported index corruption in the cases when key_cache_block_size was not a multiple of myisam_block_size, e.g. when key_cache_block_size=1536 while myisam_block_size=1024.
* | Merge mysql.com:/home/mydev/mysql-4.1ingo@mysql.com2006-03-041-28/+75
|\ \ | | | | | | | | | into mysql.com:/home/mydev/mysql-4.1-bug11527
| * | Bug#11527 - Setting myisam_repair_threads to >1 leads to corruptioningo@mysql.com2006-02-161-28/+75
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | A wrong cast led to numeric overflow for data files greater than 4GB. The parallel repair assumed end of file after reading the amount of data that the file was bigger than 4GB. It truncated the data file and noted the number of records it found so far in the index file header as the number of rows in the table. Removing the cast fixed the problem. I added some cosmetic changes too. The normal repair worked because it uses a different function to read from the data file.
* | | Merge svlasenko@bk-internal.mysql.com:/home/bk/mysql-4.1SergeyV@selena.2006-02-131-0/+1
|\ \ \ | |/ / |/| | | | | into selena.:H:/MYSQL/src/#06536-mysql-4.1
| * | Fixes bug #6536. When MyODBC or any other client do my_init()/my_end() SergeyV@selena.2005-12-011-0/+1
| | | | | | | | | | | | | | | | | | several times, it was causing corruption of charset data stored in once_mem_pool. my_end() deallocated once_mem pool, but did not put a flag that charsets have to be reloaded. The fix addresses this problem.
* | | A fix for Bug#13944 "libmysqlclient exporting sha1_result function":konstantin@mysql.com2006-01-111-8/+8
| | | | | | | | | | | | rename sha1_* to mysql_sha1_*
* | | A fix for Bug#7209 "Client error with "Access Denied" on updates konstantin@mysql.com2006-01-042-29/+40
|/ / | | | | | | | | | | | | | | | | | | | | when high concurrency": remove HASH::current_record and make it an external search parameter, so that it can not be the cause of a race condition under high concurrent load. The bug was in a race condition in table_hash_search, when column_priv_hash.current_record was overwritten simultaneously by multiple threads, causing the search for a suitable grant record to fail. No test case as the bug is repeatable only under concurrent load.
* | Merge mysql.com:/home/jimw/my/mysql-4.1-12925jimw@mysql.com2005-10-251-3/+3
|\ \ | | | | | | | | | into mysql.com:/home/jimw/my/mysql-4.1-clean
| * | Fix incorrect casts in my_getopt code that capped the maximum of longlongjimw@mysql.com2005-10-251-3/+3
| | | | | | | | | | | | options to the wrong value. (Bug #12925)
* | | Added more tests for new UPDATE ... ORDER BY ... LIMIT optimizationmonty@mysql.com2005-10-251-11/+3
| | |
* | | Merge spetrunia@bk-internal.mysql.com:/home/bk/mysql-4.1sergefp@mysql.com2005-10-231-2/+109
|\ \ \ | | | | | | | | | | | | into mysql.com:/home/psergey/mysql-4.1-nulls-stats-r2
| * | | BUG#9622: post-review-fixes: better commentssergefp@mysql.com2005-10-231-7/+19
| | | |
| * | | BUG#9622, stage 2, work together with fix for BUG#12232:sergefp@mysql.com2005-10-211-2/+97
| |/ / | | | | | | | | | | | | added "nulls_ignored" index statistics collection method for MyISAM tables. (notification trigger: this is about BUG#9622).
* | | charset.c:bar@mysql.com2005-10-201-12/+19
| | | | | | | | | | | | | | | | | | | | | | | | | | | Bug#13238 mysqldump and mysqladmin hangs Avoid recursion into init_available_charsets. Serg's version didn't work for me: I got double mutex locking. Pushing this version instead (It was approved by Serg anyway)
* | | Merge mysql.com:/home/alexi/mysql-4.1aivanov@mysql.com2005-10-191-2/+13
|\ \ \ | | | | | | | | | | | | into mysql.com:/home/alexi/dev/mysql-4.1-4375
| * | | Fix for BUG#4375: Windows specific directories are copiedaivanov@mysql.com2005-10-191-2/+13
| |/ / | | | | | | | | | | | | | | | | | | | | | | | | | | | during replication. Modified my_dir(). Now this function skips hidden and system files which sometimes are created by Windows. NOTE. The fix is similar to the previuos one (05 July 2004) except for correct setting of the 'attrib' variable value (within the previous fix this variable was left uninitialized when my_dir() was called with My_flags & MY_WANT_STAT == 0).
* | | Fix wait_timeout (and kill) handling on Mac OS X by cleaning up howjimw@mysql.com2005-10-112-34/+7
|/ / | | | | | | | | signal handlers are set up, the blocking flags for sockets are set, and which thread-related functions are used. (Bug #8731)
* | Merge neptunus.(none):/home/msvensson/mysql/mysql-4.1msvensson@neptunus.(none)2005-09-271-6/+19
|\ \ | | | | | | | | | into neptunus.(none):/home/msvensson/mysql/fix_mysqltest/my41-fix_mysqltest
| * | Bug #7037 Test "mysql_protocols" fails on Solaris 8 + 9 /x86msvensson@neptunus.(none)2005-09-231-2/+7
| | |
| * | BUG#7037 MySQL Bugs: #7037: Test "mysql_protocols" fails on Solaris 8 + 9 /x86msvensson@neptunus.(none)2005-09-231-6/+14
| | |
* | | Merge svlasenko@bk-internal.mysql.com:/home/bk/mysql-4.1SergeyV@selena.2005-09-201-0/+217
|\ \ \ | | | | | | | | | | | | into selena.:H:/MYSQL/src/#12929-mysql-4.1
| * | | Small update for lock functions used in my_cgets()SergeyV@selena.2005-09-201-20/+91
| | | |
| * | | Fixes bug #12929. Uses my_cgets instead of _cgets function, thus eliminatingSergeyV@selena.2005-09-161-0/+146
| |/ / | | | | | | | | | a restriction to 255 chars for editable buffer.
* | | Bug#12920 - key_read_requests counter appears to re-setingo@mysql.com2005-09-141-6/+7
|/ / | | | | | | After merge fix.
* | Fix handling of filenames that start the same as reserved filenamesjimw@mysql.com2005-08-311-1/+1
| | | | | | | | on Windows. (Bug #12325)
* | Merge bk-internal.mysql.com:/home/bk/mysql-4.1monty@mishka.local2005-08-251-19/+0
|\ \ | | | | | | | | | into mishka.local:/home/my/mysql-4.1
| * | Remove function that was accidently added backmonty@mishka.local2005-08-251-19/+0
| | |
* | | mergedserg@sergbook.mysql.com2005-08-251-1/+14
|\ \ \ | |/ / |/| |