summaryrefslogtreecommitdiff
path: root/sql/sql_table.cc
diff options
context:
space:
mode:
authorunknown <Sinisa@sinisa.nasamreza.org>2002-07-09 14:57:06 +0300
committerunknown <Sinisa@sinisa.nasamreza.org>2002-07-09 14:57:06 +0300
commita0a0af76fa53eb22579bcdf0879c6c9576cbc534 (patch)
tree0c8d0aad6b668d6f8c86c62684f25dd2397bada1 /sql/sql_table.cc
parent68c79127dc3258b1901556a3a9714822e27d454e (diff)
downloadmariadb-git-a0a0af76fa53eb22579bcdf0879c6c9576cbc534.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. Docs/manual.texi: This is the only way to fix ALTER TABLE bug with BDB sql/sql_table.cc: This is the only way to fix ALTER TABLE bug with BDB
Diffstat (limited to 'sql/sql_table.cc')
-rw-r--r--sql/sql_table.cc6
1 files changed, 5 insertions, 1 deletions
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())