summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJan Lindström <jan.lindstrom@mariadb.com>2015-03-10 14:05:57 +0200
committerJan Lindström <jan.lindstrom@mariadb.com>2015-03-10 14:05:57 +0200
commitc8035da9b8d037b43c27268b37df40e587780bec (patch)
treed2d2c93dba4551f58fd88458df359546499d37e5
parentf7d196bb2e605766668895027c48728f03803734 (diff)
downloadmariadb-git-c8035da9b8d037b43c27268b37df40e587780bec.tar.gz
Add more information if page state is not correct.
-rw-r--r--storage/innobase/include/buf0buf.ic6
-rw-r--r--storage/xtradb/include/buf0buf.ic7
2 files changed, 13 insertions, 0 deletions
diff --git a/storage/innobase/include/buf0buf.ic b/storage/innobase/include/buf0buf.ic
index 9bbafbc1efb..842aa6758cd 100644
--- a/storage/innobase/include/buf0buf.ic
+++ b/storage/innobase/include/buf0buf.ic
@@ -275,6 +275,12 @@ buf_page_set_state(
}
#endif /* UNIV_DEBUG */
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);
}
diff --git a/storage/xtradb/include/buf0buf.ic b/storage/xtradb/include/buf0buf.ic
index 8917c8f2fb5..b4cbba29f3c 100644
--- a/storage/xtradb/include/buf0buf.ic
+++ b/storage/xtradb/include/buf0buf.ic
@@ -277,7 +277,14 @@ buf_page_set_state(
break;
}
#endif /* UNIV_DEBUG */
+
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);
}