Commit 77d522cf authored by JINMEI Tatuya's avatar JINMEI Tatuya
Browse files

[2211] moved DataSrcClientsMgr object from main to auth_srv

this way we can avoid having a situtation that it's NULL.
parent eb90dff9
......@@ -53,6 +53,7 @@
#include <auth/query.h>
#include <auth/statistics.h>
#include <auth/auth_log.h>
#include <auth/datasrc_clients_mgr.h>
#include <boost/bind.hpp>
#include <boost/lexical_cast.hpp>
......@@ -328,6 +329,8 @@ private:
bool validateStatistics(isc::data::ConstElementPtr data) const;
auth::Query query_;
auth::DataSrcClientsMgr datasrc_clients_mgr_;
};
AuthSrvImpl::AuthSrvImpl(AbstractXfroutClient& xfrout_client,
......
......@@ -232,10 +232,6 @@ main(int argc, char* argv[]) {
isc::server_common::initKeyring(*config_session);
auth_server->setTSIGKeyRing(&isc::server_common::keyring);
// Instantiate the data source clients manager. At the moment
// just so we actually create it in system tests.
DataSrcClientsMgr datasrc_clients_mgr;
// Start the data source configuration. We pass first_time and
// config_session for the hack described in datasrcConfigHandler.
bool first_time = true;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment