Commit 91ef5f2a authored by Sergei Golubchik's avatar Sergei Golubchik

bugfix: query cache was using incorrect wait flag

parent 9f40bfbe
...@@ -1760,9 +1760,9 @@ Query_cache::send_result_to_client(THD *thd, char *org_sql, uint query_length) ...@@ -1760,9 +1760,9 @@ Query_cache::send_result_to_client(THD *thd, char *org_sql, uint query_length)
disabled or if a full cache flush is in progress, the attempt to disabled or if a full cache flush is in progress, the attempt to
get the lock is aborted. get the lock is aborted.
The WAIT parameter indicate that the lock is allowed to timeout. The TIMEOUT parameter indicate that the lock is allowed to timeout.
*/ */
if (try_lock(thd, Query_cache::WAIT)) if (try_lock(thd, Query_cache::TIMEOUT))
goto err; goto err;
if (query_cache_size == 0) if (query_cache_size == 0)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment