diff options
author | jani@hynda.mysql.fi <> | 2001-11-05 23:48:03 +0200 |
---|---|---|
committer | jani@hynda.mysql.fi <> | 2001-11-05 23:48:03 +0200 |
commit | d0e83062036a8da0bf02dd24070dd138b843ce80 (patch) | |
tree | 008020b20467d6720f9edf373f9b4aa9624c5918 /innobase/buf | |
parent | 8e2bfcb876314dc0bb334720b4eac7e70a3c4354 (diff) | |
download | mariadb-git-d0e83062036a8da0bf02dd24070dd138b843ce80.tar.gz |
Added xml patch to mysqldump.
Made innodb to compile more cleanly with debugging options
enabled. Fixed a few bugs and found a few possible bugs, which
I hope Heikki will check. Comments needs to be fixed too. Some
while() functions should be changed to do ... until for documenting
purposes, because some of them must and will be processed at least
once, or a variable would be used uninitialized.
Regards,
Jani
Diffstat (limited to 'innobase/buf')
-rw-r--r-- | innobase/buf/buf0buf.c | 2 | ||||
-rw-r--r-- | innobase/buf/buf0lru.c | 9 |
2 files changed, 6 insertions, 5 deletions
diff --git a/innobase/buf/buf0buf.c b/innobase/buf/buf0buf.c index 7d9cbf24948..b9dfa3df82a 100644 --- a/innobase/buf/buf0buf.c +++ b/innobase/buf/buf0buf.c @@ -280,7 +280,7 @@ buf_page_print( ut_sprintf_buf(buf, read_buf, UNIV_PAGE_SIZE); fprintf(stderr, - "InnoDB: Page dump in ascii and hex (%lu bytes):\n%s", + "InnoDB: Page dump in ascii and hex (%u bytes):\n%s", UNIV_PAGE_SIZE, buf); fprintf(stderr, "InnoDB: End of page dump\n"); diff --git a/innobase/buf/buf0lru.c b/innobase/buf/buf0lru.c index c3118544492..a3bb673dfc8 100644 --- a/innobase/buf/buf0lru.c +++ b/innobase/buf/buf0lru.c @@ -103,9 +103,10 @@ ibool buf_LRU_search_and_free_block( /*==========================*/ /* out: TRUE if freed */ - ulint n_iterations) /* in: how many times this has been called - repeatedly without result: a high value - means that we should search farther */ + ulint n_iterations __attribute__((unused))) /* in: how many times + this has been called repeatedly without + result: a high value means that we should + search farther */ { buf_block_t* block; ibool freed; @@ -199,7 +200,7 @@ buf_LRU_get_free_block(void) buf_block_t* block = NULL; ibool freed; ulint n_iterations = 0; - ibool mon_value_was; + ibool mon_value_was = 0; /* remove bug */ ibool started_monitor = FALSE; loop: mutex_enter(&(buf_pool->mutex)); |