summaryrefslogtreecommitdiff
path: root/storage/innobase/include/ha0ha.h
diff options
context:
space:
mode:
authorMarko Mäkelä <marko.makela@mariadb.com>2018-01-15 15:26:02 +0200
committerMarko Mäkelä <marko.makela@mariadb.com>2018-01-15 15:40:28 +0200
commitec062c618186681504e79e6f568f98406020ab01 (patch)
tree10085b33baadc336a3fbdc70989e428e2418507a /storage/innobase/include/ha0ha.h
parent72136ae75c69cee5230e7be286cf12663d3d15ef (diff)
downloadmariadb-git-ec062c618186681504e79e6f568f98406020ab01.tar.gz
MDEV-12121 follow-up: Unbreak the WITH_INNODB_AHI=OFF build
Diffstat (limited to 'storage/innobase/include/ha0ha.h')
-rw-r--r--storage/innobase/include/ha0ha.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/storage/innobase/include/ha0ha.h b/storage/innobase/include/ha0ha.h
index ca4cb0a5f8f..f5be654f490 100644
--- a/storage/innobase/include/ha0ha.h
+++ b/storage/innobase/include/ha0ha.h
@@ -1,6 +1,7 @@
/*****************************************************************************
Copyright (c) 1994, 2016, Oracle and/or its affiliates. All Rights Reserved.
+Copyright (c) 2018, MariaDB Corporation.
This program is free software; you can redistribute it and/or modify it under
the terms of the GNU General Public License as published by the Free Software
@@ -210,7 +211,7 @@ struct ha_node_t {
};
#endif /* BTR_CUR_HASH_ADAPT */
-#ifdef UNIV_DEBUG
+#if defined UNIV_DEBUG && defined BTR_CUR_HASH_ADAPT
/********************************************************************//**
Assert that the synchronization object in a hash operation involving
possible change in the hash table is held.