summaryrefslogtreecommitdiff
path: root/sql/handler.h
diff options
context:
space:
mode:
authorunknown <petr/cps@owlet.local>2006-10-24 17:00:23 +0400
committerunknown <petr/cps@owlet.local>2006-10-24 17:00:23 +0400
commit5aa81b561e9d1604533c37498c471cd853fb72a5 (patch)
tree2b7e93bbe62a86d3dc9de1c82450398a83d59e1a /sql/handler.h
parent66b872805cbd542c6012eef7141443d95a697f7d (diff)
parent9438b9851901c48f8e280c2665f9469c2f998c2f (diff)
downloadmariadb-git-5aa81b561e9d1604533c37498c471cd853fb72a5.tar.gz
Merge pchardin@bk-internal.mysql.com:/home/bk/mysql-5.1-runtime
into mysql.com:/home/cps/mysql/devel/5.1-rename-bug mysql-test/r/log_tables.result: Auto merged mysql-test/t/log_tables.test: Auto merged sql/handler.cc: Auto merged sql/handler.h: Auto merged sql/log.h: Auto merged sql/mysql_priv.h: Auto merged sql/sql_delete.cc: Auto merged sql/sql_rename.cc: Auto merged sql/table.cc: Auto merged storage/csv/ha_tina.cc: Auto merged storage/myisam/ha_myisam.cc: Auto merged sql/log.cc: manual merge sql/share/errmsg.txt: manual merge sql/sql_table.cc: manual merge
Diffstat (limited to 'sql/handler.h')
-rw-r--r--sql/handler.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/sql/handler.h b/sql/handler.h
index 5e26d9c7b63..cf9242ce92f 100644
--- a/sql/handler.h
+++ b/sql/handler.h
@@ -975,6 +975,10 @@ public:
thd Handler of the thread, trying to lock the table
table Table handler to check
count Number of locks already granted to the table
+ called_by_privileged_thread TRUE if called from a logger THD
+ (general_log_thd or slow_log_thd)
+ or by a privileged thread, which
+ has the right to lock log tables.
DESCRIPTION
Check whether a handler allows to lock the table. For instance,
@@ -990,7 +994,7 @@ public:
virtual bool check_if_locking_is_allowed(uint sql_command,
ulong type, TABLE *table,
uint count,
- bool called_by_logger_thread)
+ bool called_by_privileged_thread)
{
return TRUE;
}