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,