summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSergei Golubchik <serg@mariadb.org>2016-06-28 22:13:59 +0200
committerSergei Golubchik <serg@mariadb.org>2016-06-28 22:13:59 +0200
commit8354c0c4d6df0b0ab959bd88c6c243b5df552713 (patch)
tree418824bb07a737eb053fb44be2707ba4c08fa584
parent736f821c420954912464b9ae521acc5b768438cc (diff)
parente786a57255dcfff0e10ba688c8a21a1fc5573f00 (diff)
downloadmariadb-git-8354c0c4d6df0b0ab959bd88c6c243b5df552713.tar.gz
Merge remote-tracking branch 'refs/remotes/github/10.1' into 10.1
-rw-r--r--storage/innobase/include/buf0buf.ic14
-rw-r--r--storage/xtradb/include/buf0buf.ic14
2 files changed, 28 insertions, 0 deletions
diff --git a/storage/innobase/include/buf0buf.ic b/storage/innobase/include/buf0buf.ic
index 5b66d65dcba..e77c5a84202 100644
--- a/storage/innobase/include/buf0buf.ic
+++ b/storage/innobase/include/buf0buf.ic
@@ -302,6 +302,20 @@ buf_page_set_state(
ut_a(state == BUF_BLOCK_NOT_USED);
break;
case BUF_BLOCK_FILE_PAGE:
+ if (!(state == BUF_BLOCK_NOT_USED
+ || state == BUF_BLOCK_REMOVE_HASH)) {
+ const char *old_state_name = buf_get_state_name((buf_block_t*)bpage);
+ bpage->state = state;
+
+ fprintf(stderr,
+ "InnoDB: Error: block old state %d (%s) "
+ " new state %d (%s) not correct\n",
+ old_state,
+ old_state_name,
+ state,
+ buf_get_state_name((buf_block_t*)bpage));
+ }
+
ut_a(state == BUF_BLOCK_NOT_USED
|| state == BUF_BLOCK_REMOVE_HASH);
break;
diff --git a/storage/xtradb/include/buf0buf.ic b/storage/xtradb/include/buf0buf.ic
index f7e51231471..7b1c66f2a05 100644
--- a/storage/xtradb/include/buf0buf.ic
+++ b/storage/xtradb/include/buf0buf.ic
@@ -305,6 +305,20 @@ buf_page_set_state(
ut_a(state == BUF_BLOCK_NOT_USED);
break;
case BUF_BLOCK_FILE_PAGE:
+ if (!(state == BUF_BLOCK_NOT_USED
+ || state == BUF_BLOCK_REMOVE_HASH)) {
+ const char *old_state_name = buf_get_state_name((buf_block_t*)bpage);
+ bpage->state = state;
+
+ fprintf(stderr,
+ "InnoDB: Error: block old state %d (%s) "
+ " new state %d (%s) not correct\n",
+ old_state,
+ old_state_name,
+ state,
+ buf_get_state_name((buf_block_t*)bpage));
+ }
+
ut_a(state == BUF_BLOCK_NOT_USED
|| state == BUF_BLOCK_REMOVE_HASH);
break;