Skip to content

Commit

Permalink
TokuDB didn't compile with valgrind
Browse files Browse the repository at this point in the history
TokuDB uses USE_VALGRIND while MariaDB uses HAVE_valgrind

Fixed by defining USE_VALGRIND in TokuDB if HAVE_valgrind is used
  • Loading branch information
montywi committed Feb 17, 2018
1 parent f853b8e commit 965e163
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions storage/tokudb/PerconaFT/portability/toku_race_tools.h
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down

0 comments on commit 965e163

Please sign in to comment.