diff options
author | Marko Mäkelä <marko.makela@mariadb.com> | 2022-09-26 13:34:38 +0300 |
---|---|---|
committer | Marko Mäkelä <marko.makela@mariadb.com> | 2022-09-26 13:34:38 +0300 |
commit | 6286a05d80f9911b7cd6ba57b04a6f67d39e499d (patch) | |
tree | 97a8a27c2d99a4474181e32602414d94944bfd80 /sql/sql_cache.cc | |
parent | 0792aff161132fb953510555fe45544991dec95d (diff) | |
parent | 3c92050d1c907cc548e848d0ab2891a06681ad92 (diff) | |
download | mariadb-git-6286a05d80f9911b7cd6ba57b04a6f67d39e499d.tar.gz |
Merge 10.4 into 10.5
Diffstat (limited to 'sql/sql_cache.cc')
-rw-r--r-- | sql/sql_cache.cc | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/sql/sql_cache.cc b/sql/sql_cache.cc index 520fbdc0ff2..60ac8274d84 100644 --- a/sql/sql_cache.cc +++ b/sql/sql_cache.cc @@ -4767,7 +4767,7 @@ void Query_cache::cache_dump() void Query_cache::queries_dump() { - +#ifdef DBUG_TRACE if (!initialized) { DBUG_PRINT("qcache", ("Query Cache not initialized")); @@ -4828,11 +4828,13 @@ void Query_cache::queries_dump() DBUG_PRINT("qcache", ("no queries in list")); } DBUG_PRINT("qcache", ("------------------")); +#endif } void Query_cache::tables_dump() { +#ifdef DBUG_TRACE if (!initialized || query_cache_size == 0) { DBUG_PRINT("qcache", ("Query Cache not initialized")); @@ -4855,6 +4857,7 @@ void Query_cache::tables_dump() else DBUG_PRINT("qcache", ("no tables in list")); DBUG_PRINT("qcache", ("--------------------")); +#endif } |