summaryrefslogtreecommitdiff
path: root/sql/sql_base.cc
diff options
context:
space:
mode:
authorguilhem@mysql.com <>2003-07-11 14:26:44 +0200
committerguilhem@mysql.com <>2003-07-11 14:26:44 +0200
commitfbebac9a484bf08a6f557c40bd502045db6d2356 (patch)
tree34a41398a9e8bce12d2127daa5a9368be53ca798 /sql/sql_base.cc
parent2ca501f7ea66e862ad4b064a175a83bad930f8ba (diff)
downloadmariadb-git-fbebac9a484bf08a6f557c40bd502045db6d2356.tar.gz
Fix for BUG#791:
a safer way of initing the mutexes in MYSQL_LOG. is_open() is now always thread-safe. See each file for details.
Diffstat (limited to 'sql/sql_base.cc')
-rw-r--r--sql/sql_base.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/sql/sql_base.cc b/sql/sql_base.cc
index 43718e5d93b..217597ccda5 100644
--- a/sql/sql_base.cc
+++ b/sql/sql_base.cc
@@ -574,7 +574,7 @@ void close_temporary_tables(THD *thd)
next=table->next;
close_temporary(table);
}
- if (query && found_user_tables && mysql_bin_log.is_open())
+ if (query && found_user_tables && mysql_bin_log.is_open(1))
{
/* The -1 is to remove last ',' */
Query_log_event qinfo(thd, query, (ulong)(end-query)-1, 0);