diff options
author | monty@hundin.mysql.fi <> | 2002-01-02 21:29:41 +0200 |
---|---|---|
committer | monty@hundin.mysql.fi <> | 2002-01-02 21:29:41 +0200 |
commit | 4b877e0088e6f32a606ffaa0fb3c94afb0b24388 (patch) | |
tree | ef8afaf7a0fed42b30ef0d9d38acccc992b5f87d /sql/sql_cache.h | |
parent | 5b77e3391050f1f585ab28816ad31761d93e8264 (diff) | |
download | mariadb-git-4b877e0088e6f32a606ffaa0fb3c94afb0b24388.tar.gz |
Added macros for nice TIMESPEC usage.
Fixes for building MySQL with gcc 3.0
Added SIGNED / UNSIGNED casts
Fixed core dump bug in net_clear() with libmysqld.
Back to using semaphores in query cache.
Added 'Null' and 'Index_type' to SHOW INDEX.
Diffstat (limited to 'sql/sql_cache.h')
-rw-r--r-- | sql/sql_cache.h | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/sql/sql_cache.h b/sql/sql_cache.h index 50ae765e446..bde11d2dbb6 100644 --- a/sql/sql_cache.h +++ b/sql/sql_cache.h @@ -55,6 +55,8 @@ #define TABLE_COUNTER_TYPE uint8 +#include <my_semaphore.h> + struct Query_cache_block; struct Query_cache_block_table; struct Query_cache_table; @@ -107,7 +109,7 @@ struct Query_cache_query Query_cache_block *res; NET *wri; ulong len; - pthread_cond_t lock; // R/W lock of block + sem_t lock; // R/W lock of block pthread_mutex_t clients_guard; uint clients; @@ -396,5 +398,8 @@ protected: }; extern Query_cache query_cache; +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); #endif |