From 3ecbb5a4437a1ce8be7a5c83354ff698846602cc Mon Sep 17 00:00:00 2001 From: "serg@janus.mylan" <> Date: Fri, 13 Apr 2007 19:23:02 +0200 Subject: wl#2936 - fixing problems --- storage/example/ha_example.cc | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'storage/example') diff --git a/storage/example/ha_example.cc b/storage/example/ha_example.cc index bde6c41d777..8f3d9fca7b7 100644 --- a/storage/example/ha_example.cc +++ b/storage/example/ha_example.cc @@ -717,6 +717,11 @@ int ha_example::external_lock(THD *thd, int lock_type) Called from lock.cc by get_lock_data(). + @note + In this method one should NEVER rely on table->in_use, it may, in fact, + refer to a different thread! (this happens if get_lock_data() is called + from mysql_lock_abort_for_thread() function) + @see get_lock_data() in lock.cc */ -- cgit v1.2.1