src/bin/dhcp4/ctrl_dhcp4_srv.cc
ControlledDhcpv4Srv::processConfig(isc::data::ConstElementPtr config)
src/bin/dhcp6/ctrl_dhcp6_srv.cc
ControlledDhcpv6Srv::processConfig(isc::data::ConstElementPtr config)
// Allow DB reconnect on startup. The database connection parameters specify
// respective details.
- DbConnectionInitWithRetry retry;
+ std::shared_ptr<DbConnectionInitWithRetry> dbr(new DbConnectionInitWithRetry());
// Single stream instance used in all error clauses
std::ostringstream err;
return (isc::config::createAnswer(CONTROL_RESULT_ERROR, err.str()));
}
+ dbr.reset();
+
/// Let postponed hook initializations to run.
try {
ControlledDhcpv4Srv::getInstance()->getIOService()->poll();
// Allow DB reconnect on startup. The database connection parameters specify
// respective details.
- DbConnectionInitWithRetry retry;
+ std::shared_ptr<DbConnectionInitWithRetry> dbr(new DbConnectionInitWithRetry());
// Single stream instance used in all error clauses
std::ostringstream err;
return (isc::config::createAnswer(CONTROL_RESULT_ERROR, err.str()));
}
+ dbr.reset();
+
/// Let postponed hook initializations to run.
try {
ControlledDhcpv6Srv::getInstance()->getIOService()->poll();