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

Add more information if page state is not correct.

parent f7d196bb
...@@ -275,6 +275,12 @@ buf_page_set_state( ...@@ -275,6 +275,12 @@ buf_page_set_state(
} }
#endif /* UNIV_DEBUG */ #endif /* UNIV_DEBUG */
bpage->state = state; bpage->state = state;
#ifdef UNIV_DEBUG
if( buf_page_get_state(bpage) != state) {
fprintf(stderr, "InnoDB: Error: Requested state %d current state %d old_state %d\n",
state, buf_page_get_state(bpage), old_state);
}
#endif
ut_ad(buf_page_get_state(bpage) == state); ut_ad(buf_page_get_state(bpage) == state);
} }
......
...@@ -277,7 +277,14 @@ buf_page_set_state( ...@@ -277,7 +277,14 @@ buf_page_set_state(
break; break;
} }
#endif /* UNIV_DEBUG */ #endif /* UNIV_DEBUG */
bpage->state = state; bpage->state = state;
#ifdef UNIV_DEBUG
if( buf_page_get_state(bpage) != state) {
fprintf(stderr, "InnoDB: Error: Requested state %d current state %d old_state %d\n",
state, buf_page_get_state(bpage), old_state);
}
#endif
ut_ad(buf_page_get_state(bpage) == state); ut_ad(buf_page_get_state(bpage) == state);
} }
......
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