diff options
author | Sergei Golubchik <serg@mariadb.org> | 2016-09-19 19:07:17 +0200 |
---|---|---|
committer | Sergei Golubchik <serg@mariadb.org> | 2016-09-21 10:03:16 +0200 |
commit | 4368efe870f225279106798f71978b68c473e2ab (patch) | |
tree | b877d9e839890795b9f0aa051c17781deadbd404 /include/my_valgrind.h | |
parent | e4f70789d5bae1d3692800f55a46905517a6119b (diff) | |
download | mariadb-git-4368efe870f225279106798f71978b68c473e2ab.tar.gz |
valgrind failures
and a couple of collaterals:
* debugging assert in my_valgrind.h
* trivial cleanup in sql_union.cc
Diffstat (limited to 'include/my_valgrind.h')
-rw-r--r-- | include/my_valgrind.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/my_valgrind.h b/include/my_valgrind.h index 0662f5dce71..9ceb49c1094 100644 --- a/include/my_valgrind.h +++ b/include/my_valgrind.h @@ -41,3 +41,5 @@ #define TRASH_FREE(A,B) TRASH_FILL(A,B,0x8F) #define TRASH(A,B) TRASH_FREE(A,B) +# define DBUG_ASSERT_DEFINED(x) \ + DBUG_ASSERT(!VALGRIND_CHECK_MEM_IS_DEFINED(&(x), sizeof(x))) |