From e4395ab7e88bfe9984c8cfa679702fe88b3adcc6 Mon Sep 17 00:00:00 2001 From: Marc Delisle Date: Sat, 31 Oct 2009 18:53:56 +0000 Subject: [PATCH] bug [engines] Innodb_buffer_pool_pages_latched no longer returned in status --- ChangeLog | 1 + libraries/engines/innodb.lib.php | 19 ++++++++++++------- 2 files changed, 13 insertions(+), 7 deletions(-) diff --git a/ChangeLog b/ChangeLog index 21e30c37c..0f8b78238 100644 --- a/ChangeLog +++ b/ChangeLog @@ -46,6 +46,7 @@ $HeadURL: https://phpmyadmin.svn.sourceforge.net/svnroot/phpmyadmin/trunk/phpMyA - bug #2883633 [export] Export of InnoDB table is incomplete 3.2.4.0 (not yet released) +- bug [engines] Innodb_buffer_pool_pages_latched no longer returned in status 3.2.3.0 (2009-10-30) - patch #2856664 [export] Date, time, and datetime column types now export correctly to diff --git a/libraries/engines/innodb.lib.php b/libraries/engines/innodb.lib.php index 950e4e3d3..894d7edc0 100644 --- a/libraries/engines/innodb.lib.php +++ b/libraries/engines/innodb.lib.php @@ -231,14 +231,19 @@ class PMA_StorageEngine_innodb extends PMA_StorageEngine . ' ' . PMA_formatNumber($status['Innodb_buffer_pool_pages_misc'], 0) . "\n" . '' . "\n" - . ' ' . "\n" - . ' ' . "\n" - . ' ' . $GLOBALS['strLatchedPages'] . '' . "\n" + . ' '; + + // not present at least since MySQL 5.1.40 + if (isset($status['Innodb_buffer_pool_pages_latched'])) { + $output .= ' ' + . ' ' . $GLOBALS['strLatchedPages'] . '' . ' ' - . PMA_formatNumber($status['Innodb_buffer_pool_pages_latched'], 0) . "\n" - . '' . "\n" - . ' ' . "\n" - . ' ' . "\n" + . PMA_formatNumber($status['Innodb_buffer_pool_pages_latched'], 0) + . '' + . ' '; + } + + $output .= ' ' . "\n" . '' . "\n\n" . '' . "\n" . '
' . "\n"