diff options
author | monty@mashka.mysql.fi <> | 2002-07-23 18:31:22 +0300 |
---|---|---|
committer | monty@mashka.mysql.fi <> | 2002-07-23 18:31:22 +0300 |
commit | dddc20d9d1eea5fd526a2082a43801fed304afe4 (patch) | |
tree | 2e458857fc65791ee553b4cde0e28ef9459050a5 /sql/sql_cache.h | |
parent | 373e19dca1d209476a15d7d61cb350361c9d6efa (diff) | |
download | mariadb-git-dddc20d9d1eea5fd526a2082a43801fed304afe4.tar.gz |
New SET syntax & system variables.
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
Diffstat (limited to 'sql/sql_cache.h')
-rw-r--r-- | sql/sql_cache.h | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/sql/sql_cache.h b/sql/sql_cache.h index 5403377564b..3088331f19a 100644 --- a/sql/sql_cache.h +++ b/sql/sql_cache.h @@ -189,10 +189,10 @@ struct Query_cache_memory_bin uint number; Query_cache_block *free_blocks; - inline void init(ulong size) + inline void init(ulong size_arg) { #ifndef DBUG_OFF - this->size = size; + size = size_arg; #endif number = 0; free_blocks = 0; @@ -204,11 +204,11 @@ struct Query_cache_memory_bin_step ulong size; ulong increment; uint idx; - inline void init(ulong size, uint idx, ulong increment) + inline void init(ulong size_arg, uint idx_arg, ulong increment_arg) { - this->size = size; - this->idx = idx; - this->increment = increment; + size = size_arg; + idx = idx_arg; + increment = increment_arg; } }; @@ -398,6 +398,7 @@ protected: }; extern Query_cache query_cache; +extern TYPELIB query_cache_type_typelib; void query_cache_insert(NET *net, const char *packet, ulong length); void query_cache_end_of_result(NET *net); void query_cache_abort(NET *net); |