summaryrefslogtreecommitdiff
path: root/sql/handler.cc
diff options
context:
space:
mode:
authoranozdrin/alik@alik. <>2006-11-03 14:00:35 +0300
committeranozdrin/alik@alik. <>2006-11-03 14:00:35 +0300
commit18fb4abff436bc52ddee9bc3d8c0f00a3df7d68e (patch)
tree39242855b0d00f1133fb65da6d14f5ee389394f4 /sql/handler.cc
parent959e90676848a34ee7b6d66653a1d66c8a351c13 (diff)
parent69676574665d5bc86ecf260bb3398f5b01696f43 (diff)
downloadmariadb-git-18fb4abff436bc52ddee9bc3d8c0f00a3df7d68e.tar.gz
Merge alik.:/mnt/raid/alik/MySQL/devel/5.1-monty
into alik.:/mnt/raid/alik/MySQL/devel/5.1-rt-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 288499a46ef..5dedc26969b 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 &&