InnoDB Plugin  1.0
Functions
mtr0mtr.ic File Reference
#include "sync0sync.h"
#include "sync0rw.h"
#include "mach0data.h"
Include dependency graph for mtr0mtr.ic:
This graph shows which files directly or indirectly include this file:

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_tmtr_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)

Detailed Description

Mini-transaction buffer

Created 11/26/1995 Heikki Tuuri

Function Documentation

UNIV_INTERN ibool mtr_block_dirtied ( const buf_block_t block)

Checks if a mini-transaction is dirtying a clean page.

Returns
TRUE if the mtr is dirtying a clean page.
Parameters
blockin: block being x-fixed
UNIV_INLINE dyn_array_t* mtr_get_log ( mtr_t mtr)

Returns the log object of a mini-transaction buffer.

Returns
log
Parameters
mtrin: mini-transaction
UNIV_INLINE ulint mtr_get_log_mode ( mtr_t mtr)

Gets the logging mode of a mini-transaction.

Returns
logging mode: MTR_LOG_NONE, ...
Parameters
mtrin: mtr
UNIV_INLINE bool mtr_memo_contains ( mtr_t mtr,
const void *  object,
ulint  type 
)

Checks if memo contains the given item.

Returns
TRUE if contains
Parameters
mtrin: mtr
objectin: object to search
typein: type of object
UNIV_INLINE void mtr_memo_push ( mtr_t mtr,
void *  object,
ulint  type 
)

Pushes an object to an mtr memo stack.

Parameters
mtrin: mtr
objectin: object
typein: 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.

Parameters
mtrin: mtr
savepointin: savepoint
lockin: latch to release
UNIV_INLINE void mtr_s_lock_func ( rw_lock_t lock,
const char *  file,
ulint  line,
mtr_t mtr 
)

Locks a lock in s-mode.

Parameters
lockin: rw-lock
filein: file name
linein: line number
mtrin: mtr
UNIV_INLINE ulint mtr_set_log_mode ( mtr_t mtr,
ulint  mode 
)

Changes the logging mode of a mini-transaction.

Returns
old mode
Parameters
mtrin: mtr
modein: logging mode: MTR_LOG_NONE, ...
UNIV_INLINE ulint mtr_set_savepoint ( mtr_t mtr)

Sets and returns a savepoint in mtr.

Returns
savepoint
Parameters
mtrin: mtr
UNIV_INLINE void mtr_start ( mtr_t mtr)

Starts a mini-transaction.

Parameters
mtrout: mini-transaction
UNIV_INLINE void mtr_x_lock_func ( rw_lock_t lock,
const char *  file,
ulint  line,
mtr_t mtr 
)

Locks a lock in x-mode.

Parameters
lockin: rw-lock
filein: file name
linein: line number
mtrin: mtr