InnoDB Plugin
1.0
|
Functions | |
UNIV_INTERN ibool | mtr_block_dirtied (const buf_block_t *block)) |
UNIV_INLINE void | mtr_start (mtr_t *mtr) |
UNIV_INLINE void | mtr_memo_push (mtr_t *mtr, void *object, ulint type) |
UNIV_INLINE ulint | mtr_set_savepoint (mtr_t *mtr) |
UNIV_INLINE void | mtr_release_s_latch_at_savepoint (mtr_t *mtr, ulint savepoint, rw_lock_t *lock) |
UNIV_INLINE bool | mtr_memo_contains (mtr_t *mtr, const void *object, ulint type) |
UNIV_INLINE dyn_array_t * | mtr_get_log (mtr_t *mtr) |
UNIV_INLINE ulint | mtr_get_log_mode (mtr_t *mtr) |
UNIV_INLINE ulint | mtr_set_log_mode (mtr_t *mtr, ulint mode) |
UNIV_INLINE void | mtr_s_lock_func (rw_lock_t *lock, const char *file, ulint line, mtr_t *mtr) |
UNIV_INLINE void | mtr_x_lock_func (rw_lock_t *lock, const char *file, ulint line, mtr_t *mtr) |
Mini-transaction buffer
Created 11/26/1995 Heikki Tuuri
UNIV_INTERN ibool mtr_block_dirtied | ( | const buf_block_t * | block | ) |
Checks if a mini-transaction is dirtying a clean page.
block | in: block being x-fixed |
UNIV_INLINE dyn_array_t* mtr_get_log | ( | mtr_t * | mtr | ) |
Returns the log object of a mini-transaction buffer.
mtr | in: mini-transaction |
UNIV_INLINE ulint mtr_get_log_mode | ( | mtr_t * | mtr | ) |
Gets the logging mode of a mini-transaction.
mtr | in: mtr |
UNIV_INLINE bool mtr_memo_contains | ( | mtr_t * | mtr, |
const void * | object, | ||
ulint | type | ||
) |
Checks if memo contains the given item.
mtr | in: mtr |
object | in: object to search |
type | in: type of object |
UNIV_INLINE void mtr_memo_push | ( | mtr_t * | mtr, |
void * | object, | ||
ulint | type | ||
) |
Pushes an object to an mtr memo stack.
mtr | in: mtr |
object | in: object |
type | in: object type: MTR_MEMO_S_LOCK, ... |
UNIV_INLINE void mtr_release_s_latch_at_savepoint | ( | mtr_t * | mtr, |
ulint | savepoint, | ||
rw_lock_t * | lock | ||
) |
Releases the (index tree) s-latch stored in an mtr memo after a savepoint.
mtr | in: mtr |
savepoint | in: savepoint |
lock | in: latch to release |
Locks a lock in s-mode.
lock | in: rw-lock |
file | in: file name |
line | in: line number |
mtr | in: mtr |
UNIV_INLINE ulint mtr_set_log_mode | ( | mtr_t * | mtr, |
ulint | mode | ||
) |
Changes the logging mode of a mini-transaction.
mtr | in: mtr |
mode | in: logging mode: MTR_LOG_NONE, ... |
UNIV_INLINE ulint mtr_set_savepoint | ( | mtr_t * | mtr | ) |
Sets and returns a savepoint in mtr.
mtr | in: mtr |
UNIV_INLINE void mtr_start | ( | mtr_t * | mtr | ) |
Starts a mini-transaction.
mtr | out: mini-transaction |