Commit be002655 authored by Jan Lindström's avatar Jan Lindström

Fix compiler errors on product build.

parent ec4f1d19
...@@ -2080,6 +2080,7 @@ buf_LRU_block_remove_hashed_page( ...@@ -2080,6 +2080,7 @@ buf_LRU_block_remove_hashed_page(
" in the hash table\n", " in the hash table\n",
(ulong) bpage->space, (ulong) bpage->space,
(ulong) bpage->offset); (ulong) bpage->offset);
#ifdef UNIV_DEBUG
fprintf(stderr, fprintf(stderr,
"InnoDB: in_page_hash %lu in_zip_hash %lu\n" "InnoDB: in_page_hash %lu in_zip_hash %lu\n"
" in_free_list %lu in_flush_list %lu in_LRU_list %lu\n" " in_free_list %lu in_flush_list %lu in_LRU_list %lu\n"
...@@ -2089,6 +2090,14 @@ buf_LRU_block_remove_hashed_page( ...@@ -2089,6 +2090,14 @@ buf_LRU_block_remove_hashed_page(
bpage->in_LRU_list, bpage->zip.data, bpage->in_LRU_list, bpage->zip.data,
buf_page_get_zip_size(bpage), buf_page_get_zip_size(bpage),
buf_page_get_state(bpage)); buf_page_get_state(bpage));
#else
fprintf(stderr,
"InnoDB: zip.data %p zip_size %lu page_state %d\n",
bpage->zip.data,
buf_page_get_zip_size(bpage),
buf_page_get_state(bpage));
#endif
if (hashed_bpage) { if (hashed_bpage) {
fprintf(stderr, fprintf(stderr,
"InnoDB: In hash table we find block" "InnoDB: In hash table we find block"
......
...@@ -2373,6 +2373,7 @@ buf_LRU_block_remove_hashed_page( ...@@ -2373,6 +2373,7 @@ buf_LRU_block_remove_hashed_page(
(ulong) bpage->space, (ulong) bpage->space,
(ulong) bpage->offset); (ulong) bpage->offset);
#ifdef UNIV_DEBUG
fprintf(stderr, fprintf(stderr,
"InnoDB: in_page_hash %lu in_zip_hash %lu\n" "InnoDB: in_page_hash %lu in_zip_hash %lu\n"
" in_free_list %lu in_flush_list %lu in_LRU_list %lu\n" " in_free_list %lu in_flush_list %lu in_LRU_list %lu\n"
...@@ -2382,6 +2383,13 @@ buf_LRU_block_remove_hashed_page( ...@@ -2382,6 +2383,13 @@ buf_LRU_block_remove_hashed_page(
bpage->in_LRU_list, bpage->zip.data, bpage->in_LRU_list, bpage->zip.data,
buf_page_get_zip_size(bpage), buf_page_get_zip_size(bpage),
buf_page_get_state(bpage)); buf_page_get_state(bpage));
#else
fprintf(stderr,
"InnoDB: zip.data %p zip_size %lu page_state %d\n",
bpage->zip.data,
buf_page_get_zip_size(bpage),
buf_page_get_state(bpage));
#endif
if (hashed_bpage) { if (hashed_bpage) {
fprintf(stderr, fprintf(stderr,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment