Revert "Refactor datastores to classes (#9179)" (#11273)

This reverts commit e5dad7a64e.
This commit is contained in:
Tony Murray
2020-03-11 07:52:52 -05:00
committed by GitHub
parent e5dad7a64e
commit 7fe895bd08
51 changed files with 1007 additions and 2523 deletions

View File

@@ -11,8 +11,6 @@
* @copyright (C) 2006 - 2012 Adam Armstrong
*/
use LibreNMS\Data\Store\Datastore;
$init_modules = array();
require __DIR__ . '/includes/init.php';
@@ -24,7 +22,6 @@ if (isset($argv[1]) && is_numeric($argv[1])) {
}
set_debug(isset($options['d']));
Datastore::init();
// Wait for schema update, as running during update can break update
if (get_db_schema() < 107) {
@@ -32,6 +29,8 @@ if (get_db_schema() < 107) {
exit(1);
}
rrdtool_initialize();
$poller_start = microtime(true);
echo "Starting Polling Session ... \n\n";
@@ -165,4 +164,4 @@ if ($poller_time > 300) {
}
echo "\nCompleted in $poller_time sec\n";
Datastore::terminate();
rrdtool_close();