diff options
author | guilhem@mysql.com <> | 2003-07-11 14:26:44 +0200 |
---|---|---|
committer | guilhem@mysql.com <> | 2003-07-11 14:26:44 +0200 |
commit | fbebac9a484bf08a6f557c40bd502045db6d2356 (patch) | |
tree | 34a41398a9e8bce12d2127daa5a9368be53ca798 /sql/sql_parse.cc | |
parent | 2ca501f7ea66e862ad4b064a175a83bad930f8ba (diff) | |
download | mariadb-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_parse.cc')
-rw-r--r-- | sql/sql_parse.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sql/sql_parse.cc b/sql/sql_parse.cc index 70c0f772d7d..a32dce4d704 100644 --- a/sql/sql_parse.cc +++ b/sql/sql_parse.cc @@ -2432,7 +2432,7 @@ mysql_execute_command(void) lex->sql_command == SQLCOM_REVOKE))) { mysql_update_log.write(thd, thd->query, thd->query_length); - if (mysql_bin_log.is_open()) + if (mysql_bin_log.is_open(1)) { Query_log_event qinfo(thd, thd->query, thd->query_length, 0); mysql_bin_log.write(&qinfo); @@ -2452,7 +2452,7 @@ mysql_execute_command(void) if (!res) { mysql_update_log.write(thd, thd->query, thd->query_length); - if (mysql_bin_log.is_open()) + if (mysql_bin_log.is_open(1)) { Query_log_event qinfo(thd, thd->query, thd->query_length, 0); mysql_bin_log.write(&qinfo); |