mirror of
https://gitlab.isc.org/isc-projects/kea
synced 2025-08-30 21:45:37 +00:00
[#3025] switch io service to DatabaseConnection's
This commit is contained in:
@@ -419,7 +419,7 @@ MySqlConnection::initializeSchema(const ParameterMap& parameters) {
|
||||
kea_admin_parameters.insert(kea_admin_parameters.begin(), "db-init");
|
||||
|
||||
// Run.
|
||||
IOServicePtr io_service(new IOService());
|
||||
IOServicePtr io_service(DatabaseConnection::getIOService());
|
||||
ProcessSpawn kea_admin(io_service, KEA_ADMIN, kea_admin_parameters, vars,
|
||||
/* inherit_env = */ true);
|
||||
DB_LOG_INFO(MYSQL_INITIALIZE_SCHEMA).arg(kea_admin.getCommandLine());
|
||||
|
@@ -219,7 +219,7 @@ PgSqlConnection::initializeSchema(const ParameterMap& parameters) {
|
||||
kea_admin_parameters.insert(kea_admin_parameters.begin(), "db-init");
|
||||
|
||||
// Run.
|
||||
IOServicePtr io_service(new IOService());
|
||||
IOServicePtr io_service(DatabaseConnection::getIOService());
|
||||
ProcessSpawn kea_admin(io_service, KEA_ADMIN, kea_admin_parameters, vars,
|
||||
/* inherit_env = */ true);
|
||||
DB_LOG_INFO(PGSQL_INITIALIZE_SCHEMA).arg(kea_admin.getCommandLine());
|
||||
|
Reference in New Issue
Block a user