revision-id: f07e70d91426c504df32df0ec7e1f121b742c2c9 parent(s): 31584c8bb8204b27626fae0127eff4889b8f4383 committer: Sergei Petrunia branch nick: 10.2-r12 timestamp: 2018-05-22 19:36:51 +0300 message: 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. --- storage/rocksdb/CMakeLists.txt | 3 +++ 1 file changed, 3 insertions(+) diff --git a/storage/rocksdb/CMakeLists.txt b/storage/rocksdb/CMakeLists.txt index 2821b74..2a4ea4d 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.