}
bool reopened = false;
+ bool do_exit = false;
const std::string timer_name = db_reconnect_ctl->timerName();
// Something is definitely wrong. Did the configuration change
// somehow and there is no configuration for CB?
if (!config_ctl) {
- std::string reason("No CB configuration found!");
- LOG_ERROR(mysql_cb_logger, MYSQL_CB_RECONNECT_ATTEMPT_FAILED4)
- .arg(reason);
- return (true);
+ do_exit = true;
+ isc_throw(Unexpected, "No CB configuration found!");
}
// Iterate over the configured DBs and instantiate them.
} catch (const std::exception& ex) {
LOG_ERROR(mysql_cb_logger, MYSQL_CB_RECONNECT_ATTEMPT_FAILED4)
.arg(ex.what());
+ if (do_exit) {
+ return (true);
+ }
}
if (reopened) {
}
bool reopened = false;
+ bool do_exit = false;
const std::string timer_name = db_reconnect_ctl->timerName();
// Something is definitely wrong. Did the configuration change
// somehow and there is no configuration for CB?
if (!config_ctl) {
- std::string reason("No CB configuration found!");
- LOG_ERROR(mysql_cb_logger, MYSQL_CB_RECONNECT_ATTEMPT_FAILED6)
- .arg(reason);
- return (true);
+ do_exit = true;
+ isc_throw(Unexpected, "No CB configuration found!");
}
// Iterate over the configured DBs and instantiate them.
} catch (const std::exception& ex) {
LOG_ERROR(mysql_cb_logger, MYSQL_CB_RECONNECT_ATTEMPT_FAILED6)
.arg(ex.what());
+ if (do_exit) {
+ return (true);
+ }
}
if (reopened) {
}
bool reopened = false;
+ bool do_exit = false;
const std::string timer_name = db_reconnect_ctl->timerName();
// Something is definitely wrong. Did the configuration change
// somehow and there is no configuration for CB?
if (!config_ctl) {
- std::string reason("No CB configuration found!");
- LOG_ERROR(pgsql_cb_logger, PGSQL_CB_RECONNECT_ATTEMPT_FAILED4)
- .arg(reason);
- return (true);
+ do_exit = true;
+ isc_throw(Unexpected, "No CB configuration found!");
}
// Iterate over the configured DBs and instantiate them.
} catch (const std::exception& ex) {
LOG_ERROR(pgsql_cb_logger, PGSQL_CB_RECONNECT_ATTEMPT_FAILED4)
.arg(ex.what());
+ if (do_exit) {
+ return (true);
+ }
}
if (reopened) {
}
bool reopened = false;
+ bool do_exit = false;
const std::string timer_name = db_reconnect_ctl->timerName();
// Something is definitely wrong. Did the configuration change
// somehow and there is no configuration for CB?
if (!config_ctl) {
- std::string reason("No CB configuration found!");
- LOG_ERROR(pgsql_cb_logger, PGSQL_CB_RECONNECT_ATTEMPT_FAILED6)
- .arg(reason);
- return (true);
+ do_exit = true;
+ isc_throw(Unexpected, "No CB configuration found!");
}
// Iterate over the configured DBs and instantiate them.
} catch (const std::exception& ex) {
LOG_ERROR(pgsql_cb_logger, PGSQL_CB_RECONNECT_ATTEMPT_FAILED6)
.arg(ex.what());
+ if (do_exit) {
+ return (true);
+ }
}
if (reopened) {
% HA_PAUSE_CLIENT_LISTENER_FAILED: 2
% LOG_BAD_STREAM: 4
% LOG_DUPLICATE_MESSAGE_ID: 4
- % MYSQL_CB_RECONNECT_ATTEMPT_FAILED4: 2
- % MYSQL_CB_RECONNECT_ATTEMPT_FAILED6: 2
% NETCONF_GET_CONFIG_FAILED: 4
% NETCONF_SET_CONFIG_FAILED: 5
% NETCONF_UPDATE_CONFIG_FAILED: 5
% DHCP4_PACKET_PROCESS_STD_EXCEPTION: 4
% DHCP6_PACKET_PROCESS_EXCEPTION: 4
% DHCP6_PACKET_PROCESS_STD_EXCEPTION: 4
- % PGSQL_CB_RECONNECT_ATTEMPT_FAILED4: 2
- % PGSQL_CB_RECONNECT_ATTEMPT_FAILED6: 2
% DCTL_CONFIG_FILE_LOAD_FAIL: 2
% LOG_DUPLICATE_NAMESPACE: 2
% LOG_NO_MESSAGE_ID: 2