diff options
author | Kristofer Pettersson <kristofer.pettersson@sun.com> | 2009-11-20 13:49:06 +0100 |
---|---|---|
committer | Kristofer Pettersson <kristofer.pettersson@sun.com> | 2009-11-20 13:49:06 +0100 |
commit | c9b5710e7cb7e360bb204e3a0fca90f58de4b077 (patch) | |
tree | 24af0f76056f7acfacd3c2c81b77c7ed251ecba9 /sql/sql_cache.h | |
parent | 1701a145db7a850062494fa5425824501895e819 (diff) | |
download | mariadb-git-c9b5710e7cb7e360bb204e3a0fca90f58de4b077.tar.gz |
Bug#39253 Large query cache still freezes server after fix for bug #21074
This patch introduce a limit on the time the query cache can
block with a lock on SELECTs.
Other operations which causes a change in the table
data will still be blocked.
Diffstat (limited to 'sql/sql_cache.h')
-rw-r--r-- | sql/sql_cache.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sql/sql_cache.h b/sql/sql_cache.h index 777ddd39280..44fc3123b98 100644 --- a/sql/sql_cache.h +++ b/sql/sql_cache.h @@ -485,7 +485,7 @@ protected: const char *name); my_bool in_blocks(Query_cache_block * point); - bool try_lock(void); + bool try_lock(bool use_timeout= FALSE); void lock(void); void lock_and_suspend(void); void unlock(void); |