|
MySQL 5.6.14 Source Code Document
|
#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>
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) |
InnoDB Native API
2008-08-01 Created by Sunny Bains 3/20/2011 Jimmy Yang extracted from Embedded InnoDB
Definition in file api0misc.cc.
| 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.
| new_err | out: possible new error encountered in lock wait, or if no new error, the value of trx->error_state at the entry of this function |
| trx | in: transaction |
| thr | in: query thread |
| savept | in: savepoint or NULL |
Definition at line 127 of file api0misc.cc.


| 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.
| trx | in/out: transaction |
| table | in: table to lock |
| mode | in: LOCK_X or LOCK_S |
Definition at line 51 of file api0misc.cc.

