diff --git a/classes/ezsnmpdstatushandler.php b/classes/ezsnmpdstatushandler.php index fe43179..98224ed 100644 --- a/classes/ezsnmpdstatushandler.php +++ b/classes/ezsnmpdstatushandler.php @@ -403,6 +403,25 @@ function get( $oid ) $ok = 1; } } + else if ( $clusterhandler == 'eZDFSFileHandler' ) + { + // This is even worse: we have no right to know if db connection is ok. + // So we replicate some code here... + $dbbackend = eZExtension::getHandlerClass( + new ezpExtensionOptions( + array( 'iniFile' => 'file.ini', + 'iniSection' => 'eZDFSClusteringSettings', + 'iniVariable' => 'DBBackend' ) ) ); + try + { + $dbbackend->_connect(); + $ok = 1; + } + catch ( exception $e ) + { + $ok = 0; + } + } else { $ok = -1; diff --git a/doc/changelogs/0.5/CHANGELOG-0.5-to-0.5.1 b/doc/changelogs/0.5/CHANGELOG-0.5-to-0.5.1 index b805166..6dfa1fd 100644 --- a/doc/changelogs/0.5/CHANGELOG-0.5-to-0.5.1 +++ b/doc/changelogs/0.5/CHANGELOG-0.5-to-0.5.1 @@ -5,5 +5,6 @@ Changes from 0.5 to 0.5.1 - released 2012-03-xx * Bugfixes: - Add the missing config files to make the extension show up in the "Setup" left col menu +- Connection to cluster db was not tested for ezdfs cluster setups * Misc changes