From eb5a21dd909b2001235c7b8cf05075ebc170f6ea Mon Sep 17 00:00:00 2001 From: Davi Arnaut Date: Wed, 15 Dec 2010 20:38:43 -0200 Subject: [PATCH] Bug#58953: 5.5 does not build with -DWITHOUT_PERFSCHEMA_STORAGE_ENGINE=1 The MYSQL_LOG::open member function does not take a PSI key file argument when the PSI interface is not present. --- sql/log.cc | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/sql/log.cc b/sql/log.cc index 4873cfd49c3..d8c37c5cf5d 100644 --- a/sql/log.cc +++ b/sql/log.cc @@ -2981,7 +2981,10 @@ bool MYSQL_BIN_LOG::open(const char *log_name, write_error= 0; /* open the main log file */ - if (MYSQL_LOG::open(key_file_binlog, + if (MYSQL_LOG::open( +#ifdef HAVE_PSI_INTERFACE + key_file_binlog, +#endif log_name, log_type_arg, new_name, io_cache_type_arg)) { #ifdef HAVE_REPLICATION