21 #include <my_global.h>
26 #include "ndb_share.h"
28 #include <kernel/ndb_limits.h>
36 TNO_NO_LOG_SCHEMA_OP= 1 << 0,
41 TNO_NO_LOCK_SCHEMA_OP= 1 << 1
48 ,TNO_NO_NDB_DROP_TABLE= 1 << 2
51 enum THD_NDB_TRANS_OPTIONS
53 TNTO_INJECTED_APPLY_STATUS= 1 << 0
54 ,TNTO_NO_LOGGING= 1 << 1
55 ,TNTO_TRANSACTIONS_OFF= 1 << 2
66 static void release(
Thd_ndb* thd_ndb);
68 void init_open_tables();
75 uint start_stmt_count;
76 uint save_point_count;
101 uint m_pruned_scan_count;
128 uint m_transaction_no_hint_count[MAX_NDB_NODES];
129 uint m_transaction_hint_count[MAX_NDB_NODES];
132 uint global_schema_lock_count;
133 uint global_schema_lock_error;
134 uint schema_locks_count;
135 bool has_required_global_schema_lock(
const char* func);
137 unsigned m_connect_count;
138 bool valid_ndb(
void);
139 bool recycle_ndb(THD* thd);