diff options
author | Sinisa@sinisa.nasamreza.org <> | 2002-07-09 14:57:06 +0300 |
---|---|---|
committer | Sinisa@sinisa.nasamreza.org <> | 2002-07-09 14:57:06 +0300 |
commit | d78713899117e54535243428551d110c1b4dffe1 (patch) | |
tree | 0c8d0aad6b668d6f8c86c62684f25dd2397bada1 | |
parent | 7dce4bd3407d8c27253875fd9dd153e7d71162ab (diff) | |
download | mariadb-git-d78713899117e54535243428551d110c1b4dffe1.tar.gz |
This is the only way to fix ALTER TABLE bug with BDB
I wish I had connection stop / start so that I could have made a
test case.
-rw-r--r-- | Docs/manual.texi | 2 | ||||
-rw-r--r-- | sql/sql_table.cc | 6 |
2 files changed, 7 insertions, 1 deletions
diff --git a/Docs/manual.texi b/Docs/manual.texi index 55ac278155f..209751aa4dc 100644 --- a/Docs/manual.texi +++ b/Docs/manual.texi @@ -46928,6 +46928,8 @@ not yet 100% confident in this code. @appendixsubsec Changes in release 3.23.52 @itemize @bullet @item +Fixed bug in ALTERing TABLE of BDB type. +@item Fixed bug when logging @code{LOAD DATA INFILE} to binary log with no active database. @item diff --git a/sql/sql_table.cc b/sql/sql_table.cc index 7b5fc5797c9..ce3415f10fb 100644 --- a/sql/sql_table.cc +++ b/sql/sql_table.cc @@ -1652,7 +1652,11 @@ int mysql_alter_table(THD *thd,char *new_db, char *new_name, VOID(pthread_mutex_unlock(&LOCK_open)); goto err; } - +#ifdef HAVE_BERKELEY_DB + extern bool berkeley_flush_logs(void); + if (old_db_type == DB_TYPE_BERKELEY_DB && berkeley_flush_logs()) + goto err; +#endif thd->proc_info="end"; mysql_update_log.write(thd, thd->query,thd->query_length); if (mysql_bin_log.is_open()) |