summaryrefslogtreecommitdiff
path: root/sql/sql_cache.h
diff options
context:
space:
mode:
authorunknown <bell@sanja.is.com.ua>2002-06-30 12:08:58 +0300
committerunknown <bell@sanja.is.com.ua>2002-06-30 12:08:58 +0300
commit5c059a338fe9f746ebe8bd89451af25d66caa5fc (patch)
tree5e3f428ea24283f78ecea46b7c6bd8c3d117abfb /sql/sql_cache.h
parenta88c8630ec426c88cd7eae7acf2985a254d3faba (diff)
downloadmariadb-git-5c059a338fe9f746ebe8bd89451af25d66caa5fc.tar.gz
semaphores replaced by rwlock
include/my_pthread.h: small bug in #define sql/sql_handler.cc: bug in order of #includes
Diffstat (limited to 'sql/sql_cache.h')
-rw-r--r--sql/sql_cache.h7
1 files changed, 1 insertions, 6 deletions
diff --git a/sql/sql_cache.h b/sql/sql_cache.h
index 81ea80669b8..5403377564b 100644
--- a/sql/sql_cache.h
+++ b/sql/sql_cache.h
@@ -63,8 +63,6 @@
#define TABLE_COUNTER_TYPE uint8
-#include <my_semaphore.h>
-
struct Query_cache_block;
struct Query_cache_block_table;
struct Query_cache_table;
@@ -110,16 +108,13 @@ struct Query_cache_block
inline Query_cache_block_table *table(TABLE_COUNTER_TYPE n);
};
-
struct Query_cache_query
{
ulonglong limit_found_rows;
+ rw_lock_t lock;
Query_cache_block *res;
NET *wri;
ulong len;
- sem_t lock; // R/W lock of block
- pthread_mutex_t clients_guard;
- uint clients;
inline void init_n_lock();
void unlock_n_destroy();