diff options
Diffstat (limited to 'storage/innobase/include/buf0flu.ic')
-rw-r--r-- | storage/innobase/include/buf0flu.ic | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/storage/innobase/include/buf0flu.ic b/storage/innobase/include/buf0flu.ic index 68a76c0b637..a763cd115fe 100644 --- a/storage/innobase/include/buf0flu.ic +++ b/storage/innobase/include/buf0flu.ic @@ -26,6 +26,7 @@ Created 11/5/1995 Heikki Tuuri #ifndef UNIV_HOTBACKUP #include "buf0buf.h" #include "mtr0mtr.h" +#include "srv0srv.h" /********************************************************************//** Inserts a modified block into the flush list. */ @@ -61,7 +62,7 @@ buf_flush_note_modification( { buf_pool_t* buf_pool = buf_pool_from_block(block); - ut_ad(block); + ut_ad(!srv_read_only_mode); ut_ad(buf_block_get_state(block) == BUF_BLOCK_FILE_PAGE); ut_ad(block->page.buf_fix_count > 0); #ifdef UNIV_SYNC_DEBUG @@ -91,7 +92,7 @@ buf_flush_note_modification( mutex_exit(&block->mutex); - ++srv_buf_pool_write_requests; + srv_stats.buf_pool_write_requests.inc(); } /********************************************************************//** @@ -108,7 +109,7 @@ buf_flush_recv_note_modification( { buf_pool_t* buf_pool = buf_pool_from_block(block); - ut_ad(block); + ut_ad(!srv_read_only_mode); ut_ad(buf_block_get_state(block) == BUF_BLOCK_FILE_PAGE); ut_ad(block->page.buf_fix_count > 0); #ifdef UNIV_SYNC_DEBUG |