File tree 2 files changed +6
-2
lines changed
2 files changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -913,7 +913,7 @@ ControlledDhcpv4Srv::processConfig(isc::data::ConstElementPtr config) {
913
913
914
914
// Allow DB reconnect on startup. The database connection parameters specify
915
915
// respective details.
916
- DbConnectionInitWithRetry retry ;
916
+ std::shared_ptr< DbConnectionInitWithRetry> dbr ( new DbConnectionInitWithRetry ()) ;
917
917
918
918
// Single stream instance used in all error clauses
919
919
std::ostringstream err;
@@ -1092,6 +1092,8 @@ ControlledDhcpv4Srv::processConfig(isc::data::ConstElementPtr config) {
1092
1092
return (isc::config::createAnswer (CONTROL_RESULT_ERROR, err.str ()));
1093
1093
}
1094
1094
1095
+ dbr.reset ();
1096
+
1095
1097
// / Let postponed hook initializations to run.
1096
1098
try {
1097
1099
ControlledDhcpv4Srv::getInstance ()->getIOService ()->poll ();
Original file line number Diff line number Diff line change @@ -918,7 +918,7 @@ ControlledDhcpv6Srv::processConfig(isc::data::ConstElementPtr config) {
918
918
919
919
// Allow DB reconnect on startup. The database connection parameters specify
920
920
// respective details.
921
- DbConnectionInitWithRetry retry ;
921
+ std::shared_ptr< DbConnectionInitWithRetry> dbr ( new DbConnectionInitWithRetry ()) ;
922
922
923
923
// Single stream instance used in all error clauses
924
924
std::ostringstream err;
@@ -1112,6 +1112,8 @@ ControlledDhcpv6Srv::processConfig(isc::data::ConstElementPtr config) {
1112
1112
return (isc::config::createAnswer (CONTROL_RESULT_ERROR, err.str ()));
1113
1113
}
1114
1114
1115
+ dbr.reset ();
1116
+
1115
1117
// / Let postponed hook initializations to run.
1116
1118
try {
1117
1119
ControlledDhcpv6Srv::getInstance ()->getIOService ()->poll ();
You can’t perform that action at this time.
0 commit comments