1
0
mirror of https://github.com/MariaDB/server.git synced 2025-08-01 03:47:19 +03:00

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
This commit is contained in:
Sergei Golubchik
2008-08-07 22:57:25 +02:00
parent 5a4cdba544
commit f8c1059cbf
13 changed files with 61 additions and 63 deletions

View File

@ -22,6 +22,7 @@
#include "log.h"
#include "rpl_tblmap.h"
#include <waiting_threads.h>
class Relay_log_info;
@ -1327,6 +1328,7 @@ public:
THD_TRANS stmt; // Trans for current statement
bool on; // see ha_enable_transaction()
XID_STATE xid_state;
WT_THD wt;
Rows_log_event *m_pending_rows_event;
/*