2
0
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:
Andrei Pavel
2024-02-13 15:17:06 +02:00
parent 0046232406
commit d2b738e987
2 changed files with 2 additions and 2 deletions

View File

@@ -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());

View File

@@ -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());