From 91ef5f2a86684a3afbb5b1f9a1db8d7a687aa871 Mon Sep 17 00:00:00 2001 From: Sergei Golubchik Date: Wed, 19 Oct 2011 22:56:23 +0200 Subject: [PATCH] bugfix: query cache was using incorrect wait flag --- sql/sql_cache.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sql/sql_cache.cc b/sql/sql_cache.cc index 256b2a874cb..9e2279d71ea 100644 --- a/sql/sql_cache.cc +++ b/sql/sql_cache.cc @@ -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 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; if (query_cache_size == 0)