diff options
author | Sergei Petrunia <psergey@askmonty.org> | 2018-05-22 19:36:51 +0300 |
---|---|---|
committer | Sergei Petrunia <psergey@askmonty.org> | 2018-05-22 19:40:40 +0300 |
commit | a107c79fcdde80d1dea0a1caf5859647f77b48c9 (patch) | |
tree | edb9bcbb17fd24797696e739ffc192f53929aa81 /storage | |
parent | afe5a51c2df95aa282e4459afeb7f037563def92 (diff) | |
download | mariadb-git-a107c79fcdde80d1dea0a1caf5859647f77b48c9.tar.gz |
MDEV-12439: MariaRocks produces numerous (spurious?) valgrind failures
Step#1: RocksDB files require a special #define when they are compiled
with valgrind. Without that, valgrind fails with an 'unimplemented syscall'
error for fcntl call.
Diffstat (limited to 'storage')
-rw-r--r-- | storage/rocksdb/CMakeLists.txt | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/storage/rocksdb/CMakeLists.txt b/storage/rocksdb/CMakeLists.txt index 2821b74c2fa..2a4ea4dfc0f 100644 --- a/storage/rocksdb/CMakeLists.txt +++ b/storage/rocksdb/CMakeLists.txt @@ -19,6 +19,9 @@ IF(HAVE_SCHED_GETCPU) ADD_DEFINITIONS(-DHAVE_SCHED_GETCPU=1 -DROCKSDB_SCHED_GETCPU_PRESENT) ENDIF() +IF(WITH_VALGRIND) + ADD_DEFINITIONS(-DROCKSDB_VALGRIND_RUN=1) +ENDIF() # We've had our builders hang during the build process. This prevents MariaRocks # to be built on 32 bit intel OS kernels. |