39#define TRX_I_S_MEM_LIMIT 16777216
43#define TRX_I_S_LOCK_DATA_MAX_LEN 8192
47#define TRX_I_S_TRX_QUERY_MAX_LEN 1024
51#define TRX_I_S_TRX_OP_STATE_MAX_LEN 64
55#define TRX_I_S_TRX_FK_ERROR_MAX_LEN 256
59#define TRX_I_S_TRX_ISOLATION_LEVEL_MAX_LEN 16
63#define TRX_I_S_STRING_COPY(data, field, constraint, tcache) \
65 if (strlen(data) > constraint) { \
66 char buff[constraint + 1]; \
67 strncpy(buff, data, constraint); \
68 buff[constraint] = '\0'; \
70 field = static_cast<const char *>(ha_storage_put_memlim( \
71 (tcache)->storage, buff, constraint + 1,\
72 MAX_ALLOWED_FOR_STORAGE(tcache))); \
74 field = static_cast<const char *>(ha_storage_put_str_memlim( \
75 (tcache)->storage, data, \
76 MAX_ALLOWED_FOR_STORAGE(tcache))); \
291#define TRX_I_S_LOCK_ID_MAX_LEN (TRX_ID_MAX_LEN + 63)
const i_s_locks_row_t * blocking_lock_row
const i_s_locks_row_t * requested_lock_row
i_s_hash_chain_t hash_chain
ulint trx_search_latch_timeout
const i_s_locks_row_t * requested_lock_row
const char * trx_operation_state
ulint trx_lock_memory_bytes
ib_time_t trx_wait_started
ibool trx_foreign_key_checks
const char * trx_foreign_key_error
ulint trx_concurrency_tickets
ulint trx_mysql_thread_id
const char * trx_isolation_level
ibool trx_has_search_latch
UNIV_INTERN int trx_i_s_possibly_fetch_data_into_cache(trx_i_s_cache_t *cache)
UNIV_INTERN void trx_i_s_cache_start_write(trx_i_s_cache_t *cache)
struct trx_i_s_cache_struct trx_i_s_cache_t
UNIV_INTERN void trx_i_s_cache_start_read(trx_i_s_cache_t *cache)
UNIV_INTERN void trx_i_s_cache_end_read(trx_i_s_cache_t *cache)
struct i_s_trx_row_struct i_s_trx_row_t
trx_i_s_cache_t * trx_i_s_cache
struct i_s_hash_chain_struct i_s_hash_chain_t
UNIV_INTERN void * trx_i_s_cache_get_nth_row(trx_i_s_cache_t *cache, enum i_s_table table, ulint n)
struct i_s_locks_row_struct i_s_locks_row_t
UNIV_INTERN void trx_i_s_cache_end_write(trx_i_s_cache_t *cache)
UNIV_INTERN void trx_i_s_cache_free(trx_i_s_cache_t *cache)
UNIV_INTERN ibool trx_i_s_cache_is_truncated(trx_i_s_cache_t *cache)
struct i_s_lock_waits_row_struct i_s_lock_waits_row_t
UNIV_INTERN void trx_i_s_cache_init(trx_i_s_cache_t *cache)
UNIV_INTERN char * trx_i_s_create_lock_id(const i_s_locks_row_t *row, char *lock_id, ulint lock_id_size)
UNIV_INTERN ulint trx_i_s_cache_get_rows_used(trx_i_s_cache_t *cache, enum i_s_table table)