diff options
author | Sergei Golubchik <serg@mariadb.org> | 2016-06-28 22:13:59 +0200 |
---|---|---|
committer | Sergei Golubchik <serg@mariadb.org> | 2016-06-28 22:13:59 +0200 |
commit | 8354c0c4d6df0b0ab959bd88c6c243b5df552713 (patch) | |
tree | 418824bb07a737eb053fb44be2707ba4c08fa584 /storage/xtradb | |
parent | 736f821c420954912464b9ae521acc5b768438cc (diff) | |
parent | e786a57255dcfff0e10ba688c8a21a1fc5573f00 (diff) | |
download | mariadb-git-8354c0c4d6df0b0ab959bd88c6c243b5df552713.tar.gz |
Merge remote-tracking branch 'refs/remotes/github/10.1' into 10.1
Diffstat (limited to 'storage/xtradb')
-rw-r--r-- | storage/xtradb/include/buf0buf.ic | 14 |
1 files changed, 14 insertions, 0 deletions
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; |