diff options
author | monty@narttu.mysql.fi <> | 2003-07-14 23:49:19 +0300 |
---|---|---|
committer | monty@narttu.mysql.fi <> | 2003-07-14 23:49:19 +0300 |
commit | b1b73137de81f98f09726400adbc0633ce5f21f9 (patch) | |
tree | 69ac73f3eda7b552ca805ac6fd697c802f3d585c /sql/log.cc | |
parent | cda64baab5de0402ef21e1cd8d063061bee175bf (diff) | |
download | mariadb-git-b1b73137de81f98f09726400adbc0633ce5f21f9.tar.gz |
Fixed wrong test in LOG::close
Fixed test for binary build
Diffstat (limited to 'sql/log.cc')
-rw-r--r-- | sql/log.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sql/log.cc b/sql/log.cc index e4bdcf55534..17715620950 100644 --- a/sql/log.cc +++ b/sql/log.cc @@ -584,7 +584,7 @@ bool MYSQL_LOG::reset_logs(THD* thd) } /* Start logging with a new file */ - close(LOG_CLOSE_INDEX | LOG_CLOSE_STOP_EVENT); + close(LOG_CLOSE_INDEX); my_delete(index_file_name, MYF(MY_WME)); // Reset (open will update) if (!thd->slave_thread) need_start_event=1; @@ -1544,7 +1544,7 @@ void MYSQL_LOG::close(uint exiting) { // One can't set log_type here! DBUG_ENTER("MYSQL_LOG::close"); DBUG_PRINT("enter",("exiting: %d", (int) exiting)); - if (is_open()) + if (log_type != LOG_CLOSED && log_type != LOG_TO_BE_OPENED) { if (log_type == LOG_BIN && !no_auto_events && (exiting & LOG_CLOSE_STOP_EVENT)) |