mirror of
https://github.com/MariaDB/server.git
synced 2025-01-22 14:54:20 +01:00
branches/zip: buf_page_peek_block(): Do not invoke buf_block_get_state()
on a NULL pointer. This error was introduced in r1082.
This commit is contained in:
parent
ac694c106a
commit
427a413e9c
1 changed files with 3 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue