diff options
author | Oleksandr Byelkin <sanja@mariadb.com> | 2019-05-06 18:07:40 +0200 |
---|---|---|
committer | Oleksandr Byelkin <sanja@mariadb.com> | 2019-05-06 18:07:40 +0200 |
commit | 633946fb63f6957b49554ce6f6d33862951d810e (patch) | |
tree | 75c9cc603540057d7e59df67ed26bb2893e07b97 /storage/xtradb/srv | |
parent | 54d0a55adf6fbfc92c5473bbcad2b459f14ef038 (diff) | |
parent | 0573744a83ad89958c4e48a9299cd9274db1b355 (diff) | |
download | mariadb-git-633946fb63f6957b49554ce6f6d33862951d810e.tar.gz |
Merge branch '10.1' into 10.2
Diffstat (limited to 'storage/xtradb/srv')
-rw-r--r-- | storage/xtradb/srv/srv0mon.cc | 28 |
1 files changed, 25 insertions, 3 deletions
diff --git a/storage/xtradb/srv/srv0mon.cc b/storage/xtradb/srv/srv0mon.cc index 47abae66192..d95a243dd3c 100644 --- a/storage/xtradb/srv/srv0mon.cc +++ b/storage/xtradb/srv/srv0mon.cc @@ -873,15 +873,18 @@ static monitor_info_t innodb_counter_info[] = MONITOR_DEFAULT_START, MONITOR_OVLD_MAX_AGE_SYNC}, {"log_pending_log_writes", "recovery", "Pending log writes", - MONITOR_NONE, + static_cast<monitor_type_t>( + MONITOR_EXISTING | MONITOR_DISPLAY_CURRENT), MONITOR_DEFAULT_START, MONITOR_PENDING_LOG_WRITE}, {"log_pending_checkpoint_writes", "recovery", "Pending checkpoints", - MONITOR_NONE, + static_cast<monitor_type_t>( + MONITOR_EXISTING | MONITOR_DISPLAY_CURRENT), MONITOR_DEFAULT_START, MONITOR_PENDING_CHECKPOINT_WRITE}, {"log_num_log_io", "recovery", "Number of log I/Os", - MONITOR_NONE, + static_cast<monitor_type_t>( + MONITOR_EXISTING | MONITOR_DISPLAY_CURRENT), MONITOR_DEFAULT_START, MONITOR_LOG_IO}, {"log_waits", "recovery", @@ -1970,6 +1973,25 @@ srv_mon_process_existing_counter( value = (mon_type_t) log_sys->lsn; break; + case MONITOR_PENDING_LOG_WRITE: + mutex_enter(&log_sys->mutex); + value = static_cast<mon_type_t>(log_sys->n_pending_writes); + mutex_exit(&log_sys->mutex); + break; + + case MONITOR_PENDING_CHECKPOINT_WRITE: + mutex_enter(&log_sys->mutex); + value = static_cast<mon_type_t>( + log_sys->n_pending_checkpoint_writes); + mutex_exit(&log_sys->mutex); + break; + + case MONITOR_LOG_IO: + mutex_enter(&log_sys->mutex); + value = static_cast<mon_type_t>(log_sys->n_log_ios); + mutex_exit(&log_sys->mutex); + break; + case MONITOR_OVLD_BUF_OLDEST_LSN: value = (mon_type_t) buf_pool_get_oldest_modification(); break; |