mirror of
https://github.com/MariaDB/server.git
synced 2026-04-24 09:15:30 +02:00
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. sql/sql_cache.cc: * Introduced a timeout value for the qc lock when entering send_result_to_client() and store_query() methods. sql/sql_cache.h: * New signature for Query_cache::try_lock()
This commit is contained in:
parent
8369f619d4
commit
41085809c3
2 changed files with 36 additions and 5 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue