MySQL 9.1.0
Source Code Documentation
|
InnoDB Native API. More...
#include "api0misc.h"
#include "dict0dict.h"
#include "dict0mem.h"
#include "ha_prototypes.h"
#include "lock0lock.h"
#include "pars0pars.h"
#include "row0sel.h"
#include "srv0srv.h"
#include "trx0roll.h"
Functions | |
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. More... | |
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... | |
InnoDB Native API.
2008-08-01 Created by Sunny Bains 3/20/2011 Jimmy Yang extracted from Embedded InnoDB
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.
[out] | new_err | possible new error encountered in lock wait, or if no new error, the value of trx->error_state at the entry of this function |
[in] | trx | transaction |
[in] | thr | query thread |
[in] | savept | savepoint or NULL |
[in] | is_sdi | true if table is SDI |
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.
in: lock mode
trx | in/out: transaction |
table | in: table to lock |
mode | in: LOCK_X or LOCK_S |