diff options
author | unknown <serg@serg.mylan> | 2005-03-02 10:38:25 +0100 |
---|---|---|
committer | unknown <serg@serg.mylan> | 2005-03-02 10:38:25 +0100 |
commit | e1ba1632fbb444adea39054f6cc1e58e9d1c3ee0 (patch) | |
tree | 0a3763d580d8a0b6c35f57645a284ced29d5939d /sql/log_event.cc | |
parent | 6ed8bf967aadb39a14bf35180450d80bc56b9b04 (diff) | |
download | mariadb-git-e1ba1632fbb444adea39054f6cc1e58e9d1c3ee0.tar.gz |
bug#8151 - truncate leaves a transaction open
deadlock in MYSQL_LOG::new_file()
style fixes
mysql-test/r/innodb.result:
one more test for truncate
mysql-test/t/innodb.test:
one more test for truncate
sql/ha_innodb.cc:
bug#8151 - truncate leaves a transaction open
sql/handler.cc:
bug#8151 - truncate leaves a transaction open
sql/item.h:
style fix
sql/item_cmpfunc.cc:
style fix
sql/item_cmpfunc.h:
style fix
sql/item_func.cc:
style fix
sql/item_func.h:
style fix
sql/log.cc:
let new_file() to lock LOCK_index,
don't check for prepared_xids in rotate_and_purge()
increase thread_safe_increment when LOCK_log is taken
sql/log_event.cc:
mysqlbinlog now prints a warning if binlog was not closed properly
sql/sql_class.h:
comments
sql/sql_repl.cc:
DBUG_ENTER tag corrected
Diffstat (limited to 'sql/log_event.cc')
-rw-r--r-- | sql/log_event.cc | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/sql/log_event.cc b/sql/log_event.cc index 7f92159208b..813636a9ba5 100644 --- a/sql/log_event.cc +++ b/sql/log_event.cc @@ -1684,6 +1684,9 @@ void Start_log_event_v3::print(FILE* file, bool short_form, LAST_EVENT_INFO* las if (created) fprintf(file," at startup"); fputc('\n', file); + if (flags & LOG_EVENT_BINLOG_IN_USE_F) + fprintf(file, "# Warning: this binlog was not closed properly. " + "Most probably mysqld crashed writing it.\n"); } if (!artificial_event && created) { |