summaryrefslogtreecommitdiff
path: root/sql/debug_sync.cc
diff options
context:
space:
mode:
authorMikael Ronstrom <mikael@dator8>2011-03-04 12:44:49 +0100
committerMikael Ronstrom <mikael@dator8>2011-03-04 12:44:49 +0100
commita193425d1e43ac87a2f5ca35860edbae25380b66 (patch)
tree6370e2730d7fc029bbf5c93da63d28985d966bc3 /sql/debug_sync.cc
parentcede2d8d76aa1963b0b16b0065c4fb9f75731e15 (diff)
downloadmariadb-git-a193425d1e43ac87a2f5ca35860edbae25380b66.tar.gz
Added comment on how to expand the use of the debug sync framework for scheduler
Diffstat (limited to 'sql/debug_sync.cc')
-rw-r--r--sql/debug_sync.cc4
1 files changed, 4 insertions, 0 deletions
diff --git a/sql/debug_sync.cc b/sql/debug_sync.cc
index 5ec4953b546..7f69ae54037 100644
--- a/sql/debug_sync.cc
+++ b/sql/debug_sync.cc
@@ -1745,6 +1745,10 @@ static void debug_sync_execute(THD *thd, st_debug_sync_action *action)
We don't use enter_cond()/exit_cond(). They do not save old
mutex and cond. This would prohibit the use of DEBUG_SYNC
between other places of enter_cond() and exit_cond().
+
+ We need to check for existence of thd->mysys_var to also make
+ it possible to use DEBUG_SYNC framework in scheduler when this
+ variable has been set to NULL.
*/
if (thd->mysys_var)
{