diff options
author | Sergei Golubchik <serg@mysql.com> | 2008-08-07 22:57:25 +0200 |
---|---|---|
committer | Sergei Golubchik <serg@mysql.com> | 2008-08-07 22:57:25 +0200 |
commit | f8c1059cbf62e95d2684fdf8b9badc398f845173 (patch) | |
tree | 7bc29e1219370afd3f03b8a9fdf4f2097ee0d106 /include/waiting_threads.h | |
parent | 5a4cdba54415faf7dd0b5afdb8ed683dea1c126b (diff) | |
download | mariadb-git-f8c1059cbf62e95d2684fdf8b9badc398f845173.tar.gz |
move wt* maintainance from maria to the server
include/waiting_threads.h:
C_MODE_START/END
mysys/waiting_threads.c:
relax the checks - auto init thd in will_wait_for,
allow to destroy uninited thd (=noop),
allow a "release" an unexistent resource (=noop),
sql/sql_class.cc:
move wt* maintainance from maria to the server.
do THD::cleanup after ha_close_connection() and plugin_thdvar_cleanup().
storage/maria/unittest/trnman-t.c:
update to new prototype
Diffstat (limited to 'include/waiting_threads.h')
-rw-r--r-- | include/waiting_threads.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/include/waiting_threads.h b/include/waiting_threads.h index 6355a83b13d..cf55e586d48 100644 --- a/include/waiting_threads.h +++ b/include/waiting_threads.h @@ -18,6 +18,9 @@ #include <my_global.h> #include <my_sys.h> + +C_MODE_START + #include <lf.h> typedef struct st_wt_resource_id WT_RESOURCE_ID; @@ -155,4 +158,6 @@ void wt_thd_release(WT_THD *, WT_RESOURCE_ID *); #define wt_thd_release_all(THD) wt_thd_release((THD), 0) int wt_resource_id_memcmp(void *, void *); +C_MODE_END + #endif |