MySQL 5.6.14 Source Code Document
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
mtr0mtr.cc File Reference
#include "mtr0mtr.h"
#include "buf0buf.h"
#include "buf0flu.h"
#include "page0types.h"
#include "mtr0log.h"
#include "log0log.h"
#include "log0recv.h"
Include dependency graph for mtr0mtr.cc:

Go to the source code of this file.

Macros

#define mtr_memo_slot_release(mtr, slot)   mtr_memo_slot_release_func(slot)

Functions

UNIV_INTERN ibool mtr_block_dirtied (const buf_block_t *block)
UNIV_INTERN void mtr_commit (mtr_t *mtr)
UNIV_INTERN bool mtr_memo_release (mtr_t *mtr, void *object, ulint type)
UNIV_INTERN ulint mtr_read_ulint (const byte *ptr, ulint type, mtr_t *mtr __attribute__((unused)))

Detailed Description

Mini-transaction buffer

Created 11/26/1995 Heikki Tuuri

Definition in file mtr0mtr.cc.

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

Definition at line 46 of file mtr0mtr.cc.

Here is the call graph for this function:

UNIV_INTERN void mtr_commit ( mtr_t mtr)

Commits a mini-transaction.

Parameters
mtrin: mini-transaction

Definition at line 305 of file mtr0mtr.cc.

Here is the call graph for this function:

Here is the caller graph for this function:

UNIV_INTERN bool mtr_memo_release ( mtr_t mtr,
void *  object,
ulint  type 
)

Releases an object in the memo stack.

Returns
true if released
Parameters
mtrin/out: mini-transaction
objectin: object
typein: object type: MTR_MEMO_S_LOCK, ...

Definition at line 349 of file mtr0mtr.cc.

Here is the call graph for this function:

Here is the caller graph for this function:

UNIV_INTERN ulint mtr_read_ulint ( const byte *  ptr,
ulint  type,
mtr_t *mtr   __attribute__(unused) 
)

Reads 1 - 4 bytes from a file page buffered in the buffer pool.

Returns
value read
Parameters
ptrin: pointer from where to read
typein: MLOG_1BYTE, MLOG_2BYTES, MLOG_4BYTES
__attribute__in: mini-transaction handle

Definition at line 391 of file mtr0mtr.cc.

Here is the call graph for this function: