diff options
author | unknown <monty@hundin.mysql.fi> | 2001-12-17 04:16:10 +0200 |
---|---|---|
committer | unknown <monty@hundin.mysql.fi> | 2001-12-17 04:16:10 +0200 |
commit | a5978adfe180728d17403804bd8aa638b4f4d1d6 (patch) | |
tree | e7a32cee8c54344fdb1c56cd256fc499279ff079 /sql | |
parent | 3ca9e15c3b6d89756b63afdaf450f2380b162c33 (diff) | |
download | mariadb-git-a5978adfe180728d17403804bd8aa638b4f4d1d6.tar.gz |
Don't use symlinks when using HAVE_purify.
Fix compile problem in sql_cache.cc
sql/mysqld.cc:
Don't use symlinks if you are using HAVE_purify
sql/sql_cache.cc:
Don't call bins_dump() when not debugging.
Diffstat (limited to 'sql')
-rw-r--r-- | sql/mysqld.cc | 7 | ||||
-rw-r--r-- | sql/sql_cache.cc | 2 |
2 files changed, 9 insertions, 0 deletions
diff --git a/sql/mysqld.cc b/sql/mysqld.cc index 60dd45bc1f2..ab7c68f0742 100644 --- a/sql/mysqld.cc +++ b/sql/mysqld.cc @@ -3556,7 +3556,14 @@ static void get_options(int argc,char **argv) int c,option_index=0; myisam_delay_key_write=1; // Allow use of this +#ifndef HAVE_purify my_use_symdir=1; // Use internal symbolic links +#else + /* Symlinks gives too many warnings with purify */ + my_disable_symlinks=1; + my_use_symdir=0; + have_symlink=SHOW_OPTION_DISABLED; +#endif optind = 0; // setup in case getopt() was called previously while ((c=getopt_long(argc,argv,"ab:C:h:#::T::?l::L:O:P:sS::t:u:noVvWI?", diff --git a/sql/sql_cache.cc b/sql/sql_cache.cc index c4dc56620d8..8364373730e 100644 --- a/sql/sql_cache.cc +++ b/sql/sql_cache.cc @@ -2160,7 +2160,9 @@ uint Query_cache::find_bin(ulong size) } uint bin = steps[left].idx - (uint)((size - steps[left].size)/steps[left].increment); +#ifndef DBUG_OFF bins_dump(); +#endif DBUG_PRINT("qcache", ("bin %u step %u, size %lu step size %lu", bin, left, size, steps[left].size)); DBUG_RETURN(bin); |