diff options
author | unknown <heikki@donna.mysql.fi> | 2001-06-24 20:09:41 +0300 |
---|---|---|
committer | unknown <heikki@donna.mysql.fi> | 2001-06-24 20:09:41 +0300 |
commit | 3b5cee2e49f25b078120e7a8e1b13f11c3716504 (patch) | |
tree | f6c27154c8690eb8dc7fad6ac825463fb005fe01 /innobase/include/buf0buf.h | |
parent | 5b6c96202b5300d92b49ec644113061b5f67d7c1 (diff) | |
download | mariadb-git-3b5cee2e49f25b078120e7a8e1b13f11c3716504.tar.gz |
univ.i Added a new debug define option
sync0sync.ic Do not use GCC in-line assembly
srv0start.h Eliminate a deadlock of threads at startup
buf0buf.h Add some debug functions
srv0start.c Remove a printf
innobase/srv/srv0start.c:
Remove a printf
innobase/include/buf0buf.h:
Add some debug functions
innobase/include/srv0start.h:
Eliminate a deadlock of threads at startup
innobase/include/sync0sync.ic:
Do not use GCC in-line assembly
innobase/include/univ.i:
Added a new debug define option
Diffstat (limited to 'innobase/include/buf0buf.h')
-rw-r--r-- | innobase/include/buf0buf.h | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/innobase/include/buf0buf.h b/innobase/include/buf0buf.h index 5e90f5952fc..7f3e20a4505 100644 --- a/innobase/include/buf0buf.h +++ b/innobase/include/buf0buf.h @@ -293,6 +293,32 @@ buf_page_peek_block( ulint space, /* in: space id */ ulint offset);/* in: page number */ /************************************************************************ +Sets file_page_was_freed TRUE if the page is found in the buffer pool. +This function should be called when we free a file page and want the +debug version to check that it is not accessed any more unless +reallocated. */ + +buf_block_t* +buf_page_set_file_page_was_freed( +/*=============================*/ + /* out: control block if found from page hash table, + otherwise NULL */ + ulint space, /* in: space id */ + ulint offset); /* in: page number */ +/************************************************************************ +Sets file_page_was_freed FALSE if the page is found in the buffer pool. +This function should be called when we free a file page and want the +debug version to check that it is not accessed any more unless +reallocated. */ + +buf_block_t* +buf_page_reset_file_page_was_freed( +/*===============================*/ + /* out: control block if found from page hash table, + otherwise NULL */ + ulint space, /* in: space id */ + ulint offset); /* in: page number */ +/************************************************************************ Recommends a move of a block to the start of the LRU list if there is danger of dropping from the buffer pool. NOTE: does not reserve the buffer pool mutex. */ @@ -706,6 +732,9 @@ struct buf_block_struct{ which bufferfixes the block acquires an s-latch here; so we can use the debug utilities in sync0rw */ + ibool file_page_was_freed; + /* this is set to TRUE when fsp + frees a page in buffer pool */ }; /* The buffer pool structure. NOTE! The definition appears here only for |