Commit db71ab1c authored by marko's avatar marko

branches/zip: buf_page_peek_block(): Do not invoke buf_block_get_state()

on a NULL pointer.  This error was introduced in r1082.
parent aedce8cd
......@@ -1208,7 +1208,9 @@ buf_page_peek_block(
mutex_exit(&(buf_pool->mutex));
if (UNIV_UNLIKELY(buf_block_get_state(block) != BUF_BLOCK_FILE_PAGE)) {
if (block
&& UNIV_UNLIKELY(buf_block_get_state(block)
!= BUF_BLOCK_FILE_PAGE)) {
block = NULL;
}
......
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