diff options
author | Luis Soares <luis.soares@sun.com> | 2010-07-08 10:02:43 +0100 |
---|---|---|
committer | Luis Soares <luis.soares@sun.com> | 2010-07-08 10:02:43 +0100 |
commit | 9f912ebf78d0177158de7552d9ad86789af73237 (patch) | |
tree | a261f864b53dcc270c7c7ef4672059c1bc5510ff /sql/sql_table.cc | |
parent | f8f0eb8a3682780383469d14dfa424bc3119b068 (diff) | |
parent | e5142047589835a8eb9587656f5ff40d8389c487 (diff) | |
download | mariadb-git-9f912ebf78d0177158de7552d9ad86789af73237.tar.gz |
BUG 54925: automerged bzr bundle from bug report.
Diffstat (limited to 'sql/sql_table.cc')
-rw-r--r-- | sql/sql_table.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sql/sql_table.cc b/sql/sql_table.cc index da065c450af..f300ecec2c6 100644 --- a/sql/sql_table.cc +++ b/sql/sql_table.cc @@ -2202,7 +2202,7 @@ int mysql_rm_table_part2(THD *thd, TABLE_LIST *tables, bool if_exists, if (some_tables_deleted || tmp_table_deleted || !error) { query_cache_invalidate3(thd, tables, 0); - if (!dont_log_query) + if (!dont_log_query && mysql_bin_log.is_open()) { if (!thd->is_current_stmt_binlog_format_row() || (non_temp_tables_count > 0 && !tmp_table_deleted)) |