diff options
Diffstat (limited to 'sql/sql_class.cc')
-rw-r--r-- | sql/sql_class.cc | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/sql/sql_class.cc b/sql/sql_class.cc index a99e375cfbd..54bc4b9959f 100644 --- a/sql/sql_class.cc +++ b/sql/sql_class.cc @@ -1466,7 +1466,9 @@ void THD::init(void) debug_sync_init_thread(this); #endif /* defined(ENABLED_DEBUG_SYNC) */ +#ifndef EMBEDDED_LIBRARY session_tracker.enable(this); +#endif //EMBEDDED_LIBRARY apc_target.init(&LOCK_thd_data); DBUG_VOID_RETURN; @@ -1768,7 +1770,9 @@ THD::~THD() status_var.local_memory_used-= sizeof(THD); /* trick to make happy memory accounting system */ +#ifndef EMBEDDED_LIBRARY session_tracker.deinit(); +#endif //EMBEDDED_LIBRARY if (status_var.local_memory_used != 0) { |