MySQL 5.6.14 Source Code Document
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
api0misc.cc File Reference
#include <errno.h>
#include "api0misc.h"
#include "trx0roll.h"
#include "srv0srv.h"
#include "dict0mem.h"
#include "dict0dict.h"
#include "pars0pars.h"
#include "row0sel.h"
#include "lock0lock.h"
#include "ha_prototypes.h"
#include <m_ctype.h>
#include <mysys_err.h>
#include <mysql/plugin.h>
Include dependency graph for api0misc.cc:

Go to the source code of this file.

Functions

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

Detailed Description

InnoDB Native API

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

Definition in file api0misc.cc.

Function Documentation

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

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 
)

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: