summaryrefslogtreecommitdiff
path: root/storage/innobase/ha
diff options
context:
space:
mode:
authorInaam Rana <inaam.rana@oracle.com>2010-08-05 11:09:05 -0400
committerInaam Rana <inaam.rana@oracle.com>2010-08-05 11:09:05 -0400
commitb4a25f462ebd91612d7faeaf0df82ed34d862f38 (patch)
treece4b1eda6f7a7453fc52ebccc954c18cd895af3b /storage/innobase/ha
parente3e0c290dd47f74dc4f2a1885dd22d8fe1ee38f8 (diff)
downloadmariadb-git-b4a25f462ebd91612d7faeaf0df82ed34d862f38.tar.gz
Currently we do a full validation of AHI whenever check tables is
called on any table. This patch fixes this by only doing this full check in debug versions. bug#55716 rb://423 approved by: Marko
Diffstat (limited to 'storage/innobase/ha')
-rw-r--r--storage/innobase/ha/ha0ha.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/storage/innobase/ha/ha0ha.c b/storage/innobase/ha/ha0ha.c
index f9e798012f8..7f11917de0a 100644
--- a/storage/innobase/ha/ha0ha.c
+++ b/storage/innobase/ha/ha0ha.c
@@ -354,6 +354,7 @@ ha_remove_all_nodes_to_page(
#endif
}
+#if defined UNIV_AHI_DEBUG || defined UNIV_DEBUG
/*************************************************************//**
Validates a given range of the cells in hash table.
@return TRUE if ok */
@@ -400,6 +401,7 @@ ha_validate(
return(ok);
}
+#endif /* defined UNIV_AHI_DEBUG || defined UNIV_DEBUG */
/*************************************************************//**
Prints info of a hash table. */