summaryrefslogtreecommitdiff
path: root/sql/sql_cache.cc
diff options
context:
space:
mode:
authorNirbhay Choubey <nirbhay@mariadb.com>2016-02-22 22:05:16 -0500
committerNirbhay Choubey <nirbhay@mariadb.com>2016-02-22 22:05:16 -0500
commit5d4fb15e5a2391d7117dfb13203e33f3673dab20 (patch)
treec4035f77cf0570babf92da4f652978114241ac48 /sql/sql_cache.cc
parent7d89deb0a3df4df798e27472a55e32b10ac306b9 (diff)
downloadmariadb-git-5d4fb15e5a2391d7117dfb13203e33f3673dab20.tar.gz
Fix for compilation failure.
Diffstat (limited to 'sql/sql_cache.cc')
-rw-r--r--sql/sql_cache.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/sql/sql_cache.cc b/sql/sql_cache.cc
index 0d3497ad964..6a0f811d3a2 100644
--- a/sql/sql_cache.cc
+++ b/sql/sql_cache.cc
@@ -1963,7 +1963,7 @@ def_week_frmt: %lu, in_trans: %d, autocommit: %d",
unlock();
if (wsrep_sync_wait(thd))
goto err;
- if (try_lock(TRUE))
+ if (try_lock(thd, Query_cache::TIMEOUT))
goto err;
query_block = (Query_cache_block *) my_hash_search(&queries,
(uchar*) sql,