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

Functions

UNIV_INTERN void buf_flush_insert_into_flush_list (buf_pool_t *buf_pool, buf_block_t *block, lsn_t lsn)
UNIV_INTERN void buf_flush_insert_sorted_into_flush_list (buf_pool_t *buf_pool, buf_block_t *block, lsn_t lsn)
UNIV_INLINE void buf_flush_note_modification (buf_block_t *block, mtr_t *mtr)
UNIV_INLINE void buf_flush_recv_note_modification (buf_block_t *block, lsn_t start_lsn, lsn_t end_lsn)

Detailed Description

The database buffer pool flush algorithm

Created 11/5/1995 Heikki Tuuri

Function Documentation

UNIV_INTERN void buf_flush_insert_into_flush_list ( buf_pool_t buf_pool,
buf_block_t block,
lsn_t  lsn 
)

Inserts a modified block into the flush list. in: oldest modification

Parameters
buf_poolbuffer pool instance
blockin/out: block which is modified
UNIV_INTERN void buf_flush_insert_sorted_into_flush_list ( buf_pool_t buf_pool,
buf_block_t block,
lsn_t  lsn 
)

Inserts a modified block into the flush list in the right sorted position. This function is used by recovery, because there the modifications do not necessarily come in the order of lsn's. in: oldest modification

Parameters
buf_poolbuffer pool instance
blockin/out: block which is modified
UNIV_INLINE void buf_flush_note_modification ( buf_block_t block,
mtr_t mtr 
)

This function should be called at a mini-transaction commit, if a page was modified in it. Puts the block to the list of modified blocks, if it is not already in it.

Parameters
blockin: block which is modified
mtrin: mtr
UNIV_INLINE void buf_flush_recv_note_modification ( buf_block_t block,
lsn_t  start_lsn,
lsn_t  end_lsn 
)

This function should be called when recovery has modified a buffer page.

Parameters
blockin: block which is modified
start_lsnin: start lsn of the first mtr in a set of mtr's
end_lsnin: end lsn of the last mtr in the set of mtr's