summaryrefslogtreecommitdiffstats
path: root/src/bin/dhcp4/json_config_parser.cc
diff options
context:
space:
mode:
authorRazvan Becheriu <razvan@isc.org>2020-11-13 20:48:43 +0100
committerRazvan Becheriu <razvan@isc.org>2020-12-09 18:12:46 +0100
commitdff6de1464360039d55340c9680355297595a79d (patch)
treed8de77bb3b7f8a57e480db3cd4a81d068ab10316 /src/bin/dhcp4/json_config_parser.cc
parent[#1375] regenerated message files (diff)
downloadkea-dff6de1464360039d55340c9680355297595a79d.tar.xz
kea-dff6de1464360039d55340c9680355297595a79d.zip
[#1375] added unittests for recover db connection with timer
Diffstat (limited to 'src/bin/dhcp4/json_config_parser.cc')
-rw-r--r--src/bin/dhcp4/json_config_parser.cc12
1 files changed, 0 insertions, 12 deletions
diff --git a/src/bin/dhcp4/json_config_parser.cc b/src/bin/dhcp4/json_config_parser.cc
index 48cdcd85b0..6099e74426 100644
--- a/src/bin/dhcp4/json_config_parser.cc
+++ b/src/bin/dhcp4/json_config_parser.cc
@@ -339,18 +339,6 @@ configureDhcp4Server(Dhcpv4Srv& server, isc::data::ConstElementPtr config_set,
// Close DHCP sockets and remove any existing timers.
if (!check_only) {
- // If mysql or postgresql lease and host managers were configured, they
- // need to be destroy before calling unregisterTimers as they are
- // responsible for unregistering own connection timers. A memfile lease
- // manager and an empty host manager will be created instead.
- auto running_cfg = CfgMgr::instance().getCurrentCfg();
- auto parameters = DatabaseConnection::parse(running_cfg->getCfgDbAccess()->getLeaseDbAccessString());
- if (parameters["type"] != "memfile") {
- CfgDbAccess cfg_db;
- cfg_db.setAppendedParameters("universe=4");
- LeaseMgrFactory::create(cfg_db.getLeaseDbAccessString());
- }
- HostMgr::create();
IfaceMgr::instance().closeSockets();
TimerMgr::instance()->unregisterTimers();
server.discardPackets();