summaryrefslogtreecommitdiff
path: root/sql/handler.h
diff options
context:
space:
mode:
authorunknown <serg@janus.mylan>2007-04-13 19:23:02 +0200
committerunknown <serg@janus.mylan>2007-04-13 19:23:02 +0200
commitbf2aaad97d0ff65a4a79f9012b4443d4d6dbd6e8 (patch)
treec318326d7c94a04b34753308fce3a0bb1b38f53e /sql/handler.h
parent1e6bd48ccbd725c298453cf6c7645b430529fe43 (diff)
downloadmariadb-git-bf2aaad97d0ff65a4a79f9012b4443d4d6dbd6e8.tar.gz
wl#2936 - fixing problems
include/mysql/plugin.h: warning. no int/realsize mysys/my_getopt.c: combination of prefixes (e.g. --loose-skip-) didn't work sql/event_queue.cc: warning sql/handler.cc: assert sql/handler.h: comment sql/item_create.cc: warnings sql/log.cc: warnings sql/mysqld.cc: wl#2936 - fixing problems (memory leak in load_defaults, garbage in opt_[slow_]logname sql/partition_element.h: warnings sql/rpl_utility.h: warnings sql/set_var.cc: comment sql/set_var.h: warnings sql/sql_class.cc: warnings sql/sql_parse.cc: warnings sql/sql_plugin.cc: wl#2936 - fixing problems: portability, coding style, reporting of spurious errors, crashes, incorrect help output storage/example/ha_example.cc: comment storage/innobase/handler/ha_innodb.cc: wl#2936 - fixing problems (crash)
Diffstat (limited to 'sql/handler.h')
-rw-r--r--sql/handler.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/sql/handler.h b/sql/handler.h
index fbdd48fcc6d..076fffe142e 100644
--- a/sql/handler.h
+++ b/sql/handler.h
@@ -1516,6 +1516,10 @@ public:
/* lock_count() can be more than one if the table is a MERGE */
virtual uint lock_count(void) const { return 1; }
+ /*
+ NOTE that one can NOT rely on table->in_use in store_lock(). It may
+ refer to a different thread if called from mysql_lock_abort_for_thread().
+ */
virtual THR_LOCK_DATA **store_lock(THD *thd,
THR_LOCK_DATA **to,
enum thr_lock_type lock_type)=0;