summaryrefslogtreecommitdiff
path: root/storage/tokudb/PerconaFT
diff options
context:
space:
mode:
authorMonty <monty@mariadb.org>2018-02-17 17:48:23 +0200
committerMonty <monty@mariadb.org>2018-02-17 18:04:59 +0200
commit965e16376c251010f6c4d7182159acacfe198ff8 (patch)
tree59f738443729cdb47ad307409d822a7988646590 /storage/tokudb/PerconaFT
parentf853b8ed26623200405abbc943e82295ad9f6ab3 (diff)
downloadmariadb-git-965e16376c251010f6c4d7182159acacfe198ff8.tar.gz
TokuDB didn't compile with valgrind
TokuDB uses USE_VALGRIND while MariaDB uses HAVE_valgrind Fixed by defining USE_VALGRIND in TokuDB if HAVE_valgrind is used
Diffstat (limited to 'storage/tokudb/PerconaFT')
-rw-r--r--storage/tokudb/PerconaFT/portability/toku_race_tools.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/storage/tokudb/PerconaFT/portability/toku_race_tools.h b/storage/tokudb/PerconaFT/portability/toku_race_tools.h
index 8482a164fb8..9ed46ec909d 100644
--- a/storage/tokudb/PerconaFT/portability/toku_race_tools.h
+++ b/storage/tokudb/PerconaFT/portability/toku_race_tools.h
@@ -40,6 +40,11 @@ Copyright (c) 2006, 2015, Percona and/or its affiliates. All rights reserved.
#include <portability/toku_config.h>
+#ifdef HAVE_valgrind
+#undef USE_VALGRIND
+#define USE_VALGRIND 1
+#endif
+
#if defined(__linux__) && USE_VALGRIND
# include <valgrind/helgrind.h>