File tree Expand file tree Collapse file tree 1 file changed +3
-11
lines changed Expand file tree Collapse file tree 1 file changed +3
-11
lines changed Original file line number Diff line number Diff line change @@ -3782,18 +3782,10 @@ buf_page_get_zip(
3782
3782
ut_ad (!buf_pool_watch_is_sentinel (buf_pool, bpage));
3783
3783
3784
3784
switch (buf_page_get_state (bpage)) {
3785
- case BUF_BLOCK_POOL_WATCH:
3786
- case BUF_BLOCK_NOT_USED:
3787
- case BUF_BLOCK_READY_FOR_USE:
3788
- case BUF_BLOCK_MEMORY:
3789
- case BUF_BLOCK_REMOVE_HASH:
3790
- ut_error;
3791
-
3792
3785
case BUF_BLOCK_ZIP_PAGE:
3793
3786
case BUF_BLOCK_ZIP_DIRTY:
3794
3787
buf_block_fix (bpage);
3795
3788
block_mutex = &buf_pool->zip_mutex ;
3796
- mutex_enter (block_mutex);
3797
3789
goto got_block;
3798
3790
case BUF_BLOCK_FILE_PAGE:
3799
3791
/* Discard the uncompressed page frame if possible. */
@@ -3808,16 +3800,16 @@ buf_page_get_zip(
3808
3800
__FILE__, __LINE__);
3809
3801
3810
3802
block_mutex = &((buf_block_t *) bpage)->mutex ;
3811
-
3812
- mutex_enter (block_mutex);
3813
-
3814
3803
goto got_block;
3804
+ default :
3805
+ break ;
3815
3806
}
3816
3807
3817
3808
ut_error;
3818
3809
goto err_exit;
3819
3810
3820
3811
got_block:
3812
+ mutex_enter (block_mutex);
3821
3813
must_read = buf_page_get_io_fix (bpage) == BUF_IO_READ;
3822
3814
3823
3815
rw_lock_s_unlock (hash_lock);
You can’t perform that action at this time.
0 commit comments