diff options
author | unknown <kostja@bodhi.local> | 2007-01-17 20:46:09 +0300 |
---|---|---|
committer | unknown <kostja@bodhi.local> | 2007-01-17 20:46:09 +0300 |
commit | c9078c40af0cb23e6482dfb99351d1868bd6cb06 (patch) | |
tree | 6071a6f782331436fe1d0e95412b8503404f636f /sql | |
parent | eeaf11b2f6e929a2b983d98ddcd5f48ff9b0b3df (diff) | |
download | mariadb-git-c9078c40af0cb23e6482dfb99351d1868bd6cb06.tar.gz |
Disable symlinks under valgrind builds (again), with a comment.
sql/mysqld.cc:
Once again, disable symlink.test under valgrind builds. symlink.test
fails deep in mi_repair - the result of this having been disabled
for almost 5 years.
Diffstat (limited to 'sql')
-rw-r--r-- | sql/mysqld.cc | 15 |
1 files changed, 13 insertions, 2 deletions
diff --git a/sql/mysqld.cc b/sql/mysqld.cc index dbca7dae338..f107569c3cb 100644 --- a/sql/mysqld.cc +++ b/sql/mysqld.cc @@ -67,6 +67,12 @@ #define ONE_THREAD #endif +#ifdef HAVE_purify +#define IF_PURIFY(A,B) (A) +#else +#define IF_PURIFY(A,B) (B) +#endif + #if SIZEOF_CHARP == 4 #define MAX_MEM_TABLE_SIZE ~(ulong) 0 #else @@ -5428,7 +5434,7 @@ log and this option does nothing anymore.", #endif {"symbolic-links", 's', "Enable symbolic link support.", (gptr*) &my_use_symdir, (gptr*) &my_use_symdir, 0, GET_BOOL, NO_ARG, - 1, 0, 0, 0, 0, 0}, + IF_PURIFY(0,1), 0, 0, 0, 0, 0}, {"sysdate-is-now", OPT_SYSDATE_IS_NOW, "Non-default option to alias SYSDATE() to NOW() to make it safe-replicable. Since 5.0, SYSDATE() returns a `dynamic' value different for different invocations, even within the same statement.", (gptr*) &global_system_variables.sysdate_is_now, @@ -5460,7 +5466,12 @@ log and this option does nothing anymore.", 0, 0, 0, 0, 0}, {"use-symbolic-links", 's', "Enable symbolic link support. Deprecated option; use --symbolic-links instead.", (gptr*) &my_use_symdir, (gptr*) &my_use_symdir, 0, GET_BOOL, NO_ARG, - 1, 0, 0, 0, 0, 0}, + /* + The system call realpath() produces warnings under valgrind and + purify. These are not suppressed: instead we disable symlinks + option if compiled with valgrind support. + */ + IF_PURIFY(0,1), 0, 0, 0, 0, 0}, {"user", 'u', "Run mysqld daemon as user.", 0, 0, 0, GET_STR, REQUIRED_ARG, 0, 0, 0, 0, 0, 0}, {"verbose", 'v', "Used with --help option for detailed help", |