MySQL 9.1.0
Source Code Documentation
api0misc.h File Reference

InnoDB Native API. More...

#include <sys/types.h>
#include "handler.h"
#include "os0file.h"
#include "que0que.h"
#include "trx0trx.h"
#include "univ.i"

Go to the source code of this file.

Classes

struct  ib_sdi_key
 
struct  ib_sdi_vector
 

Functions

bool ib_handle_errors (dberr_t *new_err, trx_t *trx, que_thr_t *thr, trx_savept_t *savept, bool is_sdi)
 Handles user errors and lock waits detected by the database engine. More...
 
dberr_t ib_trx_lock_table_with_retry (trx_t *trx, dict_table_t *table, enum lock_mode mode)
 in: lock mode More...
 

Variables

bool ib_binlog_enabled
 Whether binlog is enabled for applications using InnoDB APIs. More...
 
bool ib_mdl_enabled
 Whether MySQL MDL is enabled for applications using InnoDB APIs. More...
 
bool ib_disable_row_lock
 Whether InnoDB row lock is disabled for applications using InnoDB APIs. More...
 
ulong ib_trx_level_setting
 configure value for transaction isolation level More...
 
ulong ib_bk_commit_interval
 configure value for background commit interval (in seconds) More...
 

Detailed Description

InnoDB Native API.

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

Function Documentation

◆ ib_handle_errors()

bool ib_handle_errors ( dberr_t new_err,
trx_t trx,
que_thr_t thr,
trx_savept_t savept,
bool  is_sdi 
)

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

Parameters
[out]new_errpossible new error encountered in lock wait, or if no new error, the value of trx->error_state at the entry of this function
[in]trxtransaction
[in]thrquery thread
[in]saveptsavepoint or NULL
[in]is_sditrue if table is SDI
Returns
true if it was a lock wait and we should continue running the query thread.

◆ ib_trx_lock_table_with_retry()

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

in: lock mode

in: lock mode

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

Variable Documentation

◆ ib_binlog_enabled

bool ib_binlog_enabled
extern

Whether binlog is enabled for applications using InnoDB APIs.

Whether binlog is enabled for applications using InnoDB APIs.

◆ ib_bk_commit_interval

ulong ib_bk_commit_interval
extern

configure value for background commit interval (in seconds)

configure value for background commit interval (in seconds)

◆ ib_disable_row_lock

bool ib_disable_row_lock
extern

Whether InnoDB row lock is disabled for applications using InnoDB APIs.

Whether InnoDB row lock is disabled for applications using InnoDB APIs.

◆ ib_mdl_enabled

bool ib_mdl_enabled
extern

Whether MySQL MDL is enabled for applications using InnoDB APIs.

Whether MySQL MDL is enabled for applications using InnoDB APIs.

◆ ib_trx_level_setting

ulong ib_trx_level_setting
extern

configure value for transaction isolation level

configure value for transaction isolation level