summaryrefslogtreecommitdiff
path: root/sql/sql_cache.cc
Commit message (Collapse)AuthorAgeFilesLines
* Merge mysql.com:/home/kent/bk/main/mysql-5.0kent@kent-amd64.(none)2006-12-231-2/+1
|\ | | | | | | into mysql.com:/home/kent/bk/main/mysql-5.1
| * Many files:kent@mysql.com/kent-amd64.(none)2006-12-231-2/+1
| | | | | | | | Changed header to GPL version 2 only
| * Merge dfischer@bk-internal.mysql.com:/home/bk/mysql-5.0-marveldf@kahlann.erinye.com2006-12-011-19/+19
| |\ | | | | | | | | | into kahlann.erinye.com:/home/df/mysql/build/mysql-5.0-build
* | \ Merge bk-internal.mysql.com:/home/bk/mysql-5.1monty@narttu.mysql.fi2006-11-301-3/+2
|\ \ \ | | | | | | | | | | | | into mysql.com:/home/my/mysql-5.1
| * \ \ Merge mysql.com:/home/my/mysql-5.0monty@narttu.mysql.fi2006-11-301-1/+1
| |\ \ \ | | | |/ | | |/| | | | | into mysql.com:/home/my/mysql-5.1
| | * | Fixed compiler warningsmonty@mysql.com/narttu.mysql.fi2006-11-301-19/+19
| | | | | | | | | | | | | | | | Don't assert if my_thread_end() is called twice (common case)
| * | | Don't abort if we call my_thread_end() multiple timesmonty@mysql.com/narttu.mysql.fi2006-11-301-2/+1
| | | | | | | | | | | | | | | | Fixed new introduced bug in my_time.c
* | | | Merge bk-internal.mysql.com:/home/bk/mysql-5.0kostja@bodhi.local2006-11-301-2/+17
|\ \ \ \ | |/ / / |/| | / | | |/ | |/| into bodhi.local:/opt/local/work/mysql-5.1-runtime-merge
| * | Merge bk-internal.mysql.com:/home/bk/mysql-5.0kostja@bodhi.local2006-11-291-20/+22
| |\ \ | | |/ | | | | | | into bodhi.local:/opt/local/work/mysql-5.0-runtime
| * | Fix of debbuging mode of query cache (proposed by Monty reviewed by me).bell@desktop.sanja.is.com.ua2006-11-171-18/+24
| | |
* | | Removed compiler warningsmonty@mysql.com/nosik.monty.fi2006-11-271-10/+10
| | | | | | | | | | | | | | | Ensure that my_size_t is always unsigned (to get predictiable results from system to system) Removed some %lld, as these are not portable
* | | Fixed a LOT of compiler warningsmonty@mysql.com/nosik.monty.fi2006-11-271-3/+3
| | | | | | | | | | | | | | | | | | | | | Added missing DBUG_RETURN statements (in mysqldump.c) Added missing enums Fixed a lot of wrong DBUG_PRINT() statements, some of which could cause crashes Removed usage of %lld and %p in printf strings as these are not portable or produces different results on different systems.
* | | Merge mysql.com:/home/my/mysql-5.0monty@nosik.monty.fi2006-11-221-37/+30
|\ \ \ | | |/ | |/| | | | into mysql.com:/home/my/mysql-5.1
| * | Remove compiler warningsmonty@mysql.com/nosik.monty.fi2006-11-201-37/+30
| |/ | | | | | | | | | | | | (Mostly in DBUG_PRINT() and unused arguments) Fixed bug in query cache when used with traceing (--with-debug) Fixed memory leak in mysqldump Removed warnings from mysqltest scripts (replaced -- with #)
* | This patch updates to remove most global hton needs. Cleans up wrong message ↵brian@zim.(none)2006-09-301-2/+2
| | | | | | | | in partition.
* | This changes the order of the universe, black is now the new white.brian@zim.(none)2006-09-151-2/+2
| | | | | | | | In practice this means that handlerton is now created by the server and is passed to the engine. Plugin startups can now also control how plugins are inited (and can optionally pass values). Bit more flexibility to those who want to write plugin interfaces to the database.
* | Merge bodhi.local:/opt/local/work/mysql-5.0-runtime-safemergekostja@bodhi.local2006-08-301-228/+354
|\ \ | |/ | | | | into bodhi.local:/opt/local/work/mysql-5.1-runtime-merge
| * BUG#21051: RESET QUERY CACHE very slow when query_cache_type=0kroki/tomash@moonlight.intranet2006-08-221-228/+354
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | There were two problems: RESET QUERY CACHE took a long time to complete and other threads were blocked during this time. The patch does three things: 1 fixes a bug with improper use of test-lock-test_again technique. AKA Double-Checked Locking is applicable here only in few places. 2 Somewhat improves performance of RESET QUERY CACHE. Do my_hash_reset() instead of deleting elements one by one. Note however that the slowdown also happens when inserting into sorted list of free blocks, should be rewritten using balanced tree. 3 Makes RESET QUERY CACHE non-blocking. The patch adjusts the locking protocol of the query cache in the following way: it introduces a flag flush_in_progress, which is set when Query_cache::flush_cache() is in progress. This call sets the flag on enter, and then releases the lock. Every other call is able to acquire the lock, but does nothing if flush_in_progress is set (as if the query cache is disabled). The only exception is the concurrent calls to Query_cache::flush_cache(), that are blocked until the flush is over. When leaving Query_cache::flush_cache(), the lock is acquired and the flag is reset, and one thread waiting on Query_cache::flush_cache() (if any) is notified that it may proceed.
* | Update to push all of merge into the merge storage directory.brian@zim.(none)2006-08-191-5/+1
| |
* | Merge bodhi.local:/opt/local/work/tmp_mergekostja@bodhi.local2006-07-261-0/+2
|\ \ | |/ | | | | into bodhi.local:/opt/local/work/mysql-5.1-runtime-merge
| * Merge bodhi.local:/opt/local/work/tmp_mergekostja@bodhi.local2006-07-081-0/+2
| |\ | | | | | | | | | into bodhi.local:/opt/local/work/mysql-5.0-runtime-merge-41
| | * WL#2928 Date Translation NREbar@mysql.com2006-07-041-0/+2
| | | | | | | | | | | | (implemented by by Josh Chamas)
* | | Merge mysql.com:/home/alexi/bugs/mysql-5.0-15758-workaivanov@mysql.com2006-04-091-0/+5
|\ \ \ | |/ / | | | | | | into mysql.com:/home/alexi/bugs/mysql-5.1-15758
| * | Fixed BUG#15758: "Holding adaptive search latch inaivanov@mysql.com2006-04-071-0/+5
| | | | | | | | | | | | | | | | | | innobase_query_caching_of_table_permitted()". Applied the patch due to Heikki Tuuri. Also removed superfluous #ifdefs.
* | | dbug changes:serg@serg.mylan2006-02-141-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 1. dbug state is now local to a thread 2. new macros: DBUG_EXPLAIN, DBUG_EXPLAIN_INITIAL, DBUG_SET, DBUG_SET_INITIAL, DBUG_EVALUATE, DBUG_EVALUATE_IF 3. macros are do{}while(0) wrapped 4. incremental modifications to the dbug state (e.g. "+d,info:-t") 5. dbug code cleanup, style fixes 6. _db_on_ and DEBUGGER_ON/OFF removed 7. rest of MySQL code fixed because of 3 (missing ;) and 6 8. dbug manual updated 9. server variable @@debug (global and local) to control dbug from SQL! a. -#T to print timestamps in the log
* | | Merge mysql.com:/opt/local/work/mysql-5.0-mergekonstantin@mysql.com2006-01-051-4/+6
|\ \ \ | |/ / | | | | | | into mysql.com:/opt/local/work/mysql-5.1-merge
| * | Merge mysql.com:/opt/local/work/mysql-4.1-7209-newkonstantin@mysql.com2006-01-041-4/+6
| |\ \ | | |/ | | | | | | into mysql.com:/opt/local/work/mysql-5.0-merge
| | * A fix for Bug#7209 "Client error with "Access Denied" on updates konstantin@mysql.com2006-01-041-4/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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 xiphis.org:/home/antony/work2/mysql-5.1acurtis@xiphis.org2005-12-211-2/+2
|\ \ \ | | | | | | | | | | | | into xiphis.org:/home/antony/work3/mysql-5.1-plugable-2
| * | | Finalize storage engine pluginsacurtis@xiphis.org2005-12-211-2/+2
| | | | | | | | | | | | | | | | | | | | Give BerkeleyDB savepoints Remove "enum db_type" from most of the code
* | | | Merge sanja.is.com.ua:/home/bell/mysql/bk/mysql-5.0bell@sanja.is.com.ua2005-12-031-4/+4
|\ \ \ \ | | |/ / | |/| | | | | | into sanja.is.com.ua:/home/bell/mysql/bk/work-merge-5.1
| * | | Merge sanja.is.com.ua:/home/bell/mysql/bk/mysql-4.1bell@sanja.is.com.ua2005-12-011-14/+24
| |\ \ \ | | | |/ | | |/| | | | | into sanja.is.com.ua:/home/bell/mysql/bk/work-merge1-5.0
| * | | We should not skip temptable view along with other derivedbell@sanja.is.com.ua2005-12-011-1/+1
| | | | | | | | | | | | | | | | tables during query tables registration. (BUG#15119)
* | | | Merge moonbone.local:/work/15028-bug-5.0-mysqlevgen@moonbone.local2005-12-021-13/+24
|\ \ \ \ | |_|_|/ |/| | | | | | | into moonbone.local:/work/15028-bug-5.1-new-mysql
| * | | sql_cache.cc:evgen@moonbone.local2005-12-021-15/+9
| | | | | | | | | | | | | | | | After merge fix
| * | | Manually mergedevgen@moonbone.local2005-12-021-2/+19
| |\ \ \ | | |/ / | |/| / | | |/
| | * We should skip beggining '(' characters when test query on possibilitybell@sanja.is.com.ua2005-12-011-9/+19
| | | | | | | | | | | | to be in the query cache. (BUG#14652)
* | | Table definition cache, part 2monty@mysql.com2005-11-231-24/+28
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The table opening process now works the following way: - Create common TABLE_SHARE object - Read the .frm file and unpack it into the TABLE_SHARE object - Create a TABLE object based on the information in the TABLE_SHARE object and open a handler to the table object Other noteworthy changes: - In TABLE_SHARE the most common strings are now LEX_STRING's - Better error message when table is not found - Variable table_cache is now renamed 'table_open_cache' - New variable 'table_definition_cache' that is the number of table defintions that will be cached - strxnmov() calls are now fixed to avoid overflows - strxnmov() will now always add one end \0 to result - engine objects are now created with a TABLE_SHARE object instead of a TABLE object. - After creating a field object one must call field->init(table) before using it - For a busy system this change will give you: - Less memory usage for table object - Faster opening of tables (if it's has been in use or is in table definition cache) - Allow you to cache many table definitions objects - Faster drop of table
* | | Merge mysql.com:/home/my/mysql-5.0monty@mysql.com2005-11-051-16/+5
|\ \ \ | |/ / | | | | | | into mysql.com:/home/my/mysql-5.1
| * | Merge sanja.is.com.ua:/home/bell/mysql/bk/mysql-5.0bell@sanja.is.com.ua2005-10-281-16/+4
| |\ \ | | | | | | | | | | | | into sanja.is.com.ua:/home/bell/mysql/bk/work-owner7-5.0
| | * | support of view underlying tables and SP functions security check added ↵bell@sanja.is.com.ua2005-10-281-16/+4
| | | | | | | | | | | | | | | | (BUG#9505) (WL#2787)
| * | | Merge rkalimullin@bk-internal.mysql.com:/home/bk/mysql-5.0ramil@mysql.com2005-10-241-37/+88
| |\ \ \ | | |/ / | | | | | | | | into mysql.com:/usr/home/ram/work/5.0.b10303
| * | | fix (bug #10303: Misleading Last_query_cost value).ramil@mysql.com2005-09-061-0/+1
| | | |
* | | | Mergetomas@poseidon.ndb.mysql.com2005-10-061-1/+2
|\ \ \ \ | | |/ / | |/| |
| * | | Merge bk-internal.mysql.com:/home/bk/mysql-5.0msvensson@neptunus.(none)2005-09-301-2/+6
| |\ \ \ | | | | | | | | | | | | | | | into neptunus.(none):/home/msvensson/mysql/bug13231/my50-bug13231
| * | | | Fix bug #13424 locking view with query cache enabled crashes serverevgen@moonbone.local2005-09-261-1/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | For LOCK view is opened but not prepared thus leaving 'table' field set to NULL. invalidate_locked_for_write() wasn't checking that and call to invalidate_table(NULL) crashes server. To invalidate_locked_for_write() added check that ensures that table is completely opened.
* | | | | Merge neptunus.(none):/home/msvensson/mysql/bug13231/my50-bug13231msvensson@neptunus.(none)2005-09-301-2/+6
|\ \ \ \ \ | | |/ / / | |/| | | | | | | | into neptunus.(none):/home/msvensson/mysql/bug13231/my51-bug13231
| * | | | Bug #13231 mysqltest: fails to dectect when mysql_next_result failsmsvensson@neptunus.(none)2005-09-291-2/+6
| |/ / / | | | | | | | | | | | | | | | | - Packets out of order when reading cached data stored by a normal select from a ps or vice versa. - Add pkt_nr to query cache flags
* | | | Merge neptunus.(none):/home/msvensson/mysql/mysql-5.0msvensson@neptunus.(none)2005-09-071-34/+80
|\ \ \ \ | |/ / / | | | | | | | | into neptunus.(none):/home/msvensson/mysql/mysql-5.1
| * | | Merge sanja.is.com.ua:/home/bell/mysql/bk/work-4.1bell@sanja.is.com.ua2005-09-061-34/+80
| |\ \ \ | | |/ / | |/| / | | |/ into sanja.is.com.ua:/home/bell/mysql/bk/work-mrg-5.0