summaryrefslogtreecommitdiff
path: root/mysys/mf_iocache.c
Commit message (Collapse)AuthorAgeFilesLines
* Several fixes revelaled by Intel compiler.jani@a193-229-222-105.elisa-laajakaista.fi2005-09-231-2/+2
|
* fixes for windows 64-bit compiler warningsgeorg@lmy002.wdf.sap.corp2005-06-131-1/+1
|
* Fix change to allow FIFO as log. (Bug #8271)jimw@mysql.com2005-05-191-1/+3
|
* Avoid doing a seek when first setting up the IO cache for a file,jimw@mysql.com2005-05-131-1/+1
| | | | which allows a FIFO to be used for the non-binary logs. (Bug #8271)
* Fixed Bug#8922.jani@ua141d10.elisa.omakaista.fi2005-03-081-12/+4
| | | | Reverted Jim's patch.
* Clean up mergejimw@mysql.com2005-03-071-4/+12
|\
| * Avoid calls to my_seek() and my_tell() on log files so thatjimw@mysql.com2005-03-021-4/+12
| | | | | | | | | | non-seekable files like FIFOs can be used for logs other than the binlog. (Bug #8271)
* | Merge with 4.1monty@mysql.com2005-01-151-14/+35
|\ \
| * \ Mergemonty@mysql.com2005-01-151-14/+35
| |\ \ | | |/
| | * Fixed possible access to unintialized memory in filesort when using many buffersmonty@mysql.com2005-01-151-14/+35
| | |
* | | Changed interface for my_strntod() to make it more general and more portablemonty@mysql.com2005-01-151-6/+7
|/ /
* | Changed %lx -> 0x%lx (for easier comparison of debug files)monty@mysql.com2004-08-231-2/+2
| | | | | | | | | | Cosmetic cleanups Don't call 'delete_elements' on copy_funcs as this causes elements to be freed twice
* | assert.h needed for my_dbug.h now is included in my_dbug.h, where it for konstantin@mysql.com2004-06-101-1/+0
| | | | | | | | | | some reason wasn't included before. A lot of files cleaned up from #include <assert.h>
* | Fix skipp -> skip once and for all.paul@kite-hub.kitebird.com2004-06-031-2/+2
| | | | | | | | (Note: This affects only comments, not variable names.)
* | WL#775 "Add status variable identifying binlog_cache_size shortage"dlenev@jabberwock.localdomain2004-04-021-0/+2
| | | | | | | | | | | | | | | | Added two status variables: binlog_cache_use - counts number of transactions that used somehow transaction temporary binary log. binlog_cache_disk_use - counts number of transactions that required disk I/O for storing info in this this binary log.
* | Merge with 4.0monty@mysql.com2004-03-251-1/+2
|\ \ | |/
| * shared IO_CACHE: protection against remove_io_share in a wrong timeserg@serg.mylan2004-03-251-1/+2
| | | | | | | | bug#3134
* | merge with 4.0monty@mysql.com2004-03-161-3/+3
|\ \ | |/
| * Fixed memory leak in DROP DATABASE when using RAID tables (Bug #2882)monty@mysql.com2004-03-101-3/+3
| |
* | just tried to find all 'skipp' and replace it with 'skip'.ram@gw.mysql.r18.ru2004-02-021-1/+1
| |
* | Fixed Bug#2123, mysqld segmentation faulted when it tried tojani@rhols221.adsl.netsonic.fi2004-01-151-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | open a file that already existed. The problem was that end_io_cache() was called even if init_io_cache() was not. This affected both OUTFILE and DUMPFILE (both fixed). Sometimes wrongly aligned pointer was freed, sometimes mysqld core dumped. Other problem was that select_dump::send_error removed the dumpfile, even if it was created by an earlier run, or by some other program, if the file permissions just permitted it. Fixed it so that the file will only be deleted, if an error occurred, but the file was created by mysqld just a moment ago, in that thread. On the other hand, select_export did not handle the corresponding garbage file at all. Both fixed. After these fixes, a big part of the select_export::prepare and select_dump::prepare code became identical. Merged the code into a new function called create_file(), which is now called by the two latter functions. Regards, Jani
* | Fixed memory leak with RAID tablesmonty@mysql.com2003-11-211-9/+53
|/ | | | | Fixed tests for RAID tables Detect uninitialized mutexes on lock and destroy
* Use my_b_append instead of my_b_write on a SEQ_READ_APPEND cache, when we writeguilhem@mysql.com2003-08-191-0/+14
| | | | | | | | | | | | the first 4 bytes of the relay log. Indeed comments in mysys/mf_iocache.c say we must always use my_b_append for such a cache. This *could* avoid a very rare assertion failure which is: 030524 19:32:38 Slave SQL thread initialized, starting replication in log 'FIRST' at position 0, relay log '/ users/gbichot/4.1.1/mysql-test/var/log/slave-relay-bin.000001' position: 4 030524 19:32:38 next log '/users/gbichot/4.1.1/mysql-test/var/log/slave-relay-bin.000002' is currently active mysqld: mf_iocache.c:701: _my_b_seq_read: Assertion `pos_in_file == info->end_of_file' failed. and which seemed to happen always when the SQL thread and/or the I/O thread were at position 4 in a relay log.
* do not "trust number of broadcasts" in shared IO_CACHEserg@serg.mysql.com2003-01-261-5/+5
|
* fixed bug in parallel repairserg@serg.mysql.com2003-01-261-29/+29
|
* New multi-table-update codemonty@mashka.mysql.fi2002-11-291-0/+2
| | | | | | | New (simpler) internal timestamp handling. More debuging to heap tables. Small cleanups to multi-table-delete false -> 0 and true -> 1 (We should use TRUE and FALSE)
* Use our version of RWLOCKS on UNIXWARE 7monty@hundin.mysql.fi2002-08-211-2/+3
| | | | | | | | More DBUG info for replication Better error messages from replication Fixed bug in replication code when connecting to 'localhost' (time was not released properly) Block ALARM signal on Linux for signal handler thread (Fixes problem with running mysqld with --debug) Removed warning when setting an AUTO_INCREMENT field to NULL
* Changed IF(expr, column, NULL) to take type from columnmonty@hundin.mysql.fi2002-08-121-2/+3
| | | | | Fixed some windows portability problems and removed some compiler warnings Cleaned up QUOTE() function and fixed bug in \0 and \Z handling.
* Lots of code fixes to the replication code (especially the binary logging ↵monty@mashka.mysql.fi2002-08-081-3/+9
| | | | | | | | | | | | | | | | | | and index log file handling) Fixed bugs in my last changeset that made MySQL hard to compile. Added mutex around some data that could cause table cache corruptions when using OPTIMIZE TABLE / REPAIR TABLE or automatic repair of MyISAM tables. Added mutex around some data in the slave start/stop code that could cause THD linked list corruptions Extended my_chsize() to allow one to specify a filler character. Extend vio_blocking to return the old state (This made some usage of this function much simpler) Added testing for some functions that they caller have got the required mutexes before calling the function. Use setrlimit() to ensure that we can write core file if one specifies --core-file. Added --slave-compressed-protocol Made 2 the minimum length for ft_min_word_len Added variables foreign_key_checks & unique_checks. Less logging from replication code (if not started with --log-warnings) Changed that SHOW INNODB STATUS requre the SUPER privilege More DBUG statements and a lot of new code comments
* New SET syntax & system variables.monty@mashka.mysql.fi2002-07-231-1/+1
| | | | | | | | | | | | | Made a some new buffers thread specific and changeable. Resize of key_buffer. AUTO_COMMIT -> AUTOCOMMIT Fixed mutex bug in DROP DATABASE Fixed bug when using auto_increment as second part of a key where first part could include NULL. Split handler->extra() to extra() and extra_opt() to be able to support thread specific buffers. Don't write message to error log when slave reconnects becasue of timeout. Fixed possible update problem when using DELETE/UPDATE on small tables (In some cases we used index even if table scanning would be better) A lot of minior code cleanups
* parallel repair needs rec_buff local for thread !!!serg@sergbook.mysql.com2002-07-141-9/+0
|
* Portability fixes.monty@hundin.mysql.fi2002-07-011-5/+10
| | | | Don't free memory from InnoDB at exit (as this may be done before other threads are finnished)
* post-merge fixserg@serg.mysql.com2002-06-301-1/+0
|
* mergedserg@serg.mysql.com2002-06-301-31/+68
|\
| * "myisamchk -p" for parallel recover works (no extensive testing though)serg@serg.mysql.com2002-06-301-25/+88
| |
* | Made lock_io_cache() and unlock_io_cache() as functions.monty@hundin.mysql.fi2002-06-271-28/+54
|/
* resolvingserg@serg.mysql.com2002-06-201-8/+110
|\
| * multithreaded repair-by-sort codeserg@serg.mysql.com2002-06-191-8/+110
| | | | | | | | parallel read access to IO_CACHE
* | Big code cleanup/review before 4.0.2 release.monty@mashka.mysql.fi2002-06-111-5/+6
| | | | | | | | | | (All commit emails since 4.0.1 checked) This had to be done now, before the 4.1 tree changes to much, to make it easy to propagate bug fixes to the 4.1 tree.
* | removed init_count from IO_CACHE.monty@hundin.mysql.fi2002-06-051-2/+0
|/ | | | Added missing mutex_unlock to slave replication code.
* relay_log_space_limitsasha@mysql.sashanet.com2002-04-011-1/+1
| | | | | | | | DBUG_ macro cleanup buffer boundary cleanup This changeset, although not fully tested, works for me better than anything I've had so far, including what is in the repository. I will push it unless something crashes while I am writing this :-)
* temporary commit - need to pull Monty's changessasha@mysql.sashanet.com2002-01-291-0/+1
|
* misc replication bugfixes including some needed modifications in IO_CACHEsasha@mysql.sashanet.com2002-01-261-9/+20
| | | | | likely() and unlikely() branch prediction compiler hint macros clean-up of comments
* more predicatable slave behaviour with wait_for_slave_stop in mysqltestsasha@mysql.sashanet.com2002-01-241-3/+19
| | | | | | fixed a couple of bugs with SEQ_READ_APPEND cache rpl000016 still has non-deterministic result, but I am going to commit and push since what I have is now better than what is in the main repository
* Ugly merge! But I am not done yet - there are a number of things I need to fixsasha@mysql.sashanet.com2002-01-191-20/+37
|\ | | | | | | before I can push
| * Here comes a nasty patch, although I am not ready to push it yet. I willsasha@mysql.sashanet.com2002-01-191-20/+37
| | | | | | | | | | | | | | | | | | | | first pull, merge,test, and get it to work. The main change is the new replication code - now we have two slave threads SQL thread and I/O thread. I have also re-written a lot of the code to prepare for multi-master implementation. I also documented IO_CACHE quite extensively and to some extend, THD class.
* | Update copyrightmonty@hundin.mysql.fi2001-12-061-12/+11
|/ | | | Fixed memory leak on shutdown (Affects the embedded version & MyODBC)
* New improved IO_CACHEmonty@bitch.mysql.fi2001-11-281-262/+322
|
* work to enable reading 3.23 logs - not yet finishedsasha@mysql.sashanet.com2001-11-101-1/+7
| | | | | moved fail-safe replication routines from sql_repl.cc to repl_failsafe.cc write start event only in the first log
* Merge work:/home/bk/mysql-4.0sasha@mysql.sashanet.com2001-11-071-43/+240
|\ | | | | | | into mysql.sashanet.com:/home/sasha/src/bk/mysql-4.0