summaryrefslogtreecommitdiff
path: root/sql/sql_cache.h
diff options
context:
space:
mode:
authorbell@sanja.is.com.ua <>2002-06-30 12:08:58 +0300
committerbell@sanja.is.com.ua <>2002-06-30 12:08:58 +0300
commit2426972c5b4f6d26fac4e674a5b0ee239847b87c (patch)
tree5e3f428ea24283f78ecea46b7c6bd8c3d117abfb /sql/sql_cache.h
parente5b02fbe6efd6c88a485a50fde2f44837c55f6bc (diff)
downloadmariadb-git-2426972c5b4f6d26fac4e674a5b0ee239847b87c.tar.gz
semaphores replaced by rwlock
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();