From 74e4fccbbca400e56f7617a9ba67b7a11d0571f4 Mon Sep 17 00:00:00 2001 From: "kostja@bodhi.(none)" <> Date: Sat, 14 Jul 2007 04:38:21 +0400 Subject: [PATCH] Fix a warning in a non-debug build. --- 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 69efbdf006a..0e4404b87fc 100644 --- a/sql/sql_cache.cc +++ b/sql/sql_cache.cc @@ -793,7 +793,8 @@ void query_cache_end_of_result(THD *thd) query_cache.wreck() switched query cache off but left content untouched for investigation (it is debugging method). */ - goto end; + STRUCT_UNLOCK(&query_cache.structure_guard_mutex); + DBUG_VOID_RETURN; } #endif header->found_rows(current_thd->limit_found_rows); @@ -808,7 +809,6 @@ void query_cache_end_of_result(THD *thd) } -end: STRUCT_UNLOCK(&query_cache.structure_guard_mutex); DBUG_VOID_RETURN; }