From: Tomek Mrugalski Date: Mon, 6 Jun 2016 18:42:17 +0000 (+0200) Subject: [github21] Fix for incorrect database type implemented. X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a4d1f29b6806ab1be60fabe370260b679d6216b5;p=thirdparty%2Fkea.git [github21] Fix for incorrect database type implemented. --- diff --git a/src/lib/dhcpsrv/lease_mgr_factory.cc b/src/lib/dhcpsrv/lease_mgr_factory.cc index 62698c93df..8511ba0e89 100755 --- a/src/lib/dhcpsrv/lease_mgr_factory.cc +++ b/src/lib/dhcpsrv/lease_mgr_factory.cc @@ -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