]> git.ipfire.org Git - thirdparty/kea.git/commitdiff
[github21] Fix for incorrect database type implemented. github21
authorTomek Mrugalski <tomasz@isc.org>
Mon, 6 Jun 2016 18:42:17 +0000 (20:42 +0200)
committerTomek Mrugalski <tomasz@isc.org>
Mon, 6 Jun 2016 18:42:17 +0000 (20:42 +0200)
src/lib/dhcpsrv/lease_mgr_factory.cc

index 62698c93df6f597f44286967f8ac1237772760f0..8511ba0e891923bd1aa4657b64abd5fdbb3752ac 100755 (executable)
@@ -72,7 +72,7 @@ LeaseMgrFactory::create(const std::string& dbaccess) {
     }
 #endif
 #ifdef HAVE_DSCSQL
-    if (parameters[type] == string("dscsql")) {
+    if (parameters[type] == string("cassandra")) {
         LOG_INFO(dhcpsrv_logger, DHCPSRV_DSCSQL_DB).arg(redacted);
         getLeaseMgrPtr().reset(new DSCSqlLeaseMgr(parameters));
         return;
@@ -87,7 +87,7 @@ LeaseMgrFactory::create(const std::string& dbaccess) {
     // Get here on no match
     LOG_ERROR(dhcpsrv_logger, DHCPSRV_UNKNOWN_DB).arg(parameters[type]);
     isc_throw(InvalidType, "Database access parameter 'type' does "
-              "not specify a supported database backend");
+              "not specify a supported database backend:" << parameters[type]);
 }
 
 void