diff options
author | unknown <marko@hundin.mysql.fi> | 2004-06-16 13:41:14 +0300 |
---|---|---|
committer | unknown <marko@hundin.mysql.fi> | 2004-06-16 13:41:14 +0300 |
commit | d587a36aa131b74d75da6d456ce297f8f8c893e3 (patch) | |
tree | df8a781b0b9fee71976881b14f7cbd640b3068ba /innobase/include/buf0buf.h | |
parent | e4042c25ef4c7162046e953198dfd56bc80db1f8 (diff) | |
download | mariadb-git-d587a36aa131b74d75da6d456ce297f8f8c893e3.tar.gz |
InnoDB: Revert most of ChangeSet@1.1772, as the debug functions may
be needed when testing production releases
innobase/btr/btr0btr.c:
Remove #ifdef UNIV_DEBUG around debug code
innobase/buf/buf0buf.c:
Remove #ifdef UNIV_DEBUG around debug code
innobase/buf/buf0flu.c:
Remove #ifdef UNIV_DEBUG around debug code
innobase/buf/buf0lru.c:
Remove #ifdef UNIV_DEBUG around debug code
innobase/buf/buf0rea.c:
Remove #ifdef UNIV_DEBUG around debug code
innobase/data/data0type.c:
Remove #ifdef UNIV_DEBUG around debug code
innobase/dict/dict0dict.c:
Remove #ifdef UNIV_DEBUG around debug code
innobase/fsp/fsp0fsp.c:
Remove #ifdef UNIV_DEBUG around debug code
innobase/fut/fut0lst.c:
Remove #ifdef UNIV_DEBUG around debug code
innobase/ibuf/ibuf0ibuf.c:
Remove #ifdef UNIV_DEBUG around debug code
innobase/include/btr0btr.h:
Remove #ifdef UNIV_DEBUG around debug code
innobase/include/buf0buf.h:
Remove #ifdef UNIV_DEBUG around debug code
innobase/include/buf0buf.ic:
Remove #ifdef UNIV_DEBUG around debug code
innobase/include/buf0flu.h:
Remove #ifdef UNIV_DEBUG around debug code
innobase/include/buf0lru.h:
Remove #ifdef UNIV_DEBUG around debug code
innobase/include/data0type.h:
Remove #ifdef UNIV_DEBUG around debug code
innobase/include/dict0dict.h:
Remove #ifdef UNIV_DEBUG around debug code
innobase/include/fsp0fsp.h:
Remove #ifdef UNIV_DEBUG around debug code
innobase/include/fut0lst.h:
Remove #ifdef UNIV_DEBUG around debug code
innobase/include/lock0lock.h:
Remove #ifdef UNIV_DEBUG around debug code
innobase/include/mem0dbg.h:
Remove #ifdef UNIV_DEBUG around debug code
innobase/include/mem0dbg.ic:
Remove #ifdef UNIV_DEBUG around debug code
innobase/include/mem0pool.h:
Remove #ifdef UNIV_DEBUG around debug code
innobase/include/mtr0mtr.h:
Remove #ifdef UNIV_DEBUG around debug code
innobase/include/pars0opt.h:
Remove #ifdef UNIV_DEBUG around debug code
innobase/include/sync0rw.h:
Remove #ifdef UNIV_DEBUG around debug code
innobase/include/sync0sync.h:
Remove #ifdef UNIV_DEBUG around debug code
innobase/lock/lock0lock.c:
Remove #ifdef UNIV_DEBUG around debug code
innobase/mem/mem0dbg.c:
Remove #ifdef UNIV_DEBUG around debug code
innobase/mem/mem0pool.c:
Remove #ifdef UNIV_DEBUG around debug code
innobase/mtr/mtr0mtr.c:
Remove #ifdef UNIV_DEBUG around debug code
innobase/pars/pars0opt.c:
Remove #ifdef UNIV_DEBUG around debug code
innobase/srv/srv0start.c:
Remove #ifdef UNIV_DEBUG around debug code
innobase/sync/sync0rw.c:
Remove #ifdef UNIV_DEBUG around debug code
innobase/sync/sync0sync.c:
Remove #ifdef UNIV_DEBUG around debug code
innobase/trx/trx0roll.c:
Remove #ifdef UNIV_DEBUG around debug code
Diffstat (limited to 'innobase/include/buf0buf.h')
-rw-r--r-- | innobase/include/buf0buf.h | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/innobase/include/buf0buf.h b/innobase/include/buf0buf.h index 11c9047a8fc..5ac9c83a5f9 100644 --- a/innobase/include/buf0buf.h +++ b/innobase/include/buf0buf.h @@ -53,11 +53,9 @@ Created 11/5/1995 Heikki Tuuri #define BUF_KEEP_OLD 52 extern buf_pool_t* buf_pool; /* The buffer pool of the database */ -#ifdef UNIV_DEBUG extern ibool buf_debug_prints;/* If this is set TRUE, the program prints info whenever read or flush occurs */ -#endif /* UNIV_DEBUG */ /************************************************************************ Initializes the buffer pool of the database. */ @@ -454,14 +452,12 @@ buf_pool_is_block( /*==============*/ /* out: TRUE if pointer to block */ void* ptr); /* in: pointer to memory */ -#ifdef UNIV_DEBUG /************************************************************************* Validates the buffer pool data structure. */ ibool buf_validate(void); /*==============*/ -#endif /* UNIV_DEBUG */ /************************************************************************ Prints a page to stderr. */ @@ -820,7 +816,7 @@ struct buf_pool_struct{ ulint n_pend_reads; /* number of pending read operations */ - time_t last_printout_time; /* when buf_print_io was last time + time_t last_printout_time; /* when buf_print was last time called */ ulint n_pages_read; /* number read operations */ ulint n_pages_written;/* number write operations */ @@ -832,10 +828,10 @@ struct buf_pool_struct{ counted as page gets; this field is NOT protected by the buffer pool mutex */ - ulint n_page_gets_old;/* n_page_gets when buf_print_io was + ulint n_page_gets_old;/* n_page_gets when buf_print was last time called: used to calculate hit rate */ - ulint n_pages_read_old;/* n_pages_read when buf_print_io was + ulint n_pages_read_old;/* n_pages_read when buf_print was last time called */ ulint n_pages_written_old;/* number write operations */ ulint n_pages_created_old;/* number of pages created in |