summaryrefslogtreecommitdiff
path: root/sql/handler.cc
diff options
context:
space:
mode:
authorunknown <kostja@bodhi.local>2006-11-02 03:24:11 +0300
committerunknown <kostja@bodhi.local>2006-11-02 03:24:11 +0300
commit31a87fde6a348ccec60975f6e7af2482096564cd (patch)
tree770159509e06fd6a18a7522f82ea24cd83f9b4bb /sql/handler.cc
parenta1db0e72de8805fe0652c7142be5ec59cd659c67 (diff)
parent8c6382f5c65c3e4fce800f77a0a5bfb3188b5729 (diff)
downloadmariadb-git-31a87fde6a348ccec60975f6e7af2482096564cd.tar.gz
Merge bk-internal.mysql.com:/home/bk/mysql-5.1
into bodhi.local:/opt/local/work/mysql-5.1-runtime-merge mysql-test/t/disabled.def: Auto merged mysql-test/t/ps.test: Auto merged sql/handler.cc: Auto merged sql/handler.h: Auto merged sql/item_sum.cc: Auto merged sql/log_event.cc: Auto merged sql/mysql_priv.h: Auto merged sql/mysqld.cc: Auto merged sql/sql_base.cc: Auto merged sql/sql_delete.cc: Auto merged sql/sql_lex.h: Auto merged sql/sql_select.cc: Auto merged sql/sql_view.cc: Auto merged sql/sql_yacc.yy: Auto merged sql/table.cc: Auto merged storage/csv/ha_tina.cc: Auto merged storage/myisam/ha_myisam.cc: Auto merged mysql-test/r/ps.result: SCCS merged
Diffstat (limited to 'sql/handler.cc')
-rw-r--r--sql/handler.cc5
1 files changed, 3 insertions, 2 deletions
diff --git a/sql/handler.cc b/sql/handler.cc
index 280e518b3c5..13fe1ce6f1d 100644
--- a/sql/handler.cc
+++ b/sql/handler.cc
@@ -1483,8 +1483,9 @@ bool handler::check_if_log_table_locking_is_allowed(uint sql_command,
{
/*
Deny locking of the log tables, which is incompatible with
- concurrent insert. Unless called from a logger THD:
- general_log_thd or slow_log_thd.
+ concurrent insert. The routine is not called if the table is
+ being locked from a logger THD (general_log_thd or slow_log_thd)
+ or from a privileged thread (see log.cc for details)
*/
if (table->s->log_table &&
sql_command != SQLCOM_TRUNCATE &&