MySQL 5.6.14 Source Code Document
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
api0misc.h File Reference
#include "univ.i"
#include "os0file.h"
#include "que0que.h"
Include dependency graph for api0misc.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

UNIV_INTERN ibool ib_handle_errors (dberr_t *new_err, trx_t *trx, que_thr_t *thr, trx_savept_t *savept)
UNIV_INTERN dberr_t ib_trx_lock_table_with_retry (trx_t *trx, dict_table_t *table, enum lock_mode mode)

Variables

my_bool ib_binlog_enabled
my_bool ib_mdl_enabled
my_bool ib_disable_row_lock
ulong ib_trx_level_setting
ulong ib_bk_commit_interval

Detailed Description

InnoDB Native API

3/20/2011 Jimmy Yang extracted from Embedded InnoDB 2008 Created by Sunny Bains

Definition in file api0misc.h.

Function Documentation

UNIV_INTERN ibool ib_handle_errors ( dberr_t new_err,
trx_t trx,
que_thr_t thr,
trx_savept_t savept 
)

in: savepoint or NULL

Handles user errors and lock waits detected by the database engine.

Returns
TRUE if it was a lock wait and we should continue running the query thread
Parameters
new_errout: possible new error encountered in lock wait, or if no new error, the value of trx->error_state at the entry of this function
trxin: transaction
thrin: query thread
saveptin: savepoint or NULL

Definition at line 127 of file api0misc.cc.

Here is the call graph for this function:

Here is the caller graph for this function:

UNIV_INTERN dberr_t ib_trx_lock_table_with_retry ( trx_t trx,
dict_table_t table,
enum lock_mode  mode 
)

in: lock mode

Sets a lock on a table.

Returns
error code or DB_SUCCESS
Parameters
trxin/out: transaction
tablein: table to lock
modein: LOCK_X or LOCK_S

Definition at line 51 of file api0misc.cc.

Here is the call graph for this function:

Here is the caller graph for this function:

Variable Documentation

my_bool ib_binlog_enabled

Whether binlog is enabled for applications using InnoDB APIs

configure variable for binlog option with InnoDB APIs

Definition at line 60 of file api0api.cc.

ulong ib_bk_commit_interval

configure value for background commit interval (in seconds)

configure variable for background commit interval in seconds

Definition at line 72 of file api0api.cc.

my_bool ib_disable_row_lock

Whether InnoDB row lock is disabled for applications using InnoDB APIs

configure variable for disable rowlock with InnoDB APIs

Definition at line 66 of file api0api.cc.

my_bool ib_mdl_enabled

Whether MySQL MDL is enabled for applications using InnoDB APIs

configure variable for MDL option with InnoDB APIs

Definition at line 63 of file api0api.cc.

ulong ib_trx_level_setting

configure value for transaction isolation level

configure variable for Transaction isolation levels

Definition at line 69 of file api0api.cc.