diff options
author | unknown <monty@narttu.mysql.fi> | 2003-07-14 23:49:19 +0300 |
---|---|---|
committer | unknown <monty@narttu.mysql.fi> | 2003-07-14 23:49:19 +0300 |
commit | 462b47e2d340d8c80dea1f49a982c71fe706a348 (patch) | |
tree | 69ac73f3eda7b552ca805ac6fd697c802f3d585c /sql/log.cc | |
parent | 12ada73a4cb8c361f3f89b64ce35d53d91da6059 (diff) | |
download | mariadb-git-462b47e2d340d8c80dea1f49a982c71fe706a348.tar.gz |
Fixed wrong test in LOG::close
Fixed test for binary build
mysql-test/r/rpl_max_relay_size.result:
Fixed test for binary build
mysql-test/t/rpl_max_relay_size.test:
Fixed test for binary build
sql/log.cc:
Fixed wrong test in close
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)) |