BUG#23655 deadlock in query cache ndb_cache tests with --debug

Deadlock when running ndb_cache tests with --debug. Query cache locks on trying
to acquire lock.
parent 8f3ac043
......@@ -747,11 +747,10 @@ void query_cache_end_of_result(THD *thd)
header->result()->type= Query_cache_block::RESULT;
header->writer(0);
thd->net.query_cache_query= 0;
DBUG_EXECUTE("check_querycache",query_cache.check_integrity(1););
STRUCT_UNLOCK(&query_cache.structure_guard_mutex);
BLOCK_UNLOCK_WR(query_block);
DBUG_EXECUTE("check_querycache",query_cache.check_integrity(1););
STRUCT_UNLOCK(&query_cache.structure_guard_mutex);
}
else
{
......
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