]> git.ipfire.org Git - thirdparty/kea.git/commitdiff
fixed crash
authorRazvan Becheriu <ravan@isc.org>
Tue, 12 Mar 2019 05:45:54 +0000 (07:45 +0200)
committerTomek Mrugalski <tomek@isc.org>
Fri, 19 Apr 2019 07:55:02 +0000 (03:55 -0400)
src/lib/dhcpsrv/benchmarks/cql_host_data_source_benchmark.cc
src/lib/dhcpsrv/benchmarks/mysql_host_data_source_benchmark.cc
src/lib/dhcpsrv/benchmarks/pgsql_host_data_source_benchmark.cc

index fdaa7c037129bc325f63d39afea41f6bfeb66b9b..5cba70f2bc9dbbdcf55ef1a86d6522eb9a2e1385 100644 (file)
@@ -43,7 +43,7 @@ public:
         // Ensure we have the proper schema with no transient data.
         createCqlSchema();
         try {
-            HostMgr::delBackend("cql");
+            HostMgr::create();
             HostMgr::addBackend(validCqlConnectionString());
         } catch (...) {
             cerr << "ERROR: unable to open database" << endl;
index 76fa8b5a369c38351442fc0ae708e97e409ea958..1d030418ce1f9e5ee593c0b3d9c5089428fc8fe6 100644 (file)
@@ -43,7 +43,7 @@ public:
         // Ensure we have the proper schema with no transient data.
         createMySQLSchema();
         try {
-            HostMgr::delBackend("mysql");
+            HostMgr::create();
             HostMgr::addBackend(validMySQLConnectionString());
         } catch (...) {
             cerr << "ERROR: unable to open database" << endl;
index a129a9555f185a68154235d1eebba2abd718ae38..1b4c22e360bc0ce8297cbaeadb4fe24b17c04423 100644 (file)
@@ -43,7 +43,7 @@ public:
         // Ensure we have the proper schema with no transient data.
         createPgSQLSchema();
         try {
-            HostMgr::delBackend("postgresql");
+            HostMgr::create();
             HostMgr::addBackend(validPgSQLConnectionString());
         } catch (...) {
             cerr << "ERROR: unable to open database" << endl;